Skip to content
Fix Library

WordPress 'critical error on this website' fix

Seeing 'There has been a critical error on this website'? Learn the causes, use recovery mode, and follow safe steps to fix it. Call (804) 375-4450.

At a glance

The message 'There has been a critical error on this website' means WordPress caught a fatal PHP error. Check the administration email for a recovery mode link, which lets you log in with the faulty plugin or theme paused, then deactivate it. If no email arrives, read the debug log and rename the named plugin folder. Your content is not lost.

Updated November 29, 2026 · For site owners seeing the critical error message

  • For owners whose site shows the critical error message
  • First step open the recovery mode email sent to the administration address
  • No email log errors to debug.log and rename the plugin or theme folder it names
  • Content not lost, it is stored in the database
  • Help emergency support responds in 15 minutes with service credits
  • Pricing rescue is pay-only-if-fixed; the quote comes before work starts

The message "There has been a critical error on this website" means WordPress caught a fatal PHP error. Check the administration email for a recovery mode link, which lets you log in with the faulty plugin or theme paused, then deactivate it. Your content is not lost.

What does this error mean?

Since WordPress 5.2, a fatal error shows this message instead of a blank screen, and WordPress tries to email the administration address a special link. That link opens recovery mode, where the plugin or theme that crashed is paused only for you, so you can reach the dashboard and fix it.

What are the common causes?

CauseTypical trigger
Plugin update or new pluginConflict with another plugin or your PHP version
Theme update or bad editChanges to theme files, including functions.php
PHP version too new or too oldHost change or an old plugin
Failed core or plugin updateFiles left half-written
Memory exhaustionImport, backup or heavy page
Injected malicious codeOccasionally, in a plugin or theme file

What are the safe steps?

Back up the files and database first. All steps are reversible.

  1. Open the recovery email

    Search the administration inbox for a message from your own site about a technical issue. Click the link, log in, and read which plugin or theme it names. Deactivate it rather than deleting it.

  2. No email? Read the log

    Turn on logging (below), reload the page, then open wp-content/debug.log and find the latest "Fatal error" line. It gives a path inside plugins or themes.

  3. Disable the named plugin

    Over SFTP, rename its folder, for example to plugin-name-off.

  4. If no plugin is named,

    rename the whole plugins folder, test, then restore it and re-test plugins one at a time.

  5. If the theme is named,

    rename its folder so WordPress falls back to a default theme.

  6. Check the PHP version

    in your hosting panel and try the one the site ran on before.

  7. Switch the debug lines off

    once the site is back.

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Add these above the "stop editing" comment in wp-config.php.

How do I read the log line?

The wording of the message is generic, but the log is not.

Log line containsUsually means
Call to undefined functionA plugin expects another plugin or a newer WordPress
Allowed memory size exhaustedA memory limit was hit
syntax errorA recently edited file has a typo

Keep the exact line, because it is what a developer needs. If the error appeared right after you clicked update, the thing you updated is the first suspect. If only one page shows it, look at a block, shortcode or template used only there.

A worked example

A site shows the critical error right after a theme update, and no recovery email arrives because its mail was already broken. The debug log names a file in the theme's inc folder and says a function is undefined: the theme calls a function that a companion plugin provided, and that plugin was deactivated last week. Reactivating the plugin fixes the page. Reinstalling WordPress would have changed nothing.

15:00
The log line names the real culprit

Is it the same as a white screen?

They share a cause but not the symptom. The critical error message appears when WordPress can catch the failure. A blank page appears when the failure happens before that handler runs, or when display is off. The white screen guide covers the blank-page variant.

How do I make the recovery email reliable?

Set the administration email under Settings, General to an inbox you read, and make sure the site can send mail; see WordPress not sending email. Keep a note of how to reach your host's file manager or SFTP, since that route works when the dashboard does not.

When should I stop and call someone?

Stop if the log names a core file, if the error is inside a premium plugin you rely on for payments or bookings, if no recovery email comes and you have no file access, or if you spot code you do not recognise. After the fix, read a plugin's changelog before updating again, or replace it if it is abandoned, and add a backup before the next round of updates using the maintenance checklist.

How do we fix it?

WordPress emergency support answers within 15 minutes with service credits, and rescue is pay-only-if-fixed. We find the failing file, restore a working state, and tell you what to change so it does not return. If injected code caused it, we handle it under malware removal.

Site down with a critical error?

A person reads it, at any hour.

FAQ

Questions people ask

11 answers. Can't find yours? Ask an engineer.

Where is the recovery mode email?

WordPress sends it to the site's administration email address. Check spam, and check whether that address is one you still read. If it does not arrive, use the file-based steps in this guide.

Link to this answer
Is the critical error the same as the white screen?

It is the same underlying problem, a fatal PHP error. Newer WordPress versions show a message instead of a blank page and can send a recovery link.

Link to this answer
Will deactivating a plugin lose its data?

Deactivating normally keeps the plugin's settings and data. Deleting a plugin can remove them, so deactivate first and delete only when you are sure.

Link to this answer
Should I reinstall WordPress?

Not as a first step. The error is usually a plugin or theme, and reinstalling core does nothing for that.

Link to this answer
What does 'Allowed memory size exhausted' in the log mean?

A page, import or plugin needed more memory than PHP allows. Raising the limit may help, but find what is using the memory too.

Link to this answer
What does 'Call to undefined function' mean?

Usually a plugin or theme expects another plugin, or a newer WordPress or PHP version, that is not present. Reactivating the missing plugin or matching versions often fixes it.

Link to this answer
Why did it appear only on one page?

The cause is likely a block, shortcode or template used only on that page. The log line will name the file involved.

Link to this answer
Can a PHP version change cause it?

Yes. Code written for another PHP version can fail on a newer or older one. Check the version in your hosting panel and try the one the site ran on before the problem.

Link to this answer
How do I make the recovery email reliable?

Set the administration email under Settings, General to an inbox you read, and make sure the site can send mail. Keep a note of how to reach your host's file manager or SFTP.

Link to this answer
Could the cause be malware?

Occasionally. If the log shows code you do not recognise inside a plugin or theme, stop and treat it as a possible compromise; malware removal handles that.

Link to this answer
What should I note down before asking for help?

When it began and what you did just before, the exact Fatal error line from debug.log with its file path, your PHP and WordPress versions, and whether wp-admin and the front end work.

Link to this answer

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.