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.
Seen on:
WordPress
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
Other ways to find it
🧠 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026