The white screen (blank page) is one of the most common errors that occur in WordPress. In this guide, we will cover possible causes and the ways to fix them.
NOTE: Before proceeding with any changes, make sure that you’ve generated a full backup of your website. If you've created your site using the Softaculous script installer, please refer to this guide.
Clear cache
Check the error_log
Enable WP_DEBUG mode
You can also use the WordPress debug function to see what type of errors are being outputted. Locate the wp-config.php file in the root folder of your website and make sure the WP_DEBUG mode is enabled:
Increase PHP and WordPress memory limits
Since WordPress memory limit is one of the most common causes for blank pages, we recommend increasing your limit. Indications of this error could be a white screen or an error message like this one:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/username/public_html/site1/wp-includes/plugin.php on line xxx
You can find detailed guidelines on how to increase WordPress memory limit here.
Also, you may increase the PHP memory limit following one of these articles:
- How to change PHP version on Shared servers
- How to change PHP version on Business servers
- How to edit php.ini on Shared servers
Disable plugins
One of the most common causes of the blank page on WordPress is a plugin issue. Try disabling the plugins via your database as described here.
Change the website theme
If the plugin troubleshooting doesn’t fix the white screen on the website, then you should try changing the theme. You can find detailed instructions on how to switch the theme here.
Switch PHP versions
The blank page can also be caused by incorrect PHP version. You can try switching PHP versions to check it.
Refer to these articles for more details:
Well done! You now know how to fix a white screen.