johnbillion / user-switching

WordPress plugin that provides instant switching between user accounts.
https://wordpress.org/plugins/user-switching/
GNU General Public License v2.0
187 stars 49 forks source link

Conflict with WP Remote Users Sync Version 1.2.13 | By Alexandre Froger #109

Closed L1zar closed 11 months ago

L1zar commented 1 year ago

Hi we are receiving a Bad Gateway error when trying to use the plugin with WP Remote User Sync image

We have to have the sync plugin activated to allow us use for interoperability between sub-domains, so sadly we cannot deactivate it.

Is it possible to look into a work around for this?

johnbillion commented 1 year ago

Can you find out what the response is and if there's an error in your PHP or server logs?

L1zar commented 1 year ago

Certainly. I must say your response time was incredible. image

johnbillion commented 1 year ago

This may mean that your browser has accumulated a large number of cookies for your domain and when switching to another user the extra cookies that User Switching sets pushes the header size over the limit for your server.

Can you try completely clearing the cookies in your browser for your site's domain? Then log in and try again.

L1zar commented 1 year ago

I cleared all cookies and cache and the problem persists.

L1zar commented 1 year ago

It is a conflict between the 2 plugins. If I turn one off the other works.

johnbillion commented 11 months ago

This is almost certainly an issue where whatever combination of plugins are in use on your site is causing the size of the HTTP response headers to exceed the limit on your server. I've seen this in the past with Nginx reverse proxies. Your best bet is to contact your web host and ask them to increase the Nginx response header size limit.

Good luck!