The ‘White Screen of Death’ (WSoD) is a common WordPress error. And one of the most frustrating.

As the name suggests, when you try to load a page, you’re presented with just a blank, white screen.

This can happen when a user tries to load your website. Or it could be that the wp-admin area is suffering from WSoD – making the back end of the website completely inaccessible.

The cause of the WSoD is due to issues with the website’s code. New themes/plugins, file permissions, memory limits and manual code customisation -or a combination of these – are usually the culprit.

In this article we’ll show you ten methods to fix the WordPress White Screen of Death.

Check your error logs

One of the first things you should check are the site’s error logs. As a Goazh customer these are accessible via your Goazh hosting control panel > Logs & Stats > Access/Error Logs.

Error logs in My20i WordPress logs and stats

If your site is not on Goazh hosting, you may have access to them in your control panel. If not, you’d need to contact your hosting provider to ask for these.

The error logs are an effective tool to help debug an issue with the website’s coding. They could specify the exact location of a fatal error and its cause.

For example, one of the known most common causes of WSoD is insufficient memory.

You may find an error log like this:

Got error 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 126976 bytes) in /home/sites/x/x/xxxxxx/public_html/wp-includes/wp-db.php on line 2162'

This relates to the PHP memory limit for the website.

Some parts of a WordPress site would require more memory to function correctly, such as the theme or a plugin. Our platform is very generous in terms of the memory allowed: up to 2048MB.

You can increase the memory limit for your website from within your Goazh hosting control panel > Web Tools > PHP Configuration.

My20i's Web Tools menu, showing PHP Configuration

You’ll then want to locate the “memory_limit” directive and update the limit up to 2048M.

PHP Configuration settings, showing where to change the memory limit for your WordPress site

What if the error logs aren’t showing any recent error information?

What do you do when you see the WordPress WSoD and there aren’t any error logs ?

You can enable debugging from within the wp-config.php file if you have access. The wp-config.php file is the configuration file for your WordPress website and is one of the core files.

This is where your website will connect to the database using the database information (hostname, database name and password). It’s where you can enable/disable developer options such as debug mode. Enabling this mode will allow you to identify and remove bugs from within your website’s code.

Using Goazh, you’ll find the wp-config.php file within the public_html directory. You can get to it using the File Manager.

Web Files menu showing the File Manager

Once you’ve opened the wp-config.php file, you’ll need to add following line: 

define('WP_DEBUG', true); 

You may find that ‘define(‘WP_DEBUG’, false);’ is already present. If so, you’d just need to update this to ‘define(‘WP_DEBUG’, true);’ , as above.

Here’s a rough idea of how your wp-config.php file will look:

The wp-config file showing the line with the WordPress debugger activated

Now that debugging is on, you should see something like this when you load your website:

WordPress error message for the white screen of death

The error message will be more specific, giving you an idea as to what the cause is.

If there are not any specific error logs for WSoD, what else can I check?

You can check to see if the problem is caused by the theme or the plugin(s) of the website by disabling the plugins or switching the theme.

If your WordPress site is hosted on our Managed WordPress Hosting platform, you can access to WordPress Tools in the Goazh hosting control panel. Here you can deactivate/activate any of your themes and plugins easily.

20i's WordPress Tools can help you diagnose the white screen of death

Should your WordPress website be hosted on our standard Linux web hosting platform, or if your website is hosted elsewhere, there are alternatives.

If wp-admin is not affected by the White Screen of Death

If you have access to wp-admin, there are a couple of methods to diagnose what might be causing the WSoD.

Deactivate plugins

To deactivate the plugins, you’d need to log in to the wp-admin area. In the column on the left-hand side you’ll see ‘Plugins’.

You can then select all the plugins by checking the ‘Plugin’ box at the top of the list. Once selected, you can deactivate them via the ‘bulk actions’ drop-down menu > ‘Deactivate’ > ‘Apply’.

WordPress plugins menu, showing how to deactivate them

If disabling the plugins has resolved the WSoD, then this will confirm that the WSoD has been caused by one or more plugins.

To establish which plugin(s) have caused the problem, you can activate one plugin at a time (If there are not any specific errors pointing to a plugin) until the WsoD occurs again.

