• Resolved Trevis

    (@treviscarletta)


    Hello-

    I’ve installed the User Switching plugin on my site but when I try to switch to a different user, it takes me to the WP login screen. Seems like I’m still logged in, but have not switched to the other user.

    I think a plugin called Lockdown WP Admin may be interfering, as it changes the standard /wp-admin login URL to a custom slug. But, when I deactivate it and try to switch users, it still takes me to the login screen, this time displaying a box with a “Switch back to…” link so, it kind of looks like it worked, but when I try to navigate the site, I am now completely logged out. The “Switch Back to…” link will bring me back into the admin section using my account, but I can’t seem to switch the user.

    I also tried deactivating every other plugin one-by-one with no luck.

    Please help, really need the functionality of this plugin on my site!

    Thanks so much!
    -Trevis

    https://www.ads-software.com/plugins/user-switching/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ve just tested User Switching with the Lockdown WP Admin plugin and it all works as expected. I can switch back and forth between users and I can switch off and on again, even if I change the login URL.

    It looks like your site is running an outdated version of WordPress. Please try updating to the latest version of WordPress and see if it fixes your issues.

    Thread Starter Trevis

    (@treviscarletta)

    The site I’m trying to use the plugin on is msp.assistanceleague.org, which is running WordPress 3.9.1.

    Lockdown WP Admin issued an update today and after installing that, trying to switch to a different user returns a 404, which is what the plugin does when trying to access a login page when not logged in with the proper permissions.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Not sure what to suggest then. I see no reason Lockdown WP Admin would prevent User Switching from working. You might want to get in touch with the author of the Lockdown WP Admin plugin and see if they’ll take a look.

    Thread Starter Trevis

    (@treviscarletta)

    But even when I deactivate Lockdown WP Admin and the other plugins on my site, I still end up at the login screen. Is there anything else that may cause that?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Some code in your theme maybe? Or some rogue code in your .htaccess file?

    Thread Starter Trevis

    (@treviscarletta)

    Hmmmm… Tried switching to 2014 theme and still no luck. And here is my .htaccess file contents:

    # Use PHP5.4 Single php.ini as default
    AddHandler application/x-httpd-php54 .php
    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Do you offer premium support services that I can pay for to have you look into it on my site? This is the last component of the site I’m working on and this is a vital function for my client.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Do you offer premium support services that I can pay for to have you look into it on my site?

    Nope, sorry.

    If you’re running a default theme and you’ve deactivated all your other plugins then I’ve no idea what could be wrong. Do you have any plugins in place in the wp-content/mu-plugins directory? If there’s nothing in there then something must have changed within your WordPress install itself. Try reinstalling WordPress (you can do this right from the Updates screen in WordPress).

    Thread Starter Trevis

    (@treviscarletta)

    Nah, that didn’t help. Would you be open to checking it out on my site if I set up an admin user account for you? If so, send me a message. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Doesn't switch user, brings me to login screen’ is closed to new replies.