Title: Fatal Error when activation plugin
Last modified: November 1, 2022

---

# Fatal Error when activation plugin

 *  Resolved [terberg](https://wordpress.org/support/users/terberg/)
 * (@terberg)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activation-plugin/)
 * When trying to activate US v. 1.7.0 under WP 6.0.3 I get the following error:
 * `Fatal error: Cannot declare class user_switching, because the name is already
   in use in /var/www/1/190647/www/wp-content/plugins/user-switching/user-switching.
   php on line 40`
 * Any ideas on how to fix?
 * BR,
 * Terje Berg

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activation-plugin/#post-16153621)
 * Is the problem specific to User Switching? Can you try activating another plugin?
   The only thing I can think of is there might be an issue with your opcode cache,
   in which case you should contact your web host.
 * Good luck!

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error when activation 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activation-plugin/#post-16153621)
 * Status: resolved