# WordPress: The plugin x has been deactivated due to an error: Plugin file does not exist.

**Code:** `Plugin file does not exist` · **Category:** WordPress · **Seen on:** WordPress

An active plugin’s main file can’t be found — the plugin folder was renamed, deleted or moved outside 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/wordpress/plugin-file-does-not-exist)
