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?
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?
Also are you using any extensions in Chrome or security settings that your sales agents are also using?
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
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.
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.