Show errors in PrestaShop for debugging

  1. Edit file config/defines.inc.php
  2. Replace constant _PS_MODE_DEV_ value false with true
    define('_PS_MODE_DEV_', true); 

Above changed should enable verbose error_reporting.
Tested in version 1.6

Advertisements

Custom PHP errors with int value

I needed custom PHP errors set via .htaccess

<IfModule mod_php5.c>
php_value error_reporting 674
</IfModule>

According to docs about errors predefined constants I had to add the values of errors I wanted to see.
Inspiration for the number came from comment.

So I ran it via CLI (fastest possible way I think)

php -r 'echo E_WARNING | E_USER_WARNING | E_CORE_WARNING | E_COMPILE_WARNING;'

and finally got the int value I needed.