Turn off, but log Smarty and PHP errors
Posted: Sat Jun 04, 2011 9:20 pm
Hello all. I am searching the forum on how to disable all Smarty and PHP error notification on the frontend of the website, and not finding anything.
.htaccess setting
php_flag display_errors 0
brings website down.
config.php setting
error_reporting(E_ALL ^ E_NOTICE);
has been added, but a PHP error is still displayed
"Warning: filemtime() [function.filemtime]: stat failed for..."
Is that the correct setting for config.php to disable PHP error display?
I would like to know how to disable all Smarty error reporting on my website. Being able to log Smarty and/or PHP errors would be a big bonus.
.htaccess setting
php_flag display_errors 0
brings website down.
config.php setting
error_reporting(E_ALL ^ E_NOTICE);
has been added, but a PHP error is still displayed
"Warning: filemtime() [function.filemtime]: stat failed for..."
Is that the correct setting for config.php to disable PHP error display?
I would like to know how to disable all Smarty error reporting on my website. Being able to log Smarty and/or PHP errors would be a big bonus.