Plugin file does not exist WordPress Origin: Application & API Last updated 13 Oct 2026

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.

Exact message you may see has been deactivated due to an error: Plugin file does not existPlugin file does not exist
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

  1. Restore or reinstall the plugin
  2. Rename the folder back
  3. Reactivate in Plugins

Detailed fix by platform

Shell

  1. php
    wp plugin list --status=inactive
    wp plugin install woocommerce --activate

How to diagnose

  1. Folder — Exists with the expected name?
  2. 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:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

Call to undefined function (WordPress) — WordPress: Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() / add_action() / get_header() (WordPress)Call to undefined fun…Call to undefined function create_function() — WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each() (WordPress)Call to undefined fun…Critical error — WordPress: There Has Been a Critical Error on This Website (WordPress)Critical errorDestination folder already exists — WordPress: Destination folder already exists. Plugin installation failed (WordPress)Destination folder al…Installation failed: Could not create directory — WordPress: Installation failed: Could not create directory (plugin/theme install or update) (WordPress)Installation failed: …Plugin could not be activated because it triggered a fatal error — WordPress: Plugin could not be activated because it triggered a fatal error (WordPress)Plugin could not be a…The preview could not be loaded — Elementor: The preview could not be loaded / Server Error 500 / Preview Debug (WordPress)The preview could not…Plugin fi…

Explore the map of this error Full error map →

🧠 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.