• Hello, I am using User Switching 1.5.

    After updating to WordPress 5.2, if I switch to user A, then switch back, I cannot switch to user A again. I can switch to user B, and then after I switch back, if I try to switch to either user A or user B, I get “switched” to the admin user (i.e., the user that clicked the switch link). If I log out of my website, then log back in, I can then switch to users A and B.

    Tested with Twenty Nineteen theme and no plugins except User Switching. Before update to WP 5.2, this aspect was working fine. Immediately after WP 5.2 update, it was not.

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

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report.

    I can’t reproduce this problem, so it could be that something else is interfering, although I’m not sure what.

    Your best bet is to clear all your cookies for the site, log in, and try again.

    Don’t forget to check that there are no mu-plugins on your site.

    Let me know how you get on.

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Hi, on my site that is live, if I disable a plugin called Ultimate Member, then I can switch to the same user twice. I was using that plugin without this problem before updating to WP 5.2; but I haven’t done further testing to see if that combo is indeed the cause of the problem.

    Unfortunately, this plugin is integral to my site; I cannot permanently disable it.

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Yeah, it’s definitely a conflict with Ultimate Member. When I made a new brand spanking new WordPress site (here: https://thegourmetsocial.club/) with the default theme Twenty Nineteen, and only two users (admin and “testuser”), User Switching by itself worked fine, but when I activate Ultimate Member, I can’t even “switch back”, and those are the only two plugins that are active. I even rolled back to WP 5.1.1 and the same error occurred:

    Page says “Could not switch users” with the url in the browser: https://thegourmetsocial.club/wp-login.php?action=switch_to_olduser&nr=1&_wpnonce=cc00a66118&redirect_to=http%3A%2F%2Fthegourmetsocial.club%2F

    So it’s probably not the change from 5.1.1 to 5.2 that did it.

    Not sure why I don’t get that error when switching back on my live site, though.

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Btw, not sure why I was able to reproduce the can’t-switch-to-same-user-twice error with a “clean” site the first time I posted. That time, I cloned my live site and switched the theme to 2019 and disabled plugins; I’m guessing I have some custom code somewhere that didn’t get disabled when I did that (I bought this site from someone and he had custom code done, and I don’t know who the developers who did it are).

    Regardless, I think you’ll be able to reproduce the error with a “virgin” WP site and just those two plugins.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Cheers. It sounds like something in Ultimate Member is preventing User Switching from working. Can you ask the author of that plugin to check it out?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘after WP 5.2 update, can’t switch to same user twice without logging out’ is closed to new replies.