wordpress white screen of death

How to Fix WordPress White Screen of Death- Step by Step Guide

Do you want to know how to fix the WordPress white screen of death on your WordPress website? The white screen of death is one of the most common WordPress errors. This error often occurs from an issue with your site’s PHP.

In this article, I will show you the reasons why the white screen of death occurs.

Introduction of WordPress White Screen of Death

The white screen of death is one of the most well-known WordPress errors. It can be caused by numerous issues. When you try to access your site, it replaced with a plain white screen.

The white screen of death occurs by a broken or incomplete PHP script. The common culprits are plugins and themes, which can contain incorrect PHP code.

The white screen of death can also appear due to a memory or issues related to your hosting server.

Don’t be panic, it’s not that difficult to troubleshoot and resolve the problem.

Troubleshoot the WordPress White Screen of Death

Many experiences found that the WordPress white screen of death is either with a specific plugin or a theme.

If you use the following methods, you should be able to fix the error quickly.

To Fixing WordPress White Screen of Death, you should follow these methods one by one:

Method 1.Check for Corrupted WordPress Plugin files

Sometimes your WordPress plugin an issue on your website for the WordPress white screen of death. You can easily find out if your plugin is corrupted.

Using your WordPress Dashboard

To do this go to your WordPress dashboard click on the Appearance button. Then click on the Plugins button.

wordpress white screen of death

You can see the plugin page and then you should deactivate the plugin one by one. If you find which plugin was the culprit, you should delete that corrupted plugin and reinstall that plugin from the WordPress directory.

However, if you don’t have access to the admin area of your WordPress site, then you will need to use your FTP Client.

Using your FTP Client

You need to connect your FRP client with the File Manager option in your WordPress hosting control panel.

Once connected, you need to navigate to the public_html folder and open it. You will see the wp-admin, wp-content, and wp-includes folder.

wordpress white screen of death

Inside the wp-content folder, you will see a folder called plugins. All you installed plugins and stores in this folder.

wordpress white screen of death

You need to right-click on the plugin folder and rename this folder as ‘plugins_dactivate’. For doing this all of your installed plugins will be deactivated.

Using cPanel

Log in to your cPanel dashboard and navigate to the File Manager menu, move to the root folder like public_html file.

wordpress white screen of death

 

Click on the wp-content file, you can see there are two files like plugin and themes file. Now you should change the plugin file name (like- plugins disable). This will disable all your installed plugins.

If the error is gone, it means one of your active plugins was the culprit.

To find out which one, you can do this one by one renaming the plugin file name then return the plugins folder to its original name. Changing its name each time, then checking to see if the error goes away. Keep disabling plugins one by one until you fix the problem.

If your website is now loading fine, you have found the troublemaker. Now, you can fix the problem by reinstalling that corrupted plugin.

If none of your plugins are causing problems, it’s time to turn towards your active theme.

Method 2.Check for Corrupted WordPress theme files

Sometimes your WordPress theme an issue WordPress white screen of death on your website. You can easily find out if your theme is corrupted. You can be switching to a default WordPress theme like Twenty Nineteen or Twenty-Twenty.

Using WordPress Dashboard

To do this go to your WordPress dashboard click on the Appearance button. Then click on the Themes button.

wordpress white screen of death

You can see the Theme page and then click on the Activate button of the default theme like Twenty Nineteen or Twenty-Twenty.

However, if you don’t have access to the admin area of your WordPress site, then you will need to use your FTP Client to switch the theme.

Using your FTP Client

You need to connect your FRP client with the File Manager option in your WordPress hosting control panel.

Once connected, you need to navigate to the public_html folder and open it. You will see the wp-admin, wp-content, and wp-includes folder.

wordpress white screen of death

 

Inside the wp-content folder, you will see a folder called themes. All your installed themes are stores in this folder.

You need to right-click on the themes folder and rename this folder as ‘themes _dactivate’. For doing this your installed themes will be deactivated.

WordPress will automatically activate the default theme like Twenty Fifteen or Twenty Sixteen.

Using cPanel

Log in to your Cpanel dashboard and navigate to the File Manager menu, move to the root folder like public_html file. Click on the wp-content file, you can see there are two files like plugin and themes file.

