Jump to content
Chughtai

How to enable debugging Mode in Prestasho 1.5.6

Recommended Posts

Hi Bsource

go to config > defines.inc.php change the line:

define('_PS_MODE_DEV_', false);

to true and you're done

Ariom
 

Share this post


Link to post
Share on other sites

Thank you for your prompt help, I changed it but still no error is displaying, 

here is my website: scottishkiltshop.com

Share this post


Link to post
Share on other sites

/* 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);

Share this post


Link to post
Share on other sites

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);

Share this post


Link to post
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

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More