WordPress: The plugin x has been deactivated due to an error: Plugin file does not exist.
An active plugin’s main file can’t be found — the plugin folder was renamed, deleted or moved outside WordPress.
has been deactivated due to an error: Plugin file does not existPlugin file does not exist Meaning
WordPress stores active plugins by path (folder/file.php). Renaming plugin folders (often to disable them during troubleshooting), failed updates or deployments without the plugin cause automatic deactivation.
Common causes
- Plugin folder renamed or deleted
- Failed update leaving a partial folder
- Deployment missing the plugin
- Case-sensitive path change after moving servers
⚡ Quick fix
- Restore or reinstall the plugin
- Rename the folder back
- Reactivate in Plugins
Detailed fix by platform
Shell
- php
wp plugin list --status=inactive wp plugin install woocommerce --activate
How to diagnose
- Folder — Exists with the expected name?
- Deploy — Included?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Call to undefined function (WordPress) WordPress: Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() / add_action() / get_header()
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
- Critical error WordPress: There Has Been a Critical Error on This Website
Most viewed in WordPress
- There was an error trying to send your message Contact Form 7: There was an error trying to send your message. Please try again later.
- 403 Forbidden wp-admin WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php
- Download failed WordPress: Download failed. A valid URL was not provided / cURL error 60 / Could not resolve host: downloads.wordpress.org
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026