petera Posted March 31, 2008 Share Posted March 31, 2008 Excuse my ignorance, but when error display is set to 'on' in the config file where can the log be viewed or do the errors appear on the screen at the point an error is encountered? Cheers Peter A Link to comment Share on other sites More sharing options...
ByteSites Posted February 28, 2012 Share Posted February 28, 2012 Excuse my ignorance, but when error display is set to 'on' in the config file where can the log be viewed or do the errors appear on the screen at the point an error is encountered? Cheers Peter A Hi Peter, When error log is ON the errors appear on screen in the header. Many Thanks, Simon. Link to comment Share on other sites More sharing options...
Mark Hesketh Posted February 28, 2012 Share Posted February 28, 2012 Hi petera, You should be able to add ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); in your /config/config.inc.php to have the errors be logged in a file. So the block of code would be : /* Debug only */ @ini_set('display_errors', 'on'); ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); define('_PS_DEBUG_SQL_', true); error_reporting(E_ALL | E_STRICT); Mark Link to comment Share on other sites More sharing options...
Recommended Posts