Title: Error message on site when disabling plugin
Last modified: June 20, 2023

---

# Error message on site when disabling plugin

 *  Resolved [JimByrneScotland](https://wordpress.org/support/users/jimbyrnescotland/)
 * (@jimbyrnescotland)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-on-site-when-disabling-plugin/)
 * When I deactivate the plugin it crashes my website. On some of my pages, I get
   the message: “There has been a critical error on this website. Learn more about
   troubleshooting WordPress. ” How do I deactivate and remove your plugin without
   breaking my website?
 * Thanks,
 * Jim
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-message-on-site-when-disabling-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-on-site-when-disabling-plugin/#post-16834376)
 * If this is on the frontend, then it’s possible your active theme has some dependencies
   on the content types or taxonomies, and code is causing fatal errors because 
   they’re no longer available.
 * Without knowing the actual errors, it’s impossible for me to make any suggestions.
 *  Thread Starter [JimByrneScotland](https://wordpress.org/support/users/jimbyrnescotland/)
 * (@jimbyrnescotland)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-on-site-when-disabling-plugin/#post-16836331)
 * Thanks Michael, Thanks for the reminder that I could turn on the error tracking.
   I’ve had a look and was able to removed code from my functions file that was 
   related to custom posts. That seems to have sorted it. Thanks.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-on-site-when-disabling-plugin/#post-16837088)
 * Welcome. Glad you were able to get it figured out.

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

The topic ‘Error message on site when disabling plugin’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/error-message-on-site-when-disabling-plugin/#post-16837088)
 * Status: resolved