[wp-hackers] Re: PHP notice warnings

Computer Guru computerguru at neosmart.net
Sat Sep 22 09:57:14 GMT 2007


The last time I checked, a clean WP install generated quite a bit of these
notice warnings. Are these to be considered viable trac tickets or by
design?

On 9/22/07, Viper007Bond <viper at viper007bond.com> wrote:
>
> I think a constant is better, that way we can use it to enable debug
> output
> on work-in-progress features and such.
>
> On 9/21/07, Matt <speedboxer at gmail.com> wrote:
> >
> > Or just stick error_reporting in wp-config.php with the default, and
> then
> > people can edit it if they choose.
> >
> > On 9/20/07, Ozh <ozh at planetozh.com> wrote:
> > >
> > > On 9/21/07, ozgreg <wphackers at galleryembedded.com> wrote:
> > > > or better still, instead move the debug settings to wp-config.phplike
> > > gallery2 does so we can turn them off and on depending on the role of
> > the
> > > site..
> > > >
> > >
> > > I was exactly going to suggest this. It should be up to the blogger to
> > > enable error reporting.
> > >
> > > I suggest something like the following, to avoid clutterring of
> > > wp-config.php
> > > -> in wp-settings:
> > > if (defined('WPDEBUG') and WPDEBUG == true) {
> > >    error_reporting(E_ALL);
> > > } else {
> > >    error_reporting(E_ALL ^ E_NOTICE);
> > > }
> > >
> > > -> in wp-config, optional define('WPDEBUG', true) for developpers
> > >
> > >
> > > Ozh
> > > --
> > > http://FrenchFragFactory.net ~ Daily Quake News
> > >   http://planetOzh.com ~ Useless Blog & Code
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > Matt (speedboxer at gmail.com)
> > http://mattsblog.ca/ | http://livemp.net/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> Viper007Bond | http://www.viper007bond.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Computer Guru
Director,
NeoSmart Technologies
http://neosmart.net/blog/


More information about the wp-hackers mailing list