• Hello,

    Thanks for this plugin.

    I’m having issues when attempting to switch back to old user as an Admin.

    I’ve investigated the issue and it seems to be related to line 176 in the user-switching.php file. For some reason when it’s authenticating old user it’s not finding the appropriate cookie as an _olduser cookie is set but it’s checking for a non _olduser cookie. And then even if you manually change it to set the _olduser cookie, the stripslashes and json_decode doesn’t seem to work on the matching cookie.

    Please advise, thank you.

    Regards,
    Hart

    https://ww.wp.xz.cn/plugins/user-switching/

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

    (@johnbillion)

    WordPress Core Developer

    Can you try clearing all your cookies for the site and see if the issue persists?

    Thread Starter hartleydcp

    (@hartleydcp)

    Yea, I just tried that and the issue persists.

    If it helps I am also logged in as an administrator.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Can you try deactivating your other plugins one by one to see if the problem is being caused by another plugin? And try switching to a default theme too, such as TwentyFifteen.

    Let me know how you get on.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Could Not Switch Users’ is closed to new replies.