Submitted by Garrett Albright (not verified) on Wed, 2009/02/04 - 07:27.
I don't think there's a way to only enable errors for user 1, but if you enable it in the php.ini file for your local computer (not any live server), then only you will see the errors it produces. Add this line:
error_reporting = E_ALL & E_STRICT
There's also the Coder module, which can find common errors, though I think it's more for finding style guide violations than PHP errors - I'm not sure. (I myself don't use it as much as I should… and my code features tab breaks instead of spaces due to a limitation of my code editor of choice, so it brings up that error on every single line of code whenever I run it…)
By the way, I noticed you're using my Mollom Stats module. Sweet. :)
I don't think there's a way
I don't think there's a way to only enable errors for user 1, but if you enable it in the php.ini file for your local computer (not any live server), then only you will see the errors it produces. Add this line:
error_reporting = E_ALL & E_STRICTThere's also the Coder module, which can find common errors, though I think it's more for finding style guide violations than PHP errors - I'm not sure. (I myself don't use it as much as I should… and my code features tab breaks instead of spaces due to a limitation of my code editor of choice, so it brings up that error on every single line of code whenever I run it…)
By the way, I noticed you're using my Mollom Stats module. Sweet. :)