I cannot disable error reporting in PHP. I tried everything, but the "Notifications" errors are still displayed.
My php.ini has
display_errors = Off; error_reporting = 0;
My .htaccess has
php_value error_reporting 0
And my script has
ini_set('display_errors', 'Off'); ini_set('log_errors', 1); ini_set('error_reporting', 0); ini_set('display_startup_errors', 'Off'); php_info(); echo $my_undefined_var;
The php_info () output confirms that display_errors and error_reporting are really off and 0, and yet I still get a notification,
Note: Undefined variable: my_undefined_var in /my/site/path/index.php?blahblah ...
Please note that this is an OpenCart site (and my change is in the admin section). I tried to create a test php script in the same directory as index.php, and that is fine.
Is there anything else that could override error_reporting(0) ?
I did a grep of the whole site to find and turn off all references to reporting and display_errors errors, but to no avail.
source share