Jump to content

define('_PS_MODE_DEV_', false) PrestaShop is set to off, but on product pages errors still show


waizrahman

Recommended Posts

I have disabled error messages on PrestaShop from define file .Now debug messages do not appear on the home page, but on the products pages they still appear even though i have checked php.ini, warning  message still appear on product pages when i have set it to false in defines.php file

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

This is what i am getting in header on product page

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

This is the code:

    /* 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. tried everythhing what could be solution

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...