A Common way to fix the blank page in WordPress sites
We've had a lot of our customers and WordPress users in general have an issue where their site is showing a blank page. This blank page is typically caused by a PHP error. If you have your php.ini file set to hide php errors, you'll get a blank page displayed.
To find your error messages you have two options:
- Enable display_errors in your php.ini file
- Review your error_log file(s)
Updating your php.ini file to show error messages
To diagnose PHP errors in WordPress, we will place a line of bad code in the site to show what happens when WordPress encounters and error. The image to the right shows my fully functional WordPress website.
Note! We don't see the PHP error message because we have set the directive in the php.ini file to hide error message.
Enabling error_reporting in the php.ini
- To fix this, we'll simply need to update it so it shows error message. Edit your php.ini in your public_html folder. To learn how to edit your php.ini page, see our tutorial on "How to update your local php settings".
Find the error_reporting section in your php.ini like the image to the right.
- Change the display_errors from Off to On.
Save the changes.
Now, since we have adjusted the display_errors in the php.ini file, as you can see our site now displays the exact error message causing the issue and we can start to troubleshoot it! See snapshot to the right.
How to view your error_log to find error messages
One way to find error messages is to view the error_log file in file manager. All PHP error messages are logged to this file. You can use FTP or the File Manager in cPanel to view this file and any of the error messages logged.
- Login into your cPanel and go to the public_html in your File Manager and click go.
- Find the error_log file.
Right click the file and select view.
Being able to view the actual error message causing your blank screen is important when trying to resolve this issue. You can either attempt to debug the issue yourself or pass it on to your designer.
Support Center LoginOur Login page has moved, Click the button below to be taken to the login page.
2018-02-16 3:13 am
please . my front end is working perfectly but the back end is white, please i need help
2018-02-16 10:22 am
I recommend following our WordPress Troubleshooting guide to narrow down the cause further.
2018-01-07 9:37 pm
ISSUE - BLANK PAGES IN WP PAGE EDITING: "Visual" Tab - contrary to having access to Coding on the "text" Tab... and able to view content on the Website.
Greetings WP users,
Using Firefox browser
Im using a Static WP site.
I've transitioned to HTTPS with cloudflare using WP EASY SSL.
Go to your WP EASY SSL page (in your WP account) and check the "Mode button...
on the settings page there is a “mode” button which can be “OFF” ... switch this to “cloudflare mode” and content should now be viewed in the EDITOR "visual" tab (as well as the "text" tab).
Leave this with you, with enthusiasm.
Coordinator - Mens Elective Network.
2017-10-27 2:12 pm
Seeing complete blank page in hm-enterprises.com in Chrome and Firefox.
In opera it is working fine. Any fix. Cache has been cleared.
2017-10-27 2:28 pm
Are there any errors reported in the logs of your server when you enable errors as this article suggests?
2017-06-08 7:14 pm
I am getting a blank screen each time that I try to edit or connect with any other page other than the home page.
My domain is yogaposts.com
2016-07-19 10:14 pm
hi ,I think my problem is quite differ, Front end display a blank page and Back End working absolutely find. To rectify I simply change the them and it will become perfect.
Plz tell me the permanent soluttion of this problem because everytime i set new theme and same problem repeat with in 3 days.
2016-07-20 10:39 am
Hello, sorry for the problem. In order for us to help you, we need more information like your domain name, the version of WordPress you're using, error messages, and steps to duplicate the problem. If you're a customer of InMotion, then please provide your URL at least and we can look at the account. If you're not a customer, I would recommend you simplify the installation to use NO plugins or default themes, then see if the problem persists. Also use make sure that the debug mode for WordPress is turned on. Please provide us more information if you wish for us to investigate issue in more depth.