Jump to content

How to enable debugging Mode in Prestasho 1.5.6


Recommended Posts

/* Debug only */
define('_PS_MODE_DEV_', true);  I changed it true from false but no errors 
if (_PS_MODE_DEV_)
{
    @ini_set('display_errors', 'on');
    @error_reporting(E_ALL | E_STRICT);
    define('_PS_DEBUG_SQL_', true);
    /* Compatibility warning */
    define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);
}
else
{
    @ini_set('display_errors', 'off');
    define('_PS_DEBUG_SQL_', false);
    /* Compatibility warning */
    define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

Link to comment
Share on other sites

  • 1 month later...

Same problem here, nothing happens when I set it to "true".

 

 

define('_PS_MODE_DEV_', true);
if (_PS_MODE_DEV_)
{
        @ini_set('display_errors', 'on');
        @error_reporting(E_ALL | E_STRICT);
        define('_PS_DEBUG_SQL_', true);
        /* Compatibility warning */
        define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);
}
else
{
        @ini_set('display_errors', 'off');
        define('_PS_DEBUG_SQL_', false);
        /* Compatibility warning */
        define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}
 
define('_PS_DEBUG_PROFILING_', false);
define('_PS_MODE_DEMO_', false);
Link to comment
Share on other sites

I would suspect that if you are truly getting errors but can not see them with ps errors turned on there is some configuration in your  hosting that is keeping the errors from displaying.

 

 

here is a free back office module that will display your php run-time enviornment, after installing click configure and under tab INFO_CONFIGUATION search for 'error' and inspect the settings of your hosting environment.

 

http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

also make sure to find out where your errors are logged (if they are or are not)...so you can monitor the error log from you hosting account.

  • Like 1
Link to comment
Share on other sites

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...