Title: Fatal Error
Last modified: October 9, 2023

---

# Fatal Error

 *  Resolved [PhilEvans62](https://wordpress.org/support/users/philevans62/)
 * (@philevans62)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4548/)
 * Hi,
 * I’ve been getting 500 errros when trying to use User Switching, so I deleted 
   the plugin twice and tried to reinstall, but I get this error when trying to 
   enable
 * **Fatal error**: Cannot declare class user_switching, because the name is already
   in use **/wp-content/plugins/user-switching/user-switching.php** on line **40**
 * When I delete it completely, I still see the Switch To link in the user list 
   as well.
 * Thanks
 * Phil

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4548/#post-17111051)
 * This means the plugin is present elsewhere on your site, possibly via a mu-plugin
   or maybe bundled with a theme.
 * If that’s not the case, try restarting the PHP process on your server.
 *  Thread Starter [PhilEvans62](https://wordpress.org/support/users/philevans62/)
 * (@philevans62)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4548/#post-17111071)
 * Ah, thanks John. It may be bundled with Uncanny Toolkit for Learndash. I’ll check
   that out.
 * Thanks
 * Phil
 *  Thread Starter [PhilEvans62](https://wordpress.org/support/users/philevans62/)
 * (@philevans62)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4548/#post-17111469)
 * Hi John,
 * I’ve disabled the Uncanny version and re-installed yours, and the fatal error
   goes away, but now I get an 502 Bad Gateway nginx error.
 * With thanks
 * Regards
 * Phil

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

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

 * 3 replies
 * 2 participants
 * Last reply from: [PhilEvans62](https://wordpress.org/support/users/philevans62/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4548/#post-17111469)
 * Status: resolved