Forcing WordPress to show error messages
As some of you know I have done a lot of work lately in WordPress. One site I have is a large network of blogs and used to be on WordPress MU and is now using WordPress 3.0+ Multi-site. I recently upgraded to WordPress 3.2.1 and this required upgrading to PHP 5.3. Well this seemed to break some plugins and gave me the dreaded White screen of death. Of course a blank white screen is the best thing to see when you are trying to diagnose something. *sarcasm*
As a developer I just want to be given an error message so I can do what I need to. I had disabled all plugins via the database but it still didn’t work. After doing some googling I figured out that you can actually turn on the WordPress errors!
WARNING: ADVANCED USERS ONLY..
Open up the .htaccess file in your wordpress root directory and at the bottom put:
php_flag display_errors on
And refresh your WordPress site. This should show you the error messasge and get you WAY further then you would just having a lovely white screen.




