Title: Errors 5** everywhere after removing plugin
Last modified: January 1, 2023

---

# Errors 5** everywhere after removing plugin

 *  Resolved [Jack](https://wordpress.org/support/users/jack1132132/)
 * (@jack1132132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/errors-5-everywhere-after-removing-plugin/)
 * Hello,
   I’m trying to delete w3 on my website and the uninstall button is returning
   the following error:
 *     ```wp-block-code
       Fatal error: Uncaught W3TC\Util_Environment_Exceptions in /jacku/wordpress/wp-content/plugins/w3-total-cache/Root_Environment.php:83 Stack trace: #0 /jacku/wordpress/wp-content/plugins/w3-total-cache/Util_Activation.php(205): W3TC\Root_Environment->fix_after_deactivation() #1 /jacku/wordpress/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(203): W3TC\Util_Activation::deactivate_plugin() #2 /opt/jacku/wordpress/wp-includes/class-wp-hook.php(308): W3TC\Generic_Plugin_Admin->admin_init() #3 /opt/jacku/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /opt/jacku/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /opt/jacku/wordpress/wp-admin/admin.php(175): do_action() #6 /opt/jacku/wordpress/wp-admin/plugins.php(10): require_once('...') #7 {main} thrown in /jacku/wordpress/wp-content/plugins/w3-total-cache/Root_Environment.php on line 83
       ```
   
 * I’ve tried deactivating it and removing it, but now it’s returning randomly errors
   5** left and right. Sometimes from images, sometimes from scripts, other times
   from the actual page. It’s mainly error 502 and 521s.
   Please help me uninstall
   this so I can get back to developing on this server.Thank you.

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

 *  Thread Starter [Jack](https://wordpress.org/support/users/jack1132132/)
 * (@jack1132132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/errors-5-everywhere-after-removing-plugin/#post-16333210)
 * Hello,
   I’ve followed the instructions in [https://wordpress.org/support/topic/error-502-and-redirect-to-home-page-with-w3-total-cache-plugin/](https://wordpress.org/support/topic/error-502-and-redirect-to-home-page-with-w3-total-cache-plugin/):
 * > To completely remove W3 Total Cache please follow the instructions below:
   > 1.
   > Purge Cache2. Deactivate and Delete Plugin3. Check .htaccess File (make backup)
   > W3TC will create many directives in .htaccess file to control the caching behavior.
   > Each section will start and end with comments like “#BEGIN W3TC Page Cache 
   > core” and “#END W3TC Page Cache core”.Ensure that no residual entries are left
   > over in your .htaccess file after deleting the plugin.4. Delete wp-content 
   > files and folders– cache folder– w3tc-config folder– object-cache.php (if exists)–
   > advanced-cache.php (if exists)– db.php (if exists)– upgrade folder– delete 
   > w3-total-cache folder in wp-content/plugins/ (if exists)5. Delete Cached Files
   > from CDN (if using CDN)Besides deleting all the relevant files, if you use 
   > CDN then ensure to purge the cached content from your CDN. This is necessary
   > when you enabled minify option in W3TC settings. You should delete the minified
   > and combined scripts and CSS files from your CDN server to avoid the site breaking
   > on the browser.
   > Thanks!
 * But I’m still having the 500 errors.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/errors-5-everywhere-after-removing-plugin/#post-16334906)
 * Hello [@jack1132132](https://wordpress.org/support/users/jack1132132/)
 * Thank you for reaching out and I am happy to assist you with this.
   There appears
   to be some problem with your hosting environment, as the plugin cannot be removed
   via the dashboard. And since you’ve removed all the W3TC files from the server,
   it means that W3 Total Cache does not have any impact on your website at all.
 * Can you please check WP_DEBUG and see if there are any error messages?
 * Can you please share the website URL and where the website is hosted, and have
   you tried reaching out to your hosting provider for assistance?
 * Thanks!

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

The topic ‘Errors 5** everywhere after removing plugin’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/errors-5-everywhere-after-removing-plugin/#post-16334906)
 * Status: resolved