New Estimate & Proposal Builder, my WordPress plugin for contractors, is now on CodeCanyon. See the plugin

How to fix “There has been a critical error on this website” in WordPress

By jz_boss · 2 min read · Updated

This message means PHP stopped with a fatal error, usually because of a plugin, the theme or a recent update. Your content is safe. Here’s how to find the cause and get the site back.

1. Check your email

WordPress emails the site admin when this happens, with a link to recovery mode. Open it, sign in, and WordPress tells you which plugin or theme failed and lets you pause it.

2. Turn on the debug log

If no email arrived, add these lines to wp-config.php, above the line that says “That’s all, stop editing”:

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

Reload the page, then open wp-content/debug.log. The last “PHP Fatal error” line names the file that failed, which points to the plugin or theme.

3. Switch off the plugin that caused it

Rename that plugin’s folder in wp-content/plugins, for example to myplugin-off. WordPress deactivates it and the site should load again.

Tip: if the error started right after an update, roll back that one plugin to its previous version instead of leaving it off.

4. Still broken?

  • Switch to a default theme by renaming your theme’s folder.
  • Ask your host to raise the PHP memory limit to 256M.
  • Check your PHP version matches what your plugins need.

Remember to set WP_DEBUG back to false when you’re done.

Book a free 20-minute call.

Pick a time in your own time zone. I'll follow up with a quote.

Book a call