Turn off stupid php notices

explosive

Verified User
Joined
Dec 29, 2010
Messages
181
Location
PL/EU
DA 1.43 +CB 2.0
PHP-FPM

in /var/log/httpd/domains/domain.error.log I've MANY stupid errors:

[Mon Mar 25 00:20:54.265096 2013] [proxy_fcgi:error] [pid 64982:tid 139722618844928] [client 66.249.73.97:35521] AH01071: Got error 'PHP message: PHP Notice: Undefined variable:
HTTP_USER_AGENT in /home/user/domains/domain.com/public_html/index.php on line 10\nPHP message: PHP Notice: Use of undefined constant blabla - assumed 'blabla' in /home/user/domai
ns/domain.com/public_html/index.php on line 102\nPHP message: PHP Notice: Use of undefined constant blabla - assumed 'blabla' in /home/ ....

So file log have many MB. How this turn off? In logs shloud be really important stuff and not info about some ****ty code ;)

I've change php.ini E_ALL & ~E_NOTICE and in php-fpm.conf log_level=warning and reload apache but still have this notices in logs :/
 
Nope, E_USER_* is when user use some function in own code to trigger error.

Changed to:

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

and this probably works but I don't have idea id this is good.
 
Back
Top