• Resolved the_lar

    (@the_lar)


    Hi,

    We use User Switching for our sales team to create customers and switch to them to place orders on our Woocommerce site. They all use Chrome but today it seems to have stopped working completely. Still works in Firefox, but not Chrome.

    I’ve replicated the issue by creating a new customer and clicking the link to switch to them. In Chrome I am redirected back to the admin dashboard and it says ‘Switched to 4x4Admin’ (that’s me) rather than redirecting me to the customers account page and switching me to their account.

    Is there any known issue with a recent Chrome update that you are aware of that could have caused this?

    Many thanks
    Kevin

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter the_lar

    (@the_lar)

    One other thing to add on this is that I am also getting a warning about enabling cookies when I log in on Chrome – not sure if this is related in any way?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Which version of Chrome are you using please?

    Is there anything unusual about the domain name configuration on your site? For example is everything on the same domain or is it Multisite with domain mapping?

    Anything unusual about the HTTPS configuration? Are you using a mixture of “www.” and no-www?

    Any issues logging in manually using the standard WordPress log in functionality?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Also are you using any extensions in Chrome or security settings that your sales agents are also using?

    Thread Starter the_lar

    (@the_lar)

    Hi John,

    Thanks for reply.

    It’s Chrome 93.0.4577.82 which I think is pretty new. Nothing unusual about the https config, we redirect www to non-www and ensure all connections are https but pretty standard there.

    Yes there are some issues logging in normally as I mentioned to do with the cookie message. But I’ve managed to figure a method of getting it to work in Chrome now which is this…

    * I log out of WordPress admin so I’m at the admin login screen
    * I then clear browsing data – all time and clear everything other than my passwords and other sign in data
    * I don’t quit Chrome
    * I then log in again
    * First time I try to log in I get the error which says ‘Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.’
    * I attempt to log in again with same credentials
    * This time it works and I get into admin
    * Now when I go to a user and attempt to switch to them it works successfully

    If I don’t follow the above process and I quit Chrome after clearing my browsing data, when go to login I don’t get any Error message about cookies and then when I try to switch to a user, this is when it fails.

    It’s very odd but I’ve now replicated this on both my Mac and my sales teams PC’s and it’s the same.

    In terms of any extensions, nothing of note really

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I did some cursory Googling and there doesn’t appear to be any cookie related changes in Chrome 93, but there could be some security changes that have had an affect. I’ve updated and checked my dev sites and I’m not seeing any problems myself.

    Did you make any other updates to your site recently? eg. plugin updates or other config or server changes?

    As this problem isn’t specific to User Switching you might want to search and post in the main wordpress.org support forums to see if anyone else is having this problem.

    Thread Starter the_lar

    (@the_lar)

    No other changes recently John.

    I also did some googling and I noticed that the cookie error is often linked to caching. We use Cloudflare for caching, so as a test I have just switched that to development mode – effectively turning it off, and that has seemingly resolved it!! Now every time it try to switch to a user is works fine. Still getting the cookies error message after clearing my data, but not able to break it.

    In all honesty I have no idea what’s going on with it, but I’ll leave cloudflare off for 24 hours, then turn it back on to confirm that this is the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘User Switching just stopped working on Chrome’ is closed to new replies.