Subdomain Issues?

Hello, I wanted to test this plugin and have created two new WP installs. My mastersite has the address http://dev.domain.com. My second site has a domain http://shop.domain.com. When I try to sync from the second site, I get the ‘There was a connection problem. Please check the URL and Key of the Master site.’ error.

I have checked my logs but there were no errors. I have tried deactivate/activating the problem but still could not sync. Can someone please help.

Thanks

  • Philip John
    • DEV MAN’s Apprentice

    Hiya!

    Are the two sites hosted under the same server/hosting package or separately?

    How have you created the sites? Do you use a control panel of some sort?

    My first thoughts are that it could be some sort of security setting on one of the sites if they’re on different servers, or it could be that the DNS for the new sites hasn’t yet propagated so the site isn’t accessible yet…

    Phil

  • ebasedev
    • Flash Drive

    Hi Mustafa,

    I’m not using the subdomains anymore but that’s what the setup was before. I had both dev.domain.com and shop.domain.com A records pointing to the same IP. Are you saying I should enter the IP address in the URl field in UserSync?

    Either way, my new setup has the shop under the dev.domain.com domain as shown in my previous post. Not sure if this is possible, but I don’t mind bringing it back to shop.domain.com. I just want this thing to work!

    Thanks

  • Philip John
    • DEV MAN’s Apprentice

    Hiya,

    It should work either way so the fact moving it hasn’t solved the issue confirms that and points to something else.

    Chances are it’s something with your server setup not allowing the connections through. Do you have access to PHP error logs? That would help us to see if any errors are being generated at the point of connection…

    Cheers,

    Phil

  • ebasedev
    • Flash Drive

    Hi Phil,

    Thank you for the advice. I checked the PHP logs but there were no errors after I tried the synchronization. Can I have someone at support look at the installs of my site or my server? I would really like to get this to work.

    Thanks!

  • ebasedev
    • Flash Drive

    Hi again Phil, I have some updates.

    I have originally tried the following configuration:

    – Main Site = http://dev.domain.com

    – Sub Site = http://dev.domain.com/shop

    As you know, I was not able to sync with a connection error and all logs did not show any errors.

    I have just tried the following configuration:

    – Main Site = http://domain.com

    – Sub Site = http://dev.domain.com

    This worked but none of the users from the Main Site were synced to the Sub Site during the synchronization. I have checked both apache and php logs but could not find any errors.

    Question 1: Why did my original configuration not work?

    Question 2: Why did my users not sync from the Main Site?

    Please help.

  • ebasedev
    • Flash Drive

    Hi Phil and Andrey,

    Thank you for the reply. Here are the answers to your questions with my current setup.:

    1. http://dev.domain.com = WP 3.1.2 (Main)

    2. http://shop.domain.com = WP 3.1.3 (Sub)

    They are both single WP installs using separate databases. Both are using Version 1.0 Beta 6 of User Synchronization. Here is a list of the plugins used:

    [http://dev.domain.com]

    – MailChimp Synch

    – Register Plus Redux

    – User Synchronization

    – WPMU DEV Update Notifications

    [http://shop.domain.com]

    – Gold Cart for WP e-Commerce

    – WP e-Commerce

    – WP E-Commerce Dashboard (Premium)

    – User Synchronization

    – WPMU DEV Update Notifications

    Please note that the problems occurred before installing any plugins other than User Synchronization and the WPMU DEV Update Notifications.

    I hope to hear from you soon and get this resolved soon.

    On another note, after everything gets tested though, the domains will become:

    1. http://domain.com = WP 3.1.2 (Main)

    2. http://shop.domain.com = WP 3.1.3 (Sub)

    as it comes from development to production so maybe my problems will go away considering my other post with a similar domain setup worked. Than my only issue would be the users not syncing. Either way, I hope we can get this solved.

    Thanks for your support!

  • ebasedev
    • Flash Drive

    No, no reason. You make it sound like using Multisite will accomplish the syncing of users. Will Multisite accomplish syncing users or is it more compatible doing it with Multisite? I thought this plugin was for single WP installs. I can change my installs to Multisite if that’s a better setup. I just want this to work so badly it’s been so long.

    Thanks Phil!

  • Philip John
    • DEV MAN’s Apprentice

    I’m just thinking you might be better off using Multisite for your set up.

    With a Multisite network you’d have your main installation at http://example.com and then you’d create sub-sites (a few clicks in the dashboard) to set up http://dev.example.com and http://shop.example.com.

    Any users registered can very quickly be added to any other sites within the network, even having different roles on different sites.

    Phil

  • ebasedev
    • Flash Drive

    Hi Phil,

    You say: Any users registered can very quickly be added to any other sites within the network, even having different roles on different sites.

    Now this is going to be a manual process each time a new user registers for http://example.com correct? I don’t have the time to do that, which is why I am trying to get the User Sync working. Either way this plugin is not working for me. Is there anyone else that can help me get this to work?

  • Philip John
    • DEV MAN’s Apprentice

    Okay, thanks for the extra clarification. It sounds like User Sync is better for your setup at this time.

    I believe this issue is potentially because of the differing versions of WordPress you are using. Have you attempted to upgrade the main site to 3.1.3 to match the shop site? If not, could you try that please?

    Phil

  • ebasedev
    • Flash Drive

    It connects successfully but none of the users are synced to the sub site. I thought that was pretty self explanatory given the information I provided in the earlier replies. I gave up on this plugin as it was taking too long. I used another method to connect all my sites using the same user table.

    I hope the other plugins are easier to use so I don’t waste my one year subscription. Thanks for trying to get this to work.

  • immanence
    • WPMU DEV Initiate

    @ebasedev

    I understand your frustration with this plugin. I’m having the exact same problems. In fact, I signed up to this site and paid to get this plugin, and it basically doesn’t work.

    I wonder if you would be kind enough to share your method of getting all three sites to use one user table? I’ve seen a supposed solution for that online, and I tried it but it didn’t work. This is why I signed up here, in fact, for this plugin.

    I have three sites, all on the same server, all in the same database, and two install in subdomains (i.e., example.com as main, and shop.example.com and dev.example.com as sub-sites). As all are in the same database it should be easy to get shop.example.com and dev.example.com to write to and read from the main user table in example.com, but I just can’t get it to work.

    I’d deeply appreciate it if you could walk me through your solution, either here or privately.

  • ebasedev
    • Flash Drive

    Hi immanence.

    Kind of sad how the support posts just stops huh. And it got marked resolved when the actual problem isn’t too…

    I searched around and found many articles that show you how to combine sites using the same user table by changing the prefix but just sharing the user table which you define in the wp-conifg.php file. The only problem was that when users login, they are not automatically logged on to the other sites and they would have to log in each time. Than I found a site that showed how this could be accomplished. I tried it and it worked on the first try. It’s for WordPress version 2.8 but it looks to be working on 3.2.1.

    Article: http://techblog.touchbasic.com/html/single-unified-login-for-multiple-wordpress-2-8-installs-in-subdirectories-using-cookies/

    Good Luck!

  • immanence
    • WPMU DEV Initiate

    Looks like a good tutorial. I’m working through it right now. Will let you know. I do get the following error using Root Cookie, however:

    Fatal error: Call to undefined method WP_Error::get_items() in /home/username/public_html/wp-content/plugins/root-cookie/root-cookie.php on line 265

    I’ll press on, hoping this is not a fatal flaw.

  • immanence
    • WPMU DEV Initiate

    @ebasedev

    I renewed the secret keys across the board (which I think basically flushes the cookies). But now when I login to main, then go to sub site, I’m not automatically logged in (which I think was the point of the tutorial).

    In addition, if I try to login to the sub sites with a newly created user ID (created on the main site) I get “ERROR: Invalid username. Lost your password?”

    So this would seem conclusive that the method is not working, at least for me.

    On one sub site, users don’t show up in Dashboard / Users.

    I can’t explain this, as I have the following function in wp-config.php for both sub sites:

    ne(‘CUSTOM_USER_TABLE’,’wp_users’:wink:; // shared user db

    define(‘CUSTOM_USER_META_TABLE’,’wp_usermeta’:wink:; // shared usermeta

    (obviously with the prefix set to that the main site is running off)

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.