Requirements
WordPress 6.0 or newer (tested up to 7.1) and PHP 7.4 or newer. The plugin writes to wp-content/mu-plugins/, wp-content/.wper-private/ and, if writable, wp-config.php. WooCommerce is not required. Multisite is supported.
Install
- Download the free ZIP from the product page.
- Go to Plugins → Add New → Upload Plugin, choose
wp-emergency-recovery-1.2.1.zipand activate it. - Open Tools → Emergency Recovery. Check that MU loader shows Installed, wp-config.php token shows Configured and Protected storage shows Writable by the web server.
- If the token is not configured, copy the
define('WP_RECOVERY_TOKEN', '…');line shown on that screen intowp-config.phpabove the line “That’s all, stop editing!”. - Save both Emergency URLs in a password manager. Do not share them by e-mail or chat.
Test it once on staging
- On a staging copy, create a small test plugin that triggers a fatal error, for example by calling an undefined function, and activate it.
- The site shows “There has been a critical error on this website”.
- Open your early recovery URL
https://your-site/?wp_recovery=TOKEN. The test plugin appears under Recent fatal errors. - Click Deactivate next to the test plugin. You see “Plugin deactivated and emergency-blocked” and the site loads again.
- Delete the test plugin, then remove the block on Tools → Emergency Recovery.
Recover a real site
1. Early WordPress route
Open /?wp_recovery=TOKEN. It works whenever WordPress reaches the point where must-use plugins load – which is the case for most plugin fatal errors. The panel shows active plugins (site and network), emergency-blocked plugins and recent fatal errors with the plugin that caused them.
2. Standalone fallback
If the early route does not open, use /wp-content/mu-plugins/wp-emergency-recovery/recovery.php?token=TOKEN. It does not load WordPress. It reads the last cached list of active plugins and, when wp-config.php contains ordinary literal DB_NAME, DB_USER, DB_PASSWORD and DB_HOST values, deactivates the plugin directly in the database. Credentials built at runtime (for example with getenv()) are not evaluated; in that case the panel writes a file-backed block that applies on the next request that can reach the database.
3. After recovery
- Find the cause – update, roll back or replace the plugin – before you remove the block.
- Blocked plugins never load, even if they are activated, until you click Remove block in the panel or on Tools → Emergency Recovery.
- The Plugins screen shows a notice while any plugin is emergency-blocked.
Security
- The token is 64 random characters and must be at least 32 characters. Treat it like an administrator password and use HTTPS.
- Query strings can appear in server access logs. Click Regenerate token on Tools → Emergency Recovery if the token may have leaked; save the new URLs afterwards.
- Five wrong tokens from one IP address within 15 minutes lock further guessing for 15 minutes. The correct token still works.
- For maximum isolation, define
WPER_STORAGE_DIRinwp-config.phpas an absolute directory outside the public web root. - The free plugin sends no data to external services.
Settings and maintenance
- Fatal log entries – how many fatal errors are kept (default 50). They are stored in protected files, not in the database.
- Install / repair MU files – copies the recovery layer again, for example after a manual file deletion.
- Regenerate token – creates a new token in
wp-config.php; old URLs stop working. - Remove MU recovery layer – switches recovery off while keeping the plugin installed.
Deactivation, uninstall and kill switch
Deactivating the plugin does not remove the recovery layer: fatal errors are still logged, blocks stay in force and the emergency URLs keep working. Deleting the plugin removes the MU files and the protected storage. If the recovery layer itself ever causes a problem, add define('WPER_DISABLE', true); to wp-config.php, or rename wp-content/mu-plugins/000-wp-emergency-recovery-loader.php via FTP or your hosting file manager.
Limitations
The plugin cannot help with failures that happen before must-use plugins load: a broken wp-config.php, damaged WordPress core files, PHP start-up errors or a missing PHP extension. A complete database outage cannot be fixed by deactivating a plugin. Errors in themes and WordPress core are logged but not treated as plugin failures.
Support
For questions, use Support on pluginivo.com and include your WordPress, PHP and plugin versions and what the Tools → Emergency Recovery screen shows. Never send your recovery token.
