SHARE

Error Reporting In Prestashop

Enable Error Reporting In Prestashop  is very useful to find php errors in website created in  this script .when your website is no working properly it is necessity  to enable.when prestashop error reporting is enabled ,error are displayed on the top of the page

Error Reporting In Prestashop
Error Reporting In Prestashop

prestashop error repoting is on.When prestashop error reporting is on ,the website errors are shown on upper screen when website is load.There are two ways to enable prestashop error reporting on.There are mainly two methods to on error reporting on and off.

First way:

  • Log into your hosting admin dashboard, control panel, SSH, or FTP client.
  • Navigate to the PrestaShop installation root folder.
  • From there, navigate the path /cgibin/php.ini
  • Change it to read “display_errors=1
  • Save the php.ini

Second Way

  • Log into your hosting admin dashboard, control panel, SSH, or FTP client.
  • Navigate to the PrestaShop root folder.
  • From there, navigate the path /config/defines.inc.php
  • Open up the defines.inc.php file in your preferred text editor.
  • Find the line of code that reads “@ini_set(‘display_errors’, ‘off’)”  This is line 39 by default as of PrestaShop 1.5.6
  • Change it to read “@ini_set(‘display_errors’, ‘on’)
  • Save the config.inc.php file back to the path, overwriting the existing file if needed.