WordPress white screen (blank page) Print

  • wordpress, white screen, php error, debug
  • 0

A blank white page usually means PHP hit an error that WordPress is hiding. The common causes are a faulty plugin or theme, running out of memory, or a full disk.

Steps

  1. Read the error. In cPanel open Errors under Metrics. It shows the most recent errors for your site, usually naming the plugin or file at fault.
  2. Turn on logging. In wp-config.php, above the line that says "That's all, stop editing", add:
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    Errors are then written to wp-content/debug.log.
  3. Disable plugins. In File Manager rename wp-content/plugins to plugins-off. If the site comes back, rename it again and enable plugins one by one to find the culprit.
  4. Switch theme. Rename your active theme's folder in wp-content/themes. WordPress falls back to a default theme.
  5. Raise memory. Add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php, or raise memory_limit (Changing PHP settings such as memory limit and upload size).
  6. Check PHP. A theme or plugin may not work on the version you are running (Choosing and changing the PHP version).

Turn WP_DEBUG off again when you are done.

If it doesn't work


Was this answer helpful?

« Back