Error FIX: PHP errors not being displayed, shows blank white page

Leave a comment Standard

I ran into this recently and I thought I’d save a few people the trouble of excessive googliness. There are a few reasons why your errors won’t show up on your site.

  1. Check your php.ini settings
    1. Make sure error_reporting is turned on
    2. Make sure display_errors is turned on
  2. The file has error_reporting set to not show errors or to only specific types of errors
    1. set error_reporting(E_ALL) to make sure all errors are displayed, this will override whatever is set in your php.ini file
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s