That’s strange. I just tried this out locally but couldn’t see a problem with Jetpack 8.1.1 enabled.
The switch back link will only show up in the footer if the switch back link isn’t shown elsewhere – for example in the admin toolbar (under the user profile menu) or in the “Meta” widget if it’s shown on the page. Does the link show in either of those pages?
Does the switch back link show if you manually visit wp-login.php?
Hey John – thanks for the quick reply!
The toolbar doesn’t display at all when I switch users. Probably because it’s a WooCommerce site.
And, no, I don’t see a switch back link if I manually visit wp-login.php.
Thanks!
Hi @johnbillion ,
I’m also facing the same issue. Switch back to link is not showing with the latest version of the Jetpack plugin. The issue is gone as soon as I deactivate the jetpack.
I tried to debug the issue a bit and found that the function user_switching_get_olduser_cookie
is not returning any value to identify the last login user.
Please have a look at this issue as earliest as possible because our site is dependent on that and currently we are using it by deactivating jetpack.
Also experiencing the same problem — it’s showing with JetPack deactviated and with it activated but not ‘setup’; as soon as I ‘setup’ JetPack / approve the connection to WordPress.com, it’s no longer working.
My suspicion is that JetPack is sending some output before user switching calls setcookie, thereby not allowing the cookie to be set.
Note: we also have VaultPress in play; not sure if that is a factor.
Jetpack could either be sending output before headers are sent, or it could be triggering one of WordPress’ cookie functions before it should be, which could cause User Switching’s cookie functionality from breaking.
I’ll try to find some time to look into this next week.
Same issue here… thanks for looking in to it, John.
Has there been any progress on this please? I have experienced it on two sites, on which User Switching has always previously worked fine.
Yes I’m working on a fix here: https://github.com/johnbillion/user-switching/pull/49
I should be able to release a new version of User Switching with this fix in place tomorrow.
Fixed. Thanks for the reports.
Yes! I updated the plugin and now all is working as expected. Thank you very much!!