The WordPress white screen of death is one of the common issues that people ask to solve it. You’re not the only person who finds this problem and browsed forums to find how to fix it. It’s similar errors with the database connection and much more. But first, why you get that white page when trying to access your site in the browser?
WordPress white screen of death causes
There are multiple causes for that problem, and the most popular are:
1. Broken theme
If you’ve tried to upload a new theme that you think it’s the best for your blog, without testing it on your local machine, or, in another online server. You may find yourself in a situation where you can’t login to WordPress. But also, you can’t delete that theme. Your theme will cause many problems, and as a result, a WordPress white screen of death will appear and will still there.
New bloggers try to install free themes from unknown sources. We understand that people want free things, but, the problem is that the majority of these free themes broke your blog, and in other cases, they can be used by shakers to stop the site completely.
So, stay away from free things, if you really need a theme, browse the official WordPress themes and select the one that you need. Sure it’s limited in functions and options, but, the official free there are better than a theme that stops your blog to work again.
2. Problem in a Plugin
Exactly as themes, if you’ve uploaded a new plugin and noticed that you get a white page, then, your plugin is the cause. A non-functional plugin can stop your site working as normal. At the same time, you can’t access to that plugin to deactivate it from the WordPress dashboard.
So, next time when you have a new plugin that you don’t trust, or, that you don’t have ratings about it, try to test it on your local machine, or directly, on an online server, just to make sure that it works. Thus, you will avoid these problems in the future. Now, let’s solve the site with a screen of death problem.
Fixing the problem
There are two ways to fix the white screen of death, the first one is to use your cPanel account and deactivate a theme or plugin. And the second way is to access your server from your FTP software and do the same.
1. The cPanel Solution
Before starting, please make sure that you have a full backup of your entire site, or the database, at least. If you don’t have a daily backup, you can learn how to backup WordPress database from cPanel. What we’ll do is to rename the last theme or plugin that you’ve uploaded.
That way, your WordPress theme functions will ignore your theme or plugin and make them deactivated. So, you can get access again to your site and use your first theme. This is a method that delete the them function and the site will be without an active theme.
Login to cPanel, and click on ”File Manager”, or any other nomination for your blog files editor.
Then, open the ”wp-content” directory where your themes, and plugins are located, as the below screenshot example.
Next, select ”themes”, or ”plugins” depending on your exact problem to open the parent folder.
Now, let’s suggest that a new uploaded theme that caused the problem. So, we will select it to rename, you can rename that folder as you want. We need another name to make WordPress ignoring it as a theme and as a result, it becomes deactivated. It’s better to add “off” or “deactivated” at the end to make things simple for you to remember later.
Then, rename your theme and click the “Rename” button.
As you can see, your broken theme is now deactivated. All you have to do is to login as normal to the WordPress admin dashboard, and activate another theme that can be the default one added during the blog installation. Or, use any trusted and tested theme, and your problem is solved.
2. The FTP Solution
This is the same solution, but, with FTP, this way, you can access your themes and plugins (if you can’t do through the cPanel), but, you need to have your FTP login details first. If you forgot them, just check the first email that you’ve received when signed up to your hosting account. In general, your login are in this form:
- ”FTP username”, your hosting username.
- ”Password”, the same as your hosting account (cPanel)
- ”FTP host”, something like this: ftp.yourdomain.com.
You need a file transfer software like Filezilla, it’s free and the most popular. After installing Filezilla, you get this window:
Forget the left part in the Filezilla dashboard, and focus on the right part only, it shows all your blog or site files. As in the cPanel, you just need to locate the ”wp-content” file, normally, you can find it under public HTML folder.
You will get the themes or the plugins directory, click the one that you think causing the white page issue, then “right-click” and rename it to what you want. Then, refresh your browser page to access your WordPress admin panel again, and add another functional theme. If you find it hard to use any FTP software, you can learn how to use Filezilla.
The above two solutions are the same, but, using different ways to access the blog files. If you forget which one of your themes caused the problem, rename them all, one by one, and refresh your blog URL in the browser to detect the one that has the problem. The same thing applies to plugins, rename them one by one to find the issue.