You might want to check that the plugin isn’t already being included somewhere else, for example in a mu-plugin or by your theme (unlikely, but hey).
If not, this is something you should speak with your web host about. The plugin just declares the user_switching class without doing anything special.
Same problem here, I can not see the plugin on plugins panel, although I can enable it if I go to add new plugin and do a research using the plugin name. Probably there is something wrong just in the plugin header. It does not seem to be an issue related to any function. In this case, what you think developer? Thank you very much! 😉
I’ve tested this myself on a few sites and I’m unable to reproduce the problem.
Can you install and activate other plugins okay?
If you delete User Switching, can you reinstall and activate it okay?
@johnbillion Hello John, I have enjoyed your plugin earlier and had applied it for a recent project. All went well, until this weekend – had to rebuild this project from a back-up. Which went well mostly. Interestingly, the “Switch to” was available even before I re-installed your plug-in. Presumably, there was something in the back-up which brought this here?
Re-installed User-Switching plugin that this project uses as I could not see it listed (like the cases reported earlier in this thread). Activation gave me the exact same error.
Fatal error: Cannot declare class user_switching, because the name is already in use in /var/www/htdocs/wp-content/plugins/user-switching/user-switching.php on line 36
Also, the functionality is absent, and yet “Switch to” is available in USERS listing and profile. Clicking on any of these links leads to
404-like error – page not found.
I realized your offered suggestions earlier on this – do you have any fresh ideas on what’s going on here? I am not a developer, but have been dabbling with WP for a few years.
Thanks in advance.
Whatever is causing this problem is most likely not related to User Switching itself, and probably caused by a copy of the plugin that’s lingering elsewhere, or an issue with the opcode cache or object cache on your server.
Try restarting your web server and see if the problem persists. If it does, your best bet is to ask in the main ww.wp.xz.cn support forums.