Now you should change the theme file name (like themes_deactivate). For doing this WordPress will revert to one of its default themes.

Now, you should look at your themes functions.php file. If there are extra spaces at the bottom of the file, you need to remove those.

Now it’s time to check your website, if your site is now loading fine, you can fix the problem by reinstalling the theme.

Method 3. Use Debugging Mode

If you are still seeing the WordPress white screen of death, you can enable debugging mode. This will allow you to see what type of errors are being on your website.

To enable debugging mode, you will need to open the wp-config.php file. You should find the following line.

define( 'WP_DEBUG', false );

Simply change ‘false’ to ‘true’ and then reload your site. If this line doesn’t exist, you can add it to the top of the file.

Once you add this line successfully, the blank screen will now have errors, warnings, and root causes.

If you do not see any errors, you may need to check the debug log. Go to the wp-content folder on your website root folder.

Here you will find a new debug.log file containing a log of all errors, notices, and warnings.

Method 4. Use Database Repair Functionality

Database repair functionality can help you to fix corrupted files.

To do this, login to your Cpanel dashboard and navigate to the File Manager menu, move to the root folder like the public_html folder. Look for the wp-config.php file, open it using a text editor.

error establishing database connection

And using FTP client

Open it a text editor

Scroll to the bottom of the file and look for the line:

define('WP_ALLOW_REPAIR', true);

Then save the changes to wp-config.php,  you can access the WordPress database repair feature by visiting the following URL:

yourwebsite.com/wp-admin/maint/repair.php

Replace the yourwebsite.com placeholder with your own domain. You will see the following screen:

error establishing database connection

When you are ready to click on the Repair Database Button and let WordPress do its thing.

Once the repair is over, you’ll see a success message, the error establishing a database connection in the WordPress message is gone.

Method 5.Reinstall WordPress Core Files

The easiest way to fix this to replace all your core files with a clean and latest version of WordPress. To do this download the latest version of WordPress software from wordpress.org.

wordpress white screen of death

Once you get the file, which is a zip file. Unzip it and delete the wp-content folder in the downloaded files.

Using your FTP Client

Next, you need to connect to your website using an FTP client. Go to your site’s root folder. It is the folder that has wp-admin,wp-content, and wp-includes folders inside it.

In the left column open the WordPress folder on your computer, which is downloaded earlier.

wordpress white screen of death

At first, you need to select wp-admin and wp-includes folders and then right-click and select the ‘Upload’ option.

Your FTP client will transfer those folders to your server. It will ask you whether you would like to overwrite the files.

Then select the ‘Overwrite’ option and select ‘Always use this action.

Your FTP client will replace your older WordPress files with newer and fresh copies.

Using your cPanel

To upload the clean and latest files, use your cPanel dashboard and navigate to your site’s root folder public_html folder. Next, upload all the WordPress files from your computer.

This process might take a while and you will need to say yes when you ask if you want to overwrite the files on your server. This process will also overwrite the .htaccess file.

When the process is done, go ahead and try to access your website once more.

Method 6. Increasing the PHP Memory limit

Sometimes internal server error can happen if your exhausting your PHP memory limit. Read this article on how to increases the PHP memory limit in WordPress to fix that.

If you seeing the error when you try to login into your WordPress admin area. You should increase the memory limit by following these steps:

  • Create a blank text file like php.ini
  • Paste this code in there:memory=64MB
  • Save the file
  • Upload it into your wp-admin folder using FTP client

If increasing the PHP memory limit did not fix the issue for you. You only solved the internal server error temporarily. You will in for some more troubleshooting.

I strongly recommend that you should contact your hosting provider.

Method 7. Contact your Hosting Provider

If all methods fail to fix the white screen of death on your website. It may be a genuine server issue.

Contact your web hosting support team. They will be able to check the server logs and locate the root cause of the error like a white screen of death in WordPress.

Conclusion

There are a lot of issues that can cause errors when you try to connect to your database. I hope you can fix the errors like the white screen of death in WordPress by applying those processes.

You may also want to see another guide on How to fix Error Establishing a Database Connection in WordPress, How to Fix “Briefly Unavailable for Scheduled Maintenance” Error in WordPress, and How to Fix 500 Internal Server Error in Your WordPress

If you like this article, please share this with your friends and more people.

Leave a Reply