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.

Share this post
8 min read

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.
Before you start. WordPress advises a backup or a staging copy before you change anything on your site. Many hosts offer backups in their control panel.
2 of 2AI Overview answers Digieh checked, on Google and Bing, still suggest PHP 8.1. The PHP end of life list shows 8.1 lost support on December 31, 2025.

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 causeTypical signFirst fix
A plugin update or new pluginError started right after the changePause that plugin in recovery mode
A theme or theme editLog path points to wp-content/themesSwitch to a default theme
Memory limit reachedLog says “Allowed memory size exhausted”Raise WP_MEMORY_LIMIT or ask your host
PHP version changeError started after a host PHP upgradeUpdate 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.

  1. Open the admin email inbox. Check the spam folder too.
  2. Click the recovery mode link in the email and log in.
  3. WordPress pauses the plugin or theme that caused the error. Deactivate it, or update it if a fix exists.
  4. 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.

Good to know. In WordPress core, the recovery link lasts one day by default. The email is also limited to one per day. A developer can send it to a different address with the 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.

Turn it off afterwards. WordPress says debug tools are meant for local and staging sites, not live ones. Set 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.

  1. Open your host’s file manager or connect with FTP.
  2. Go to the wp-content folder.
  3. Rename the plugins folder to plugins-off.
  4. Reload your site. If it works, a plugin caused the error.
  5. Rename the folder back to plugins.
  6. 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 versionSecurity support untilStatus in December 2026
8.1December 31, 2025End of life
8.2December 31, 2026Security fixes only, ending this month
8.3December 31, 2027Security fixes only
8.4December 31, 2028Supported
8.5December 31, 2029Supported

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.

Try this today. Open Settings, then General, in your WordPress dashboard. Check that the admin email is one you read.

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?

  1. wp-admin/errors.txt
  2. wp-content/debug.log
  3. 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?

  1. Only you
  2. Every visitor
  3. 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

Found this useful?

Share this post
Avatar photo

Syed Wasif Raza

Syed Wasif Raza is the founder and editor of Digieh. He writes about health, food, lifestyle, news and sports in plain, easy English. Every guide he publishes is checked against official sources such as government and health agency pages. Connect with him on LinkedIn.

Articles: 957

Leave a Reply

Your email address will not be published. Required fields are marked *