How To Fix White Screen of Death in WordPress

After starting a blog, we will get so many issues like security, hacks, HTTP 500 errors, Database connection error etc. In the errors list, white screen of death is in. Are you in this situation? Don’t need to panic. This is a common WordPress error!

In this post, we are going to show you how to fix white screen of death in WordPress without hiring a freelancer!

Yes! You could do it yourself. You don’t want to hire someone from a marketplace like Upwork or Fiverr.

What is White Screen of Death in WordPress?

Like the name says, your website will show a blank white screen. Here’s a sample screenshot of the error.

Fix White Screen of Death in WordPress

In some cases, you will not get access to the wp-admin folder. You could try accessing the yourdomain.com/wp-admin/ for testing this.

What Causes WSoD in WordPress?

If your WordPress memory got exhausted, this issue will occur. This can be done by a theme or a poorly coded WordPress plugin. On the other hand, this can be also caused by your web hosting.

How To Fix WSoD In WordPress?

So let’s start.

NOTE: For fixing the WordPress white screen of death, you may want to edit one of the WordPress core files. In that case, we highly recommend you generating a complete website backup before making the changes.

There are few fixes are available. You need to try them one by one, find the right issue.

Clear The Browser Cache

In some cases, this error will be only for you. Something is going wrong with your browser. For testing it, you can try clearing the browser cache and accessing the website.

If you got another browser installed, try accessing your website from that browser. On top of that, you can also try using GTmetrix tool, Pingdom tool or any proxy site.

Increase WordPress Memory Limit

The main cause of this white screen of death is the memory limit exhausted issue. Then probably we need to try increasing the memory limit.

By just adding a single line of PHP code to the wp-config file, we can fix it. Copy the below code.

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

Paste it in the wp-config file just before the line saying ‘That’s all, stop editing! Happy blogging.’

The code will increase the memory limit up to 256MB. Try accessing your website from the front end. It should work.

If it is not, try making the memory limit 512MB. You just need to modify the code.

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

You are done! But sometimes, this won’t fix the issue. In that case, we need to try something else. If the memory increasing doesn’t fix your issue, keep reading this post.

Disable All WordPress Plugins

If a faulty plugin is causing the issue, by disabling all the active plugins, we will be able to get our blog online.

When we have the WordPress admin access, we can go to the plugins section, mark all and disable all selected plugins.

In this case, we don’t have WordPress admin access.

But by using cPanel’s file manager or FileZilla, we can do it! Just go to your wp-content folder and there you can see the plugins folder.

Rename it.

Now, you have disabled all the plugins. Try accessing your website from the browser. If it is online, there’s a faulty plugin in your blog.

You could try activating the plugins one by one for finding the faulty one.

Reinstall WordPress

Have you edited the WordPress core files?

You may want to edit the core files such as wp-config.php when you need to disable or limit the WordPress revisions.

The white screen of death will occur when you have corrupted WordPress core files. The solution is, reinstall the WordPress core files.

You could download the latest version of WordPress, delete the wp-content folder from the archive, upload it to your public_html directory using an FTP client such as FileZilla.

After that, you need to update the WordPress config file (wp-config.php) with your database credentials. Or, there will be an error establishing database issue.

If you have access to the admin area and needs a fresh copy of the WordPress, go to the WordPress updates page. From there, you can reinstall WordPress.

If the error got fixed, you are good to go.

Display Errors

By enabling the WordPress to debug mode, you could troubleshoot this issue. For that, add the below code to your wp-config.php file.

error_reporting(E_ALL); ini_set('display_errors', 1);

define( 'WP_DEBUG', true);

Now, a blank screen will appear on your blog with all the errors. From here, you will be able to find the exact issue!

Contact Web Hosting

Still no luck?

Like I said in the beginning, this can be an issue with your web hosting server. You got nothing to do with it. All you need to do is, contact your web hosting.

Most web hosting companies like Bluehost and SiteGround got live chat support. You will be able to use the feature. If your web hosting company don’t have this feature, simply raise a ticket.

One of their support staff will look into this issue and fix it ASAP.

New In WordPress 5.1

The WordPress core team got released a new PHP site mechanism with the version 5.1! This feature will help us to address every PHP issues right from the WordPress dashboard. For example, let’s think that you are running on an older version of PHP.

From the dashboard, you could see that!

server happy info

So, you will be able to take appropriate action, stay away from errors!

Also, the core team got added a new feature called Fatal Error Protection. A mechanism which will help you to stay away from fatal errors – when you update the PHP version! This feature is also known as WSOD protection. This will help us to identify the plugin or theme which is causing the WSoD error.

WordPress instantly pauses the plugin, which will help you to manage the blog without getting any error or without compromising your website.

Thankfully, this feature will be helpful for all of us!

NOTE: This is only available with WordPress 5.1. If you are running on an older version, probably you need to upgrade to the latest version of the WordPress. This will help you to stay secure.

Pro Tip

If your WordPress admin area is working and the front is not working properly, this is an issue with your caching plugin. By clearing your cache, you could get the website working.

This is how you can fix white screen of death. We hope you found this post helpful and enjoyed the read. If you did, please consider sharing this post with your friends and fellow bloggers on social media.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here