User Sync - problem with synchronization

This topic for everyone who has problem with sync when activated sub sites.

I will try to help you.

What I did:
I added feature for writing all actions (step by step) in plugin's log file. It's help me understand on which step you had problem.

What are you must do:
1. Select checkbox "Use Debug Mode" on main plugin page before select "Master" or "Subsite".
2. You should activated Debug Mode for both sites - Master and Subsite.
3. Try connect Subsite to Master site.
5. Copy log files /plugins/user-sync/log/error.log from Master site and Sub site, then rename them to "sitedomain.log"
6. Send links for download these files from the contact form on page https://premium.wpmudev.org/contact/ - with mark in subject [for Andrey]
7. Wait my response.

ATTENTION: Please, don't attached these files or links on them in this topic, these files may contain PRIVATE information!!!

I recently purchased this plugin. To Sync my users from one site, to another site I set up recently. Both sites are on two different hosts. I tried the User Sync, and it syncs most of the users, however it comes up with a ' There was a connection problem. Please check the URL and Key of the Master site. ' after a couple of minutes.

Do you know what's making this happen? I tried the advice above, but no luck.

Having tried various WordPress instances I am kind of out of luck again.

One aspect might complicate the situation:
- I connected a site as a subsite, got "Connection failed"
- master site now nevertheless claims the connection is established
- on the subsite I cannot "Disconnect" as from the subsite the connection was not established (I can only try again to connect, but it will fail again, even when trying to connect to some other master site); this imlies that I cannot get back to the choice of established a master site or subsite on that site; the "Uninstall Options" button does not do anything...

Doing some more experiments I finally got my first workign sync (with two small Wordpress sites I use for experimentation).

Now I am nevertheless stuck with the 2 sites that actually need to share user info. Part of the problem I seem to have is that some stray half-connection breaks the connection that otherwise might be possible.

In order to make some progress in analyzing the issue I believe I have to get a proper uninstall done for the plug-in on the subsite end (that's where I can neither successsfully connect [though the mast site claims a connection was amde and still exists] nor disable in a way such that the master site removes the connection from the list of known connections [because the Disconnect button doesn't work on the subsite, and I can;t get to the inital state where I can choose between setting up a site as subsite or master site]).

When I enter the details (URL, key) on the subsite and then click on connect to master and make full sync, no log file is created (despite having checked the Debug option, and making the log sub directory fully writable), and I get the message "There was a connection problem. Please check the URL and Key of the Master site."

After you remove JS errors, please do the next:
1. Click "Uninstall options" on both sites.
2. Turn on "Use debug mode" on both sites.
3. Try to connect subsite to master site.
4. if you will get any errors of sync - give me the log files as it is written in instruction.

As I was completely tired of the dead end situation with WPMUdev support not getting me anywhere (and as I was not yet ready to give up on the User Sync functionality), I asked one of my developers to look into the issues, and he told me the following:

- the main problem area is user_sync_send_request(…) {…}
- the parameters for HTTP request timeout are inadequate
- user account info is transferred through GET requests which usually errors out once the amount of data gets larger (and isn't the main reason for the plug-in to be able to deal with lots of users...? The plug-in won't really be needed for sites with just a handful of users)

My developer has adjusted timeouts, and he has also changed the code so it uses POST instead of GET.

So far it works, and works well, here (with roughly 150 users - though we are expecting many hundreds over time...).

And: the recommendations to look into other plug-ins and their JavaScript issues were not actually leading anywhere. We do have less than trivial plug-in setups, but everything else just behaves and works (minus minor issues that can't be avoided in such a scenario).

I have sent the changed code to Andrey - let's see whether he considers it a useful improvement and uses it to improve the User Sync plug-in.

I manage a community web site with almost 500 users and I need to sync them to a sub site installed in a subdomain of said site.

When I do a first full sync, only the first 150 or so users get transferred to the subdomain. I get this error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

When I retry, a few more users are synced. In the log files nothing strange shows up, the syncing process is halted, that's all. Clearing preferences or even reinstalling plugins on both ends doesn't solve the problem.

A couple things to note: this thread is several months old and not marked as an open ticket (which means it's very easily overlooked). You're best bet would normally be to open a new thread specific to your issue.

That being said, I'm wondering if there's a server timeout issue that's happening and causing the process to be interrupted. Do you have anything in your sever error logs?

I'm gonna ask the developer to respond here with some ideas as well. Let us know. Thanks!

I'm not sure if my plugin is working. Am I suppose to see all of the same users at each sub-domain: all users? The only user that comes up on the sub domains is myself. Is this correct? I tried the option of unsync both main site and sub domains, then re-sync again but still the same. Any advice for me?

As this is nearly a 2 year old thread, that sounds like a great question which would work best in it's own thread. That way it will remain independent of this one and ensure it doesn't confuse issues here.

This also allows us to better track and answer your questions to ensure we don't miss any for ya.

I am rebuilding my network and User Sync was the first plugin that I installed. I set the main site as the Master site, and then made another a sub site, and received the following error: "There was a connection problem. Please check the URL and Key of the Master site."

As this is nearly a 3 year old thread, that sounds like a great question which would work best in it's own thread. That way it will remain independent of this one and ensure it doesn't confuse issues here.

This also allows us to better track and answer your questions to ensure we don't miss any for ya.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: