WordPress Display PHP errors

February 18th, 2010 · 5:41 pm @ Amber  -  One Comment

If you have the White Screen of Death, you've got invalid php, or else feel like something fishy is going on, you can display php errors by adding the following line to the top of your.htaccess file. (p.s. make sure your .htaccess is writable/executable, find out how here)

php_flag display_errors on

Important: once you've found out your errors, you should remove this line, as it may breach your security.

Tags: , , ,

  • Spread the Love | float & share

One Comment → “WordPress Display PHP errors”

  1. [...] every time you make a change, to make sure your php validates. If you've already closed your file, display php errors as shown here, to try and figure out which file is corrupt. Try to [...]


What do you think? (leave a reply)