Jump to content

Error Log


Recommended Posts

  • 3 years later...
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

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

×
×
  • Create New...