Fix 'Plugin file does not exist.' Notices
Easily remove references to deleted plugins that cause "Plugin file does not exist" errors in your WordPress admin.
Description
Have you ever deleted a plugin directly from the server or database and then been stuck with annoying error notifications that can't be cleared?
"The plugin folder-name/file-name.php has been deactivated due to an error: Plugin file does not exist."
This small utility plugin adds missing plugins to your WordPress plugins list and provides a "Remove Reference" link, allowing you to safely clean up invalid plugin entries with one click.
Key Features
- Adds missing plugins directly to your plugins list
- Provides a simple "Remove Reference" action link
- Works with both single site and multisite WordPress installations
- Includes helpful notifications explaining how to fix plugin errors
- One-click auto-scroll to find missing plugins in large sites
- Clean, user-friendly interface following WordPress design patterns
How It Works
When WordPress detects a plugin file that no longer exists but is still referenced in the database as active, it displays an error notice. This plugin:
- Detects all missing plugin references in your database
- Adds them to your plugins list with "(File Missing)" indicators
- Provides a "Remove Reference" link to safely remove them
- Shows clear notifications guiding you through the cleanup process
Use Cases
- You've accidentally deleted a plugin via FTP
- A plugin was removed by another admin but references remain
- You've migrated from another site and have leftover plugin references
- Your hosting provider removed a plugin but didn't clean the database
Installation
From WordPress.org:
- Visit Plugins > Add New in your WordPress admin
- Search for "Fix 'Plugin file does not exist.' Notices"
- Click "Install Now" and then "Activate"
Manual Installation:
- Download the plugin ZIP file
- Go to Plugins > Add New > Upload Plugin
- Upload the ZIP file
- Activate the plugin
Usage
- After activation, navigate to Plugins > Installed Plugins
- If you have missing plugin errors, you'll see them in your plugins list with "(File Missing)" markers
- Click the "Remove Reference" link next to any missing plugin
- The reference will be removed, and the error notification will disappear
Frequently Asked Questions
Is it safe to remove plugin references?
Yes, this plugin only removes entries from the WordPress active_plugins option, which is safe to modify when a plugin no longer exists. It doesn't modify any other database tables or settings.
What happens after I remove a reference?
The plugin entry will be removed from your active plugins list, and the corresponding error notification will no longer appear after you refresh the page.
Can I use this plugin on a multisite installation?
Yes, the plugin works on both single sites and multisite installations. It properly handles network-activated plugins as well.
Screenshots
- Error message with explanation notification
- Missing plugin shown in the plugins list with "Remove Reference" link
- Auto-scroll feature that highlights the missing plugin
Developers
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Submit a pull request
Technical Details
The plugin works by:
- Filtering the
all_plugins
array to add missing plugins - Adding a custom "Remove Reference" action link via
plugin_action_links
- Adding helpful notifications near error messages
- Providing a secure method to remove plugin references from the database
Changelog
1.4.0
- Updated plugin name and text domain
- Repository rename from plugin-reference-cleaner to fix-plugin-does-not-exist-notices
1.3.3
- Improved notification placement next to WordPress error messages
- Added "Click here to scroll" button that automatically locates missing plugins
- Enhanced reliability with multiple injection methods
- Added visual arrow pointing from notification to error message
1.3.2
- Added prominent notification directly below WordPress error messages
- Improved user guidance with visual cues to connect error and solution
- Added eye-catching styling to help users understand how to fix errors
1.3.1
- Added instructional notification explaining how to use the plugin
- Improved user guidance with step-by-step instructions
- Enhanced visual identification of missing plugins
1.3.0
- Complete redesign for maximum compatibility with all WordPress themes
- Now adds missing plugins directly to the plugins list table
- Uses standard WordPress admin UI patterns instead of DOM manipulation
- Added "Remove Reference" action link in the plugins list
- Significantly improved reliability across all WordPress configurations
License
This project is licensed under the GPL-2.0+ License - see the LICENSE file for details.
Support
For support, please visit WP All Stars.