Skip to content

Tutorials Troubleshooting & errors Beginner1 min read

How to Fix the WordPress White Screen of Death

A blank white page or “There has been a critical error” in WordPress usually means a PHP fatal error. Find the cause and recover your site.

By ZSOLNET Editorial Team Updated

Key takeaways

  • A white screen is a PHP fatal error — the debug log names the cause.
  • Renaming the plugins folder disables all plugins without logging in.
  • WordPress emails a recovery-mode link when a fatal error occurs.

The “white screen of death” — a blank page, or the message “There has been a critical error on this website” — means PHP hit a fatal error and stopped before WordPress could render anything.

1. Check your email

Since WordPress 5.2, a fatal error triggers an email to the site admin address with a recovery mode link. Use it to log in with the failing plugin or theme paused, then deactivate or update it.

2. Turn on debugging

Add these lines to wp-config.php (above the “That’s all, stop editing” line):

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 error names the plugin or theme file that failed.

3. Disable plugins without logging in

In File Manager, rename wp-content/plugins to plugins.off. If the site comes back, rename it to plugins, then rename individual plugin folders to find the culprit.

4. Switch to a default theme

Rename your active theme’s folder in wp-content/themes. WordPress falls back to an installed default theme (such as Twenty Twenty-Five), if one is present.

5. Raise the PHP memory limit

If the log says “Allowed memory size exhausted”, add to wp-config.php:

define('WP_MEMORY_LIMIT', '256M');

The server’s PHP memory_limit must also allow it.

6. Check the PHP version

A recent PHP upgrade can break older plugins. Switch back temporarily in cPanel’s MultiPHP Manager, then update the outdated code.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

Open the ZSOLNET dashboard

No account yet?