🥇 WordPress Error ✓ White Screen ✓ Database Error ✓

There are several possibilities why you can get a WordPress white screen:

  • A PHP error has crept in that is not output.
  • Problems with the RAM / memory / memory limit
  • Fatal error: Allowed memory size of ….. bytes exhausted
  • Error in a plugin
  • 500 server error
  • Error in a WordPress theme

The first way is to look at the log file/error log of your hoster. With the large number of web space providers and packages, I can’t help you here. A request to the support of your hoster/provider should help.

If you have several pages or WordPress installations on the same server or web space, then simply check whether the error can also be seen here. If the other WordPress installations are running, then the error is only to be found in the affected installation. If several WordPress pages are affected, it can also be due to an incorrect configuration of the server. Contact the support of the hoster/provider here to find out more about possible changes to the web space or updates to the PHP or MYSQL versions.

Here are some countermeasures for the WhiteScreen of Death, you can try the following things (upload and download the files respectively with Filezilla and edit them with Notepad++).

Make PHP errors visible

You can enable DEBUG mode and some other outputs in wp-config.php file:
// Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', true);

Find more information about the WordPress DEBUG error output here: https://wordpress.org/support/article/debugging-in-wordpress/

Increase the memory limit

Increase the memory limit in the wp-config.php file, for example:
define('WP_MEMORY_LIMIT', '64M');
or
define('WP_MEMORY_LIMIT', '128M');

Disable plugins – FTP method

If the white screen has not yet disappeared, undo this change and go to the /wp-content/ directory and rename the plugins folder there to eg plugins.offline – this causes your WordPress plugins to be deactivated immediately. Try logging in again and see if the white screen is gone. If it is gone, rename the folder to plugins and go into this folder with the FTP program. Now you have to rename each individual plugin one after the other and see which plugin caused the error.

Disable plugins – MySQL method

The WordPress plugins can also be disabled using PHPMYAdmin or Adminer. In the wp_options table (with your prefix) look for the active_plugins column and set the value to 0 here. As an alternative to the query (must be supplemented with your prefix):

For current WordPress installations:
UPDATE wp_options SET option_value="a:0:{}" WHERE option_name="active_plugins";

Caution!

If the way via the WordPress database is too insecure for you and you don’t know what you are doing here – use the FTP method!

Change the theme

Another source of error can also be the theme used. The best thing to do here is to change the theme to a WordPress standard theme (e.g. Twenty Fourteen Theme). Depending on the theme, you should make a note of your settings and widgets beforehand or take a screenshot. There are very nice extensions for your browser, I use the Monosnap via Heise myself.

Theme change – FTP method

Rename your theme folder via FTP (WordPress will then automatically switch to a default theme)

Theme change – MySQL method

Using a database change in the wp_options table, change the columns template, stylesheet, and current_theme to twentyfourteen.

Caution!

If the way via the WordPress database is too insecure for you and you don’t know what you are doing here – use the FTP method!

Are you still struggling with the white screen? Check your logfile/errorlog or contact me for further analysis.