[wp-hackers] PHP notice warnings
Moritz 'morty' Struebe
morty at gmx.net
Thu Sep 20 13:39:12 GMT 2007
It would be great to have some kind of debugging mode. Maybe setting
some special cookie so the "normal" users of your blog are not affected.
You normally don't want them to see any errors.
That would also help helping users remotely. Of course it should be easy
to activate this (not having to mess around with files).
Kirk Steffensen wrote:
> I just turn them all on on my dev box.
> That way if a user has two plugins that are conflicting mildly and would
> throw a warning but not break their site, they don't get a bunch of php text
> at the top of their page.
> On 9/20/07, Omry Yadan <omry at yadan.net> wrote:
>> WordPress hide PHP notices by default:
>> from wp-settings.php:
>> // Change to E_ALL for development/debugging
>> error_reporting(E_ALL ^ E_NOTICE);
>> This promotes writing of bad code both in the core and in plugins.
>> I understand that turning notices back on will break a lot of plugins,
>> but maybe it's worth doing this for the next major version.
>> having notice turned on helps to catch a lot of problems early in the
>> development, and will actually help plugin authors write better plugins
>> what do you guys think?
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers