Skip to content

How to Fix “There Has Been a Critical Error on This Website”

Fix the WordPress critical error message: use the recovery-mode email, read the debug log, disable the faulty plugin or theme and check PHP compatibility.
How to Fix “There Has Been a Critical Error on This Website” — WebDesigningPune guide
Quick answer

“There has been a critical error on this website” is WordPress’s friendly message for a PHP fatal error, usually caused by a plugin, theme or custom code — often right after an update. Check the site admin’s email for the recovery-mode link, log in through it and deactivate the faulty plugin or theme. If there is no email, enable debug logging, find the failing file and disable it via your host’s file manager.

“There has been a critical error on this website.” It is one of the most alarming messages a WordPress owner can see — especially when it appears right after clicking “Update”. Take a breath: in the vast majority of cases, your content is safe, and the cause is a single plugin, theme or PHP compatibility issue.

WordPress even includes a built-in recovery mode to help. This guide walks you through using it, finding the culprit and preventing a repeat.

Since WordPress 5.2, fatal errors show this message instead of a blank page, and WordPress tries to tell you what broke. Here is how to use that.

Important: Before changing files or the database, take a backup if you can. If you cannot log in, your host’s backups or file manager can help — see how to back up WordPress.

Step 1: Use the recovery-mode email

WordPress emails the site administrator a message titled something like “Your Site is Experiencing a Technical Issue”. It names the plugin or theme and includes a special login link. Use it to log in with the faulty code paused, then deactivate, update or replace it. Check spam folders if you cannot find the email.

There has been a critical error: step 1: Use the recovery-mode email

Step 2: Find the error yourself

// wp-config.php — log errors privately to wp-content/debug.log
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Reproduce the error, then open wp-content/debug.log. The last lines usually name the plugin or theme file causing the problem. Turn debugging off and delete the log afterwards.

Step 3: Disable the culprit

  • Plugin: rename its folder inside wp-content/plugins.
  • Theme: rename the active theme folder in wp-content/themes to fall back to a default theme.
  • Custom code: undo recent edits to functions.php or a code snippets plugin.
Numbered step-by-step screenshot sequence for “Step 3: Disable the culprit”

Step 4: Check PHP compatibility

Critical errors often appear when a host upgrades PHP and an old plugin or theme is not compatible, or when a plugin requires a newer PHP version than your server runs. Check the plugin’s requirements and your PHP version in Tools → Site Health → Info → Server.

Step 5: Update or replace

Update the plugin or theme to a version that fixes the bug, roll back to the previous version, or replace it with a maintained alternative.

Screenshot or photo that supports “Step 5: Update or replace” in a guide about wordpress critical error

Tip: Test updates on a staging site first and keep automatic backups, so a bad update never takes your live site down. See WordPress staging site.

For a complete method, see our WordPress troubleshooting guide.

Common causes of a WordPress critical error

What happened just before Most likely cause
Updated a plugin The updated plugin, or a conflict with another plugin
Changed theme or edited functions.php Theme code error
Host upgraded PHP An old plugin or theme not compatible with the new PHP version
Nothing obvious Memory limit, corrupted file or server issue

Prevent “there has been a critical error” next time

  • Back up before every update.
  • Update plugins one at a time on business-critical sites.
  • Test major updates on a staging site first.
  • Replace abandoned plugins that are no longer updated.
  • Check PHP compatibility before your host upgrades PHP.
  • Never edit theme files directly on the live site.

Tip: Keep FTP or file manager access details handy. If you are locked out of the dashboard, renaming a plugin’s folder is often the fastest fix.


Frequently asked questions

What does the WordPress critical error mean?

It means PHP stopped with a fatal error while loading the page, usually because of a bug or incompatibility in a plugin, theme or custom code.

I did not get the recovery-mode email. What now?

Check spam, make sure the admin email in Settings → General is correct, and use debug logging plus the file manager to disable the faulty plugin or theme manually.

Can updating PHP cause a critical error?

Yes. Older plugins or themes that are not compatible with newer PHP versions can trigger fatal errors after a PHP upgrade.

Is the critical error a hack?

Usually not. It is most often a code error after an update. If you also see unknown files, users or redirects, check for malware.

How do I find which plugin caused the error?

Check the recovery-mode email, enable WP_DEBUG_LOG to read the error log, or deactivate plugins one by one by renaming their folders.

Will deactivating a plugin delete its settings?

Usually not. Deactivating keeps settings in the database; deleting a plugin may remove them depending on the plugin.

Can my host fix a critical error?

Many hosts will help identify the cause from server logs or restore a backup. Contact support with details of recent changes.


Further reading: the official WordPress documentation.

First published November 17, 2026 · Last updated November 26, 2026