Thursday 11 June 2015

How to Enable Prestashop Error Messages?

Locate on your computer, or directly from your web server’s FTP, the file config/config.inc.php in your store’s directory, and scroll down to line 28:
/* Debug only */
@ini_set(‘display_errors’, ‘off’);
define(‘_PS_DEBUG_SQL_’, false);
Replace this with the following:
/* Debug only */
@ini_set(‘display_errors’, ‘on’);
define(‘_PS_DEBUG_SQL_’, true);
Now instead of seeing a blank screen when a Prestashop error happens, PHP will tell you exactly where the problem occurred, and sometimes even offer you a solution!

No comments:

Post a Comment