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

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

ca reste le meme probleme le site est inaccessible du backoffice après l'installation

Share this post


Link to post
Share on other sites
On 6/12/2019 at 1:59 PM, Daniel Patilea said:

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.

 

On 6/12/2019 at 1:59 PM, Daniel Patilea said:

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.

Hi Daniel,

I've  changed config/defines.inc.php from false to true, however, I do not see any difference when I try to access my backoffice or web page. 

the only message that i receive is :

 

500 Server Error

Oops, something went wrong.

Try to refresh this page or feel free to contact us if the problem persists.

 

I´ve searched for the error_log inside the folder logs in filezilla, but there isn´t one

 

any idea on how can I have more info about this Error 500 ?

-----------------------------------------------------------

/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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