0

I have disabled error messages on PrestaShop from define file .debug messages do not appear on the home page, but on the products pages, notice message still appear.

I want to remove all debug messages from the entire site.

This is what i am getting in header

Notice: Array to string conversion in /home/calgar29/public_html/classes/Dispatcher.php on line 683

This is what I have done:

    /* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', false);
}
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_ === true) {
    @ini_set('display_errors', 'on');
    @error_reporting(E_ALL | E_STRICT);
    define('_PS_DEBUG_SQL_', true);
} else {
    @ini_set('display_errors', 'off');
    define('_PS_DEBUG_SQL_', false);
}

define('_PS_DEBUG_PROFILING_', false);
define('_PS_MODE_DEMO_', false);

I am using PrestaShop 1.6.

user960971
  • 123
  • 2
  • 12

2 Answers2

0

Maybe this is your server configuration (Apache or Nginx) that displays Notice, not PrestaShop

Agnonym
  • 86
  • 4
0

If you have customs modules installed, you can check if one doesn't have @ini_set('display_errors', 'on'); in its code.

shagshag
  • 461
  • 3
  • 9