Conflict with User Switching plugin

Hi,

The user switching is not working, with Domain Mapping plugin activated. Before your DM plugin, I was using WordPress MU Domain Mapping plugin without any errors.

I just switched to use your domain mapping solution, but it is in conflict with User Switching plugin, so switching is not working.

The User Switching plugin's author has "no time" to take a look at this issue, so I want you to take a look at it.

Thank you!

  • Kasia Swiderska
    • Support nomad

    Hello Surbma,

    Can you turn on the debug mode in WordPress and try to switch users few times to generate errors? To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

    define('WP_DEBUG', true);

    In order to enable the error logging to a file on the server you need to add yet one more similar line:

    define( 'WP_DEBUG_LOG', true );

    In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

    Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:

    define( 'WP_DEBUG_DISPLAY', false );

    The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.

    Past here errors, and if file is very long paste them to the text file and attach.

    Kind regards,
    Kasia

  • Surbma
    • Site Builder, Child of Zeus

    There were no printed errors on the admin.

    These error logs were in my server's log:
    [Thu Nov 26 14:53:43.105600 2015] [:error] [pid 8689] [client 81.183.220.180:28025] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1238, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/users.php
    [Thu Nov 26 14:53:43.105667 2015] [:error] [pid 8689] [client 81.183.220.180:28025] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1242, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/users.php
    [Thu Nov 26 14:53:43.105691 2015] [:error] [pid 8689] [client 81.183.220.180:28025] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1244, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/users.php
    [Thu Nov 26 14:53:43.105709 2015] [:error] [pid 8689] [client 81.183.220.180:28025] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1245, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/users.php
    [Thu Nov 26 14:53:43.105728 2015] [:error] [pid 8689] [client 81.183.220.180:28025] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1248, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/users.php
    [Thu Nov 26 14:53:46.774893 2015] [:error] [pid 8621] [client 81.183.220.180:28069] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1238, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/
    [Thu Nov 26 14:53:46.774959 2015] [:error] [pid 8621] [client 81.183.220.180:28069] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1242, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/
    [Thu Nov 26 14:53:46.774980 2015] [:error] [pid 8621] [client 81.183.220.180:28069] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1244, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/
    [Thu Nov 26 14:53:46.774997 2015] [:error] [pid 8621] [client 81.183.220.180:28069] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1245, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/
    [Thu Nov 26 14:53:46.775015 2015] [:error] [pid 8621] [client 81.183.220.180:28069] PHP Notice: Trying to get property of non-object in /nas/content/live/nepacomm/wp-includes/capabilities.php on line 1248, referer: http://balatonrendezveny-old.npcm.pwp.hu/wp-admin/

  • Rupok
    • Support Ninja

    Hi Surbma

    I hope you had a wonderful day.

    We will be glad to take a look at it but for finding the reason behind the conflict, and for solving it, we need some information. The user switching plugin you mentioned, is it a free plugin? Can you please provide the link to the plugin so that we can try to regenerate the problem in our test environment and try to find which plugin is causing the conflict.

    As @Kasia Swiderska said, if you add the following line inside your wp-config.php file:

    define( 'WP_DEBUG_LOG', true );

    you will get a file named "debug.log" inside your "wp-content" folder. Can you please zip that file and attach with your reply?

    Thanks for sharing the log from server, but this info doesn't help that much actually. I could tell you better about the problem if we could see it in action. Would you mind allowing support access so we can have a closer look at this?
    To enable support access you can follow this guide here:
    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    And can you please give us a little more detail about what is exactly conflicting and how we can regenerate it?

    Have a nice day. Cheers!
    Rupok

  • Surbma
    • Site Builder, Child of Zeus

    Hi Rupok,

    the WP log gives the very same error messages, but I have attached here the log file.

    Here is the link for the plugin, which is free: https://wordpress.org/plugins/user-switching/

    > And can you please give us a little more detail about what is exactly conflicting and how we can regenerate it?

    Install the User Switching plugin and network activate it. Than you can go to a subsite and try to switch user. You won't be able to switch the user.

    Without your Domain Mapping plugin the user switching is working perfectly.

    "Support access is ACTIVE until December 1, 2015 12:51"

    Thank you for your help!

  • Rupok
    • Support Ninja

    Hi Surbma

    I hope you had a wonderful day.

    I just followed the steps you mentioned in your previous comment but I still could not regenerate the issue in my test environment. Please check the following screencast:

    http://take.ms/Jcton

    Please advice, how I can see the error in action. Would you mind allowing support access so we can have a closer look at this?
    To enable support access you can follow this guide here:
    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Have a nice day. Cheers!
    Rupok

  • Surbma
    • Site Builder, Child of Zeus

    > Please advice, how I can see the error in action.

    I have attached the settings page to see the the settings. Try with these options!

    > Would you mind allowing support access so we can have a closer look at this?

    I have already allowed access, as I have written in my previous message.

  • Rupok
    • Support Ninja

    Hi Surbma

    I hope you had a wonderful day.

    I do apologize for the delayed response but we will try to fix this issue as soon as possible. As you said "Support access is ACTIVE until December 1, 2015 12:51", it has expired already. Still I just tried to login but no luck. Can you please grant us Support Access once again so that we can take a closer and detailed look and fix it ASAP?

    Have a nice day. Cheers!
    Rupok

  • Rupok
    • Support Ninja

    Hi Surbma

    I hope you had a wonderful day.

    I just logged in with Support Access and found that User Switching is working perfectly. Please check the screencast: take.ms/VsFv2

    Moreover, I've just found a configuration error in your Domain Mapping configuration. Please check the attached screenshot. In the "Server IP Address: " box, you should enter "104.31.64.70" as the ping result to your site indicates this IP.

    This should solve your problem. If not, please let us know. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Rupok
    • Support Ninja

    Hi Surbma

    I hope you had a wonderful day.

    Thanks a lot for the specific information and now I can see the error in action. And after some tests, I'm confirmed that this "User Switching" plugin doesn't support subdomains. So the only option to use this plugin is either to use it on single WordPress installation, or map a domain, and then access the dashboard through the mapped domain so this plugin thinks, you are running on a single WordPress site.

    I'm afraid, only the plugin developer can make it work on subdomains and it will require advance coding which is beyond our support scope.

    Please let us know if you have any further query. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Surbma
    • Site Builder, Child of Zeus

    > I'm confirmed that this "User Switching" plugin doesn't support subdomains.

    It is true only with your domain mapping plugin. If I use the WordPress MU Domain Mapping plugin, than everything is working fine, as I have written in my very first post.

    This is the reason, why I'm writing to you, that the issue is only with your plugin.

  • Rupok
    • Support Ninja

    Hi Surbma

    Oh I see! Thanks a lot for the follow up. So you are confirming that when "Domain Mapping" plugin is disabled, you can switch users on all sites? Even in subdomain subsites?

    I'll flag our developer as soon as you confirm this. Can I login with Support Access and disable the Domain Mapping plugin to see this in action? I'm looking forward to hear from you and fix this problem as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Surbma
    • Site Builder, Child of Zeus

    Hi Rupok,

    I have tested it and you are right: the user switching is not working even if Domain Mapping plugin is deactivated.

    It is working, if WordPress MU Domain Mapping plugin is activated, that's why I'm only aware of this issue now, when I switched to your Domain Mapping plugin.

    I guess your support ends here, while this issue is not related to your plugin.

    Thank you for your help!

  • Shaun
    • The Incredible Code Injector

    I know this is a really old thread but I had the exact same issue, and WPMU Dev support confirmed it was the same issue.

    I believe Surbma simply did not comment out the "sunrise" line in wp-config, which you need to do after deactivating the plugin. Then they would have realised that it IS the domain mapping plugin causing the conflict.

    In the end I just removed the plugin and used the WordPress 4.5 feature which allows you to map domains without a plugin: https://catapultthemes.com/mapping-a-domain-on-wordpress-4-5-multisite/

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.