• Resolved Jill Anderson

    (@jillbalkus)


    Hi! The switch back link that shows up in the footer stopped appearing recently. I narrowed it down to the latest Jetpack update (Version 8.1.1). When I deactivate Jetpack, the I see the switch back link again. When I activate Jetpack, it disappears.

    This line doesn’t appear at all when I view the source code with Jetpack activated and I’ve switched users:

    <p id="user_switching_switch_on">Switch back to jilllynndesign (jilllynndesign)</p>

    Any thoughts?

    • This topic was modified 4 years, 10 months ago by Jill Anderson. Reason: code

    The page I need help with: [log in to see the link]

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

    (@johnbillion)

    WordPress Core Developer

    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?

    Thread Starter Jill Anderson

    (@jillbalkus)

    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.

    • This reply was modified 4 years, 10 months ago by Roger Coathup.
    • This reply was modified 4 years, 10 months ago by Roger Coathup.
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    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.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    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.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Fixed. Thanks for the reports.

    Thread Starter Jill Anderson

    (@jillbalkus)

    Yes! I updated the plugin and now all is working as expected. Thank you very much!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Switch back link isn’t displaying when Jetpack plugin activated’ is closed to new replies.