If you have a lot of plugins, a quick way to do this would be activate half your plugins, and if the error occurs, you know it’s one of those. If it doesn’t, you know that it’s part of the other set. You can keep on narrowing the plugins down using this 50/50 method – it’s faster than doing it one at a time.

Switching the Theme

To switch the theme from within wp-admin, go to Appearance > Themes > Hover over the theme in which you’d like to switch to and click ‘Activate’.

You can solve the white screen of death by changing the theme

What if your wp-admin is suffering from White Screen of Death?

There are a couple of ways to deactivate plugins if wp-admin isn’t accessible and WordPress Tools isn’t available to you.

Turn off plugins with WP-CLI

If you’re familiar with SSH, you can deactivate the plugins and change the theme using the WordPress Command-Line Interface (WP-CLI), which is available with your Goazh hosting as well as some other providers.

It will allow you to manage certain aspects of your WordPress website without having to login to the wp-admin area. You’lll be able to update plugins, themes, WordPress versions, re-install WordPress and much more.

You can access WP-CLI via SSH. However, you may need to check if WP_CLI is available if your website is hosted with another company.

Here’s a simple command to disable the plugins using WP-CLI:

wp plugin deactivate --all

After running the command, you’ll see something like the following. It shows the list of plugins that are now disabled:

Using WP-CLI to deactivate plugins

To switch the theme, I suggest that you first check which themes that are installed. Run this command:

wp theme list

You should get results similar to this:

List of WordPress themes in WP-CLI

Now, you can select a theme from the list to activate. Run this command:

wp theme activate twentytwentytwo

This will switch the theme to twentytwentytwo and deactivate the currently active theme.

Deactivate plugins with the file manager

If you prefer the ease of a graphical user interface, you can still deactivate the plugins and change the theme.

You can deactivate the plugins via the Goazh File Manager. Rename the plugins folder which can be found in public_html > wp-content.

In this directory, you should see the plugins folder. You can right click on the folder and select ‘Rename’. When the prompt is displayed, you can rename the plugins folder to anything you like, such as ‘plugins-old’.

WordPress plugins folder in the 20i File Manager

Change the theme using the database to fix the WSoD

You can also change the theme using the database of your website. You can access the database through phpMyAdmin, found within our hosting control panel under ‘Web Tools’.

My20i Web Tools menu showing phpMyAdmin

You’ll then need to select ‘wp_options’ from the column on the left-hand side. The table prefix ‘wp_’ may be different for you.

Then locate ‘Template’ and ‘Stylesheet’ rows and update the field text to your new theme name.

How to change your WordPress theme using the database, via phpMyAdmin.

Take care to input the exact spelling and formatting of the theme so that WordPress will pick up the correct one.

A good way to check this would be to navigate to the public_html > wp-content > themes directory through your file manager. Here, you’ll see a list of the available themes, the correct format and spelling of theme.

Fixing the White Screen of Death through file permissions

You can also check if the file permissions are set correctly. We have a tool available in Goazh to scan the files and folders for your website and advise on the recommended permissions. You can select which files/folder permissions you’d like fixing here.

The My20i File Permissions Checker

You will find the File Permissions Checker tool in the Goazh hosting control panel for your website under the ‘Web Files’ menu.

Web Files inside My20i

If your host doesn’t have a tool available where you can fix file and folder permissions with a few clicks, you can access the file system using SSH and run the following commands to update the file and folder permissions:

find . -type f -exec chmod {} 644 \;

This will search the current directory and sub directory for files and execute chmod 644 which will update all files to use 644 permissions.

The following is similar to the above, but this will search for directories and update all directory permissions to 755.

find . -type d -exec chmod {} 755 \;

If you aren’t familiar with SSH and file/directory permissions we’d recommend that you make contact with your host and ask them to check this for you.


If you’ve been stricken by the dreaded WordPress White Screen of Death, we hope that it’s due to one of the usual culprits covered above.

You can help prevent the WsoD by ensuring that your plugins and themes are from a reputable company, and you have enough PHP memory limit for your WordPress website to function correctly.

At Goazh, we’ve built in really helpful tools in into our WordPress Hosting to help you resolve the kind of issues noted above. The tools are designed to simplify potentially complex and time-consuming tasks so you can focus on what really matters.

If you do encounter the WsoD and you’ve found another method to resolve this, please let us know in the comments below.