Jump to content
Daniel Patilea

How to enable debug mode on PrestaShop 1.7 and older versions | Turn on error reporting | Blank page

Recommended Posts

The debug mode is widely used to see the errors on your shop and when:

 

  • you get blank pages;
  • you get 500 Internal Server Error;
  • you have strage issues with your shop and don't know where to start;

 

To turn on the Debug mode on PrestaShop 1.7 is more simple comparing it to the previous versions of Prestashop.

You can do this from your PrestaShop Dashboard > Advanced Parameters > Performance > DEBUG MODE PANEL > Set it to YES

 

CwVlePh.png

 

If you can't acces you dashboard you can also enable it through FTP by accessing config/defines.inc.php and usually @line  29 you will find :

define('_PS_MODE_DEV_', false);

change it to:

define('_PS_MODE_DEV_', true);

Turning on the Debug Mode on other versions of Prestashop

 

 

For PrestaShop 1.5.3 to 1.6 the procedure is the same: 

 

Open config/defines.inc.php and usually @line 29 you will find :

define('_PS_MODE_DEV_', false);

change it to:

define('_PS_MODE_DEV_', true);
For PrestaShop below 1.5.3 you have to edit the config/defines.inc.php file and make the following changes:
 
Change this line:
@ini_set('display_errors', 'off');
to this:
@ini_set('display_errors', 'on');

!!! Be careful, turn the Debug Mode off when finished debugging, hackers may get advatage of it and may harm your website and besides of that any visible error is not good for visitors.

 

 

Edited by Daniel Patilea (see edit history)
  • Like 8
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks for the info, but where is saved the debug file?

Share this post


Link to post
Share on other sites

Usually the debug is displayed on your browser tab when there's an error. You can also view errors in error_log file from the root folder of your site.

  • 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