How to turn on error reporting in PrestaShop

Sometimes you might want to see detailed error reports in your PrestaShop store.
You just need this information when you see a blank error page or short text: “Error 500”.
Here are short instructions to see PrestaShop debug information.

PrestaShop 1.5.3 – 1.7+

Edit this file:
/config/defines.inc.php
(you can do it via FTP)
Find the following line of code:

1
define('_PS_MODE_DEV_', false);

Change it to:

1
define('_PS_MODE_DEV_', true);

PrestaShop 1.4 – 1.5.3

Edit this file:
/config/config.inc.php
Find the following line of code:

1
@ini_set('display_errors', 'off');

Change it to:

1
@ini_set('display_errors', 'on');

That’s all!

Don’t forget to turn off error reporting when you finish. Otherwise your customers will see some unexpected debug information.

2 thoughts on “How to turn on error reporting in PrestaShop”

Leave a Reply

Your email address will not be published. Required fields are marked *