WordPress: There Has Been a Critical Error on This Website
A PHP fatal error (usually from a plugin or theme) stopped WordPress; the real error is in the debug log or recovery-mode email.
Meaning
Since WordPress 5.2, fatal errors show this friendly message instead of a white screen. WordPress emails the admin a recovery-mode link describing which plugin/theme failed.
Common causes
- Plugin or theme incompatible with your PHP or WordPress version
- Plugin/theme update introduced a bug
- PHP memory limit exhausted
- Corrupted or partially uploaded plugin files
- Custom code in functions.php with a syntax error
⚡ Quick fix
- Open the recovery-mode link from the admin email
- Enable WP_DEBUG_LOG and read wp-content/debug.log
- Rename the offending plugin folder in wp-content/plugins via FTP/SSH
- Switch to a default theme by renaming your theme folder
- Raise memory:
define('WP_MEMORY_LIMIT', '256M');
Detailed fix by platform
WordPress
- wp-config.php — log errors without showing them to visitors:php
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); // writes wp-content/debug.log define('WP_DEBUG_DISPLAY', false);
Linux
- With WP-CLI:
wp plugin deactivate --allthen re-enable one by one.
How to diagnose
- Email — Did WordPress email a recovery link naming the plugin?
- Debug log — What is the fatal error and file?
- Recent change — Which plugin/theme/PHP version changed?
🧠 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 2 Oct 2026