This code instructs WordPress to use up to 256MB of memory for your scripts. Now, visit your website to check if it’s working properly.
If you’re still getting the White Screen of Death, we have one more solution for you.
5. Check the WordPress Error Logs
WordPress has a built-in debug feature to help you troubleshoot errors. By default, it’s disabled, but you can enable it with the steps below.
- Access your website via SFTP.
- Locate your public_html folder.
- Right-click on the wp-config.php file and choose the View/Edit option.
- Scroll to the bottom of the file and look for the line: That’s all, stop editing! Happy blogging.
- Now, paste the following line of code right above that message:
define( 'WP_DEBUG', true );
- It should look like this:
This code instructs WordPress to log an error on your website. Now, save your changes and visit your website again. You will see the White Screen of Death, but WordPress will log the error for you.
Now, we need to access your logs.
- Open your SFTP client.
- Open the folder public_html and then the folder wp-content.
- Locate the debug.log file and open the file using the View/Edit option.
- At the bottom of the file, you’ll see the last error logged. It may look like this:
The error files may look confusing. If you can identify which file caused the problem, locate the file in your SFTP. If you don’t feel comfortable digging in your WordPress files, contact your hosting provider and provide them with a screenshot of your log errors.
What to Do If Nothing Fixes the WordPress White Screen of Death
If none of the solutions above help, there’s still hope. Your next step is to contact your web hosting provider for further assistance.
Give the customer support rep a detailed explanation of your problem and tell them the different ways you tried to troubleshoot the White Screen of Death error. They will offer the next steps to resolve the issue.
If this issue keeps happening, you might want to consider switching your hosting provider. You need a reliable platform without server management issues.
In that case, you might want to try Flywheel, a WordPress managing solution built specifically for agencies and in-house teams. If a problem ever pops up, you can chat with a WordPress expert anytime — day or night.
Then, there’s WP Engine. It’s one of the best tools for developing and hosting a secure WordPress site. You’ll enjoy simple site setups and effortless maintenance.
For fully-dedicated, fully-managed WordPress hosting, check out WPMU DEV. They offer nightly backups with one-click restores, which will give you peace of mind if you ever see the White Screen of Death.
How to Prevent the WordPress White Screen of Death
You’ll probably never want to experience the White Screen of Death again. So, it’s important for you to take proactive measures to help avoid the issue in the future. Here are a few tips:
- Always backup your website: Daily backups ensure if your website goes down again you can quickly restore it.
- Read software notifications: Don’t ignore those notifications in your dashboard. They contain critical information about updating your plugins and themes.
- Keep strict user controls: It’s hard to keep track of website changes when multiple people have access. Limit control to a few team members.
The WordPress White Screen of Death sounds terrifying. However, the solutions above can fix the error and get your website up and running again. And when all else fails, contact your web hosting provider for one-on-one assistance.
Originally published Aug 16, 2019 3:05:11 PM, updated November 20 2019