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.
There has been a critical error on this websitecritical error wordpresswhite screen of deathThe site is experiencing technical difficulties 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 not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in WordPress
- There was an error trying to send your message Contact Form 7: There was an error trying to send your message. Please try again later.
- 403 Forbidden wp-admin WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php
- Download failed WordPress: Download failed. A valid URL was not provided / cURL error 60 / Could not resolve host: downloads.wordpress.org
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 14 Oct 2026