“There has been a critical error on this website”: what it means and how to fix it

Short answer

WordPress shows this message when a PHP fatal error stops your site running, usually after a plugin, theme or PHP version change. Find the cause in the recovery mode email or the error log, then switch off the faulty plugin or theme, or undo the change.

You usually find out from a customer, or straight after an update. Where your home page should be, there's a plain page with a one-line message.

It looks alarming, but a fatal error only stops the code running. It doesn't delete your pages or your database. Here's how we'd find the cause and get the site back, starting with the gentlest fix.

What the message means

WordPress is written in PHP, a programming language that runs on your web server. A fatal error is a fault serious enough that PHP stops building the page. Since version 5.2, WordPress catches these errors and shows a message like this, rather than a blank white screen.

WordPress.org lists the usual causes: plugins that clash, an incompatible theme or PHP version, running out of memory, or damaged WordPress files. Plugins are the add-ons that give your site extra features. Your theme controls its design.

Visitors see the short version: "There has been a critical error on this website." On the login page or dashboard, WordPress adds "Please check your site admin email inbox for instructions."

The page also sends a 500 status code, which tells browsers and search engines the server has failed. Google's crawlers slow down when they meet server errors, and pages that keep returning them are eventually dropped from its index. It's worth fixing the same day.

When a client calls us about this message, the cause we find most often is [a plugin update that doesn't suit the site's PHP version].

Image to add: Screenshot of the recovery mode email ("Your Site is Experiencing a Technical Issue") sent from a staging copy with a deliberately broken test plugin (Hannah to capture).
Screenshot of the recovery mode email ("Your Site is Experiencing a Technical Issue") sent from a staging copy with a deliberately broken test plugin (Hannah to capture).

Check your inbox for the recovery mode email

WordPress emails the site's administration email address, the one set under Settings > General. A developer can set a separate address for this email, and then it goes there instead. The subject is your site's name, then "Your Site is Experiencing a Technical Issue".

The email names the plugin or theme that caused the error. Under "Error Details", it gives the file, the line and PHP's error message. It also holds a link to recovery mode, which lets you log in with the faulty plugin or theme paused. The link expires after a day, and WordPress emails a new one if the error happens again after that.

If nothing has arrived:

  • Check your spam folder. If the admin address belongs to an old web designer, or a mailbox nobody reads, the email went there.
  • Visit your login page. WordPress only sends the email when the error happens on the login page or in the dashboard. Go to yourdomain.co.uk/wp-admin/, using your own domain, to trigger it.
  • Use the error log instead. WordPress sends at most one email a day. It also sends one only when the fault is in a plugin or theme, even though the on-screen message mentions your inbox.

Use recovery mode to switch off the faulty plugin

  1. Click the link in the email and log in as usual.
  2. Go to Plugins. The plugin appears under a “Paused” filter, marked “This plugin failed to load properly and is paused during recovery mode”, with the error below.
  3. Click Deactivate. This switches it off for everyone, so visitors get your site back.
  4. If the email names your theme instead, go to Appearance > Themes and activate a default theme, such as Twenty Twenty-Five, if one is installed. The site will look different until you fix your theme.
  5. Click “Exit Recovery Mode” in the bar at the top of the screen.

Recovery mode pauses the plugin only for you. Until you deactivate it, everyone else still sees the error.

Before you switch the plugin back on, look for an update to it, or a note from its developer about the error. If there's no fix, replace the plugin or ask the developer.

Find the error in a log

No email? An error log tells you what broke. WordPress can keep its own, called debug.log, which you switch on in wp-config.php, the settings file in your site's main folder.

  1. In cPanel, the control panel many web hosts use, open File Manager. Go to the folder your site is in, usually public_html.
  2. Select wp-config.php and click Download, so you have a copy. Then click Edit, and Edit again in the box that opens.
  3. Find define( ‘WP_DEBUG’, false ); and change false to true. If the line isn’t there, add it with true.
  4. Below it, add define( ‘WP_DEBUG_LOG’, true ); and define( ‘WP_DEBUG_DISPLAY’, false );. All three lines must sit above the line that says “That’s all, stop editing”.
  5. Save, then reload the page that shows the error.
  6. Open wp-content, select debug.log and click View. The newest line containing “PHP Fatal error”, at the bottom, is the one you want.

The file path in that line names the culprit. A path through wp-content/plugins/ points to the plugin with that folder name, and one through wp-content/themes/ points to a theme. "Allowed memory size ... exhausted" means PHP ran out of memory, and your host can raise the limit. If the path points anywhere else, such as wp-includes, or to a file you don't recognise, stop and get help.

Then switch debugging off: set WP_DEBUG back to false, remove the two lines and delete debug.log. WordPress.org says its debugging tools aren't meant for live sites. Its own Site Health check warns that the log is "potentially available to all users".

Your host keeps logs too. In cPanel, Errors (under Metrics) shows up to 300 of the newest entries in your web server's error logs. If your host uses PHP-FPM, a way of running PHP, PHP's own log is in the logs folder of your home directory. Ask your host if you can't find either.

Switch off a plugin from the file manager

If you can't use recovery mode, switch the plugin off by renaming its folder. WordPress.org gives this method for the whole plugins folder, and it works for one plugin too. Renaming keeps the plugin's settings.

  1. In File Manager, open wp-content, then plugins.
  2. Select the folder named in the email or log, click Rename and add .off to the end of its name.
  3. Reload your site. Then open Plugins in your dashboard, where WordPress says the plugin “has been deactivated due to an error”.
  4. Only then, rename the folder back. The plugin stays switched off until you reactivate it.

Not sure which plugin it is? Rename the whole plugins folder to plugins.hold, as WordPress.org suggests, and every plugin switches off. Log in, open Plugins, rename the folder back to plugins, then reactivate plugins one at a time. WordPress refuses to activate a plugin that triggers a fatal error as it loads.

For a theme, rename its folder in wp-content/themes, then log in and open Appearance > Themes. WordPress switches to a default theme, if one is installed.

Image to add: Screenshot of the Plugins screen in recovery mode on the same staging copy, with the test plugin marked "This plugin failed to load properly and is paused during recovery mode" (Hannah to capture).
Screenshot of the Plugins screen in recovery mode on the same staging copy, with the test plugin marked "This plugin failed to load properly and is paused during recovery mode" (Hannah to capture).

Change the PHP version back

Hosts move sites to newer versions of PHP, and an older plugin or theme may not work with them. If the error started straight after a PHP change, switch back while you fix it.

  1. In cPanel, open MultiPHP Manager.
  2. Tick the box next to your domain.
  3. Choose your previous version from the PHP Version menu, then click Apply.

Your host can hide this tool or offer its own, so ask them if you can't find it.

Treat this as a stopgap. Old PHP versions stop getting security fixes: 8.1 and older already have, and 8.2 stops on 31 December 2026. WordPress.org recommends PHP 8.3 or newer. Update or replace the plugin or theme, then move up again.

Restore a backup from before the error

If nothing else works, restore a backup taken before the error started. Use the files and the database from the same backup. WordPress.org's order is files first, then the database. It also advises backing up both before you update WordPress.

Check what you'd lose first. A restore takes the whole site back to the moment of the backup, so orders, form entries and pages added since will go. If your host or care provider keeps backups, ask them to restore one. Our care plans keep daily backups off the server for [30 days].

What not to do

  • Don’t delete the plugin. Renaming its folder does the same job and takes seconds to undo.
  • Don’t leave debugging on. Delete debug.log afterwards. While it’s on, keep WP_DEBUG_DISPLAY set to false, or errors show on the front of your site.
  • Don’t edit the plugin’s code. The next update replaces your change, and one wrong character can cause a new fatal error.
  • Don’t change several things at once. Make one change, reload the page and note what you did, so you know what fixed it.
  • Don’t restore over a busy shop without checking. Orders taken since the backup will be lost.
  • Don’t stay on an old PHP version. It gets the site back, but unsupported versions get no security fixes.

Questions about the WordPress critical error

Not from the error itself. A fatal error stops the code running, but it doesn't delete your pages or your database.

Not necessarily. WordPress.org's usual causes are plugins, themes, PHP versions, memory and damaged files. If the log points to a file you don't recognise, stop and get help.

It can if it lasts. The page returns a 500 status code, and Google's crawlers slow down when they meet server errors. Pages that keep returning them are eventually dropped from its index.

Back up before you update, as WordPress.org advises, and change one thing at a time. Keep PHP on a version that still gets security fixes. On our care plans, we apply updates and then check the site still works.

When to get help

Stop and get help if the log points to WordPress's own files or a file you don't recognise. The same goes if the error keeps coming back, or a restore would lose orders. Call us on 0330 341 3567, or raise a ticket and we'll be in touch [within one working day]. Not on a care plan? We fix one-off problems at [£X an hour] + VAT, and say how long they'll take before starting.

Call 0330 341 3567
The service this article is about

WordPress maintenance

£80/month + VAT

Care plans from £80 a month + VAT, with updates and a check afterwards, daily backups kept off the server, and uptime monitoring. Redesigns, new features, SEO and copywriting aren't included.

See care plansOr call 0330 341 3567
Sources we checked (23)
  1. Common WordPress Errors (the critical error message, its usual causes, memory errors, renaming the theme folder), WordPress.org Advanced Administration Handbook, checked October 2026
  2. Fatal Error Recovery Mode in 5.2 (recovery mode introduced in 5.2; pausing applies only to the user in recovery mode), Make WordPress Core, checked October 2026
  3. class-wp-fatal-error-handler.php, WordPress 7.1 branch (the three versions of the message and the 500 status code), WordPress core development repository, checked October 2026
  4. class-wp-recovery-mode-email-service.php, WordPress 7.1 branch (email subject, wording, Error Details, admin address or a separate RECOVERY_MODE_EMAIL address, link expiry), WordPress core development repository, checked October 2026
  5. class-wp-recovery-mode.php, WordPress 7.1 branch (one email a day; only for plugin or theme errors; one-day link), WordPress core development repository, checked October 2026
  6. load.php, WordPress 7.1 branch (login page and dashboard as protected endpoints; missing plugin files skipped; debug.log location), WordPress core development repository, checked October 2026
  7. class-wp-plugins-list-table.php, WordPress 7.1 branch (“Paused” filter and paused plugin notice), WordPress core development repository, checked October 2026
  8. admin-bar.php, WordPress 7.1 branch (“Exit Recovery Mode”), WordPress core development repository, checked October 2026
  9. plugins.php, WordPress 7.1 branch (“has been deactivated due to an error” and the fatal error activation message), WordPress core development repository, checked October 2026
  10. theme.php, WordPress 7.1 branch and default-constants.php (switching to the default theme, Twenty Twenty-Five), WordPress core development repository, checked October 2026
  11. wp-config-sample.php, WordPress 7.1 branch (the WP_DEBUG line and the “stop editing” line), WordPress core development repository, checked October 2026
  12. class-wp-site-health.php, WordPress 7.1 branch (debug log “potentially available to all users”; errors shown on the front end), WordPress core development repository, checked October 2026
  13. Debugging in WordPress (WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY; not for live sites), WordPress.org Advanced Administration Handbook, checked October 2026
  14. Editing wp-config.php (where the file is; back up before editing), WordPress.org Advanced Administration Handbook, checked October 2026
  15. FAQ Troubleshooting (renaming the plugins folder to plugins.hold; back up before upgrades), WordPress.org, checked October 2026
  16. Backups (restore files first, then the database), WordPress.org Advanced Administration Handbook, checked October 2026
  17. Requirements (PHP 8.3 or greater recommended), WordPress.org, checked October 2026
  18. Supported Versions (8.2 security fixes end 31 December 2026; 8.1 and older unsupported), PHP.net, checked October 2026
  19. File Manager (Rename, Edit and its character encoding prompt, View, Download), cPanel documentation, checked October 2026
  20. MultiPHP Manager for cPanel (changing a domain’s PHP version; hosts can disable it), cPanel documentation, checked October 2026
  21. Errors (up to 300 of the most recent error log entries), cPanel documentation, checked October 2026
  22. How can I view the error log of a site using PHP-FPM? (PHP-FPM error log in the home directory’s logs folder), cPanel Support, checked October 2026
  23. How HTTP status codes affect Google’s crawlers (5xx errors slow crawling; indexed URLs eventually dropped), Google crawling infrastructure documentation (moved from Google Search Central), checked October 2026

About the writer

Hannah Macey

More about Hannah
Get a free health check