Title: Can&#8217;t enable plugin
Last modified: December 17, 2018

---

# Can’t enable plugin

 *  Resolved [nemoprofeta](https://wordpress.org/support/users/nemoprofeta/)
 * (@nemoprofeta)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/)
 * When I try to enable the plugin, I get this error message
    Fatal error: Cannot
   declare class user_switching, because the name is already in use in /home/italian2/
   public_html/wp-content/plugins/user-switching/user-switching.php on line 36
 * How can I fix it?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-10997273)
 * 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.
 *  [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-11004403)
 * 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! 😉
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-11009058)
 * 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?
 *  [vy name](https://wordpress.org/support/users/vy-name/)
 * (@vy-name)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-11249207)
 * [@johnbillion](https://wordpress.org/support/users/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.
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-11256452)
 * 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 wordpress.org support forums.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Can’t enable plugin’ is closed to new replies.

 * ![](https://ps.w.org/user-switching/assets/icon.svg?rev=3193956)
 * [User Switching](https://wordpress.org/plugins/user-switching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-switching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-switching/)
 * [Active Topics](https://wordpress.org/support/plugin/user-switching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-switching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-switching/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/cant-enable-plugin-2/#post-11256452)
 * Status: resolved