PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Notice-Meldungen in der Apache error_log



weally
21.03.06, 18:58
Hallo,

ich habe das Problem das unzählige Notice-Meldungen in der Apache error_log Datei erfasst werden, ich habe in meiner php.ini folgende Einstellung:


error_reporting = E_ALL & ~E_NOTICE

in der Apache2-Config:


APACHE_LOGLEVEL="warn"

Was kann ich noch tun um die Notice-Meldungen in der Log-Datei fernzuhalten?

System:
SUSE 9.3
PHP 5
Apache 2.2.0

Gruß
weally

Tomek
22.03.06, 00:41
Um welche Meldungen handelt es sich denn z.B.?

weally
22.03.06, 04:46
Hallo,

hier mal ein kleiner Auszug:



[error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined index:
[error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined offset:
...
...
...


Es liegt wohl an einem unsauber programmierten Script, wie gesagt möchte eigentlich nur das die PHP-Notice Meldungen nicht in die error_log geschrieben werden.