Skip to content

Wordpress

WordPress "critical error" and the white screen of death

Find out which plugin, theme or PHP setting broke a WordPress site, and bring it back.

Symptoms: a blank white page, or the message "There has been a critical error on this website."

Likely causes

  • A plugin conflict or a failed plugin update.
  • A theme problem.
  • A PHP version that does not match the plugin, theme or WordPress.
  • The site ran out of PHP memory.

Before you change anything

Take a copy of the site files and the database. A backup turns a mistake into a small delay.

1. Read the real error

In wp-config.php, above the line "That's all, stop editing!", add:

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

Reload the broken page, then open wp-content/debug.log. The path in the last "Fatal error" line names the plugin or theme at fault. Remove the three lines again when you are finished.

WordPress also e-mails the site's administrator a link to recovery mode when it detects a fatal error. Use it if you can.

2. Switch off all plugins

If you cannot reach the dashboard, rename the folder wp-content/plugins to plugins.off. WordPress then loads without any plugins. If the site returns, rename the folder back, then enable the plugins one at a time until the broken one shows itself.

3. Switch to a default theme

Rename your active theme's folder in wp-content/themes. WordPress falls back to a default theme such as Twenty Twenty-Five.

4. Check the PHP version

WordPress, the theme and every plugin must support the PHP version that the server runs. At the moment PHP 8.2 or 8.3 is a safe choice for current WordPress. Change it in your hosting panel, and if a plugin is not compatible, update or replace it.

5. If memory is the problem

Add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php, or ask your hosting provider to raise the PHP memory limit.

When it works again

Update plugins one at a time, remove ones you no longer use, and keep a backup before each update.

Need a hand? Open a ticket and send us the last lines of debug.log.

Updated 2026-12-06

← All articles · Need a hand? Contact me.