WordPress Critical Error: Find the Cause and Fix
Seeing "There has been a critical error on this website"? Use the recovery email, read debug.log with our free reader, and fix the plugin, theme or PHP cause.

Last updated December 1, 2026
Steps checked against official WordPress.org sources on December 1, 2026
“There has been a critical error on this website” means a fatal PHP error stopped WordPress from loading. A plugin, a theme or the PHP version is the usual cause. WordPress emails the site admin a recovery link, so check that inbox first.
This guide walks you through each fix in order. It starts with the safest step and ends with the ones that need file access.
Key Takeaways
- Check the admin inbox for “Your Site is Experiencing a Technical Issue”. Its recovery link lets you log in.
- The recovery link expires after one day by default, and WordPress sends that email at most once a day.
- No email? Turn on debug logging to find the plugin or theme behind the error.
- Back up your site before you change files. WordPress says this in its own debugging guide.
- PHP 8.1 reached end of life on December 31, 2025. WordPress recommends PHP 8.3 or newer.
What Does “There Has Been a Critical Error” Mean?
It means PHP hit a fatal error while loading your site. WordPress 5.2 added a fatal error handler for this. It shows an error message instead of a blank page and tries to email the site admin a recovery link.
Visitors see the error until the cause is fixed. Recovery mode only pauses the broken plugin or theme for you, the person who clicks the link.
| Common cause | Typical sign | First fix |
|---|---|---|
| A plugin update or new plugin | Error started right after the change | Pause that plugin in recovery mode |
| A theme or theme edit | Log path points to wp-content/themes | Switch to a default theme |
| Memory limit reached | Log says “Allowed memory size exhausted” | Raise WP_MEMORY_LIMIT or ask your host |
| PHP version change | Error started after a host PHP upgrade | Update plugins and themes, or check versions |
Source: Digieh summary based on the WordPress 5.2 recovery mode notes and the wp-config.php handbook, read December 1, 2026.
How Do You Use the WordPress Recovery Mode Email?
WordPress sends the email to the site admin address. Its subject starts with your site name in brackets. Then it says “Your Site is Experiencing a Technical Issue”. It usually names the plugin or theme involved and includes a special login link.
- Open the admin email inbox. Check the spam folder too.
- Click the recovery mode link in the email and log in.
- WordPress pauses the plugin or theme that caused the error. Deactivate it, or update it if a fix exists.
- Click “Exit Recovery Mode” in the admin bar when you are done.
If the extension is still broken after you exit, the error will come back. So fix or remove it first.
RECOVERY_MODE_EMAIL constant.Source: Digieh read the WordPress core recovery mode code (class-wp-recovery-mode.php and class-wp-recovery-mode-email-service.php) on December 1, 2026.
How Do You Find the Cause Without the Email?
Turn on debug logging. WordPress then writes every error to a file called debug.log in the wp-content folder. Open wp-config.php in your site’s root folder with your host’s file manager or FTP.
Add these lines above the line that says “That’s all, stop editing!”:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );Reload your broken page once. Then open wp-content/debug.log and read the last lines. Paste a fatal error line into the reader below.
Debug log reader
Paste one error line from your debug.log or your host’s error log. It stays in your browser. Nothing is sent anywhere.
Digieh tool. It reads the file path and error type in the line. Always confirm before you change anything.
WP_DEBUG back to false once your site works. Write false without quotes, or WordPress reads it as true.How Do You Turn Off Plugins Without the Dashboard?
If you cannot reach wp-admin, rename the plugin folder. WordPress cannot load plugins it cannot find, so they switch off.
- Open your host’s file manager or connect with FTP.
- Go to the wp-content folder.
- Rename the plugins folder to plugins-off.
- Reload your site. If it works, a plugin caused the error.
- Rename the folder back to plugins.
- Rename one plugin folder at a time until the error returns. That plugin is the cause.
If the debug log already names a plugin, rename only that plugin’s folder. It is faster and leaves the rest running.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
How Do You Switch to a Default Theme?
If the error comes from your theme, rename the active theme’s folder in wp-content/themes. WordPress then tries to load a default theme, if one is installed.
If no default theme is installed, download one from the WordPress theme directory first. Upload it to wp-content/themes, then rename your old theme’s folder.
What caused your critical error?
- A plugin update
- A theme or code edit
- Memory or PHP version
- Not sure
Seeing a completely blank page with no message instead? That is the white screen of death. See our WordPress white screen of death guide.
Can Low Memory Cause a Critical Error?
Yes. If your log says “Allowed memory size of … exhausted,” PHP ran out of memory. WordPress tries to raise memory to 40MB on single sites and 64MB on multisite by default.
You can raise the limit in wp-config.php. The WordPress handbook gives this example:
define( 'WP_MEMORY_LIMIT', '64M' );Some hosts block this change. WordPress says to contact your host to raise the PHP memory limit in that case.
Getting a 500 Internal Server Error rather than this message? See our WordPress 500 error guide.
Which PHP Version Should WordPress Use?
WordPress recommends PHP 8.3 or greater. Older versions can still run WordPress, but WordPress warns they may expose your site to security risks.
| PHP version | Security support until | Status in December 2026 |
|---|---|---|
| 8.1 | December 31, 2025 | End of life |
| 8.2 | December 31, 2026 | Security fixes only, ending this month |
| 8.3 | December 31, 2027 | Security fixes only |
| 8.4 | December 31, 2028 | Supported |
| 8.5 | December 31, 2029 | Supported |
Source: PHP supported versions and PHP end of life list, read December 1, 2026. WordPress recommendation from WordPress requirements.
Some guides still call PHP 8.1 a supported version. It is not anymore. Change PHP versions in your host’s control panel, and test after the change. If the error started right after a PHP change, a plugin or theme may not support the new version yet.
Seeing “Error establishing a database connection” instead? That is a different problem. See our database connection error guide.
What If Nothing Works?
Restore a backup from before the error started, if you have one. If you cannot restore one, contact your host. They can read server error logs you may not see.
Many critical errors start right after an update. Keeping a recent backup makes any fix much easier.
How Can You Prevent Critical Errors?
- Back up before every plugin, theme or PHP update.
- Test big updates on a staging copy first.
- Update plugins one at a time, so you know which one broke.
- Keep the admin email address current, so the recovery email reaches you.
- Remove plugins you no longer use.
Securing the admin login matters too. Our guide to passkeys explains a safer way to sign in. Building a business site? See our Google Business Profile setup guide and our Shopify vs Etsy comparison.
Site loops instead of showing an error? See our WordPress too many redirects fixes.
Does your error log say allowed memory size exhausted? Decode it with our WordPress memory exhausted error guide.
Test Yourself
Where does WordPress write errors when debug logging is on?
- wp-admin/errors.txt
- wp-content/debug.log
- The site homepage
With WP_DEBUG_LOG set to true, WordPress saves errors to debug.log in the wp-content folder.
Who sees your site normally while you are in recovery mode?
- Only you
- Every visitor
- Nobody
Recovery mode pauses the broken plugin or theme only for you. Visitors still see the error until it is fixed.
Frequently Asked Questions
Why did I not get the recovery mode email?
WordPress sends it to the admin email in Settings, General. Check spam. WordPress also limits the email to one per day, so an earlier email may already hold the link.
Is my site hacked if I see a critical error?
Not usually. The message means PHP hit a fatal error, most often from a plugin, theme or PHP version. Your error log shows the exact file.
Will renaming the plugins folder delete my plugins?
No. Renaming only stops WordPress from loading them. Rename the folder back and the plugins return, though you may need to reactivate them.
Should I leave debug mode on?
No. WordPress says debug tools are for testing and staging. Turn WP_DEBUG off once your site works again.
Conclusion
A WordPress critical error is a fatal PHP error, usually from a plugin, theme, memory limit or PHP version. Start with the recovery email. If it never arrives, read debug.log, switch off the named plugin or theme and keep PHP current.
Editor’s Note
This guide is accurate as of December 1, 2026. We checked the WordPress developer handbook, WordPress requirements, WordPress core code and php.net on that date. WordPress 7.1.5 was the latest release then. Hosting panels differ, so your host’s steps may look different.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1Home & KitchenBosch Washer Error Codes: Meanings and Quick Fixes7 min read
2Visas & PassportsSchengen Visa Photo Size: 35×45 mm Rules Checked7 min read
3AI & TechDNS Server Not Responding on Windows 11: Fixes7 min read
4AI & TechCan’t Log In to WordPress Admin: Loop Fix7 min read
5AI & TechWordPress 504 Gateway Timeout: Find the Slow Layer7 min read
6AI & TechGoogle Chose Different Canonical Than User: Real Fixes8 min readFound this useful?












