modules

środa, 10 października 2012

How to turn on error reporting in PrestShop ?

This article is copied from: How to turn on error log / error reporting in PrestaShop ?

In this article you will read something about debuging modules and other shop problems. This article should be taken as an introduction to self-troubleshooting in the own store. This tutorial works in all versions of prestashop, in 1.5 too.

Turning error reporting on in PrestaShop:

By default, in PrestaShop this feature is disabled for safety reasons. Here is how to turn on PHP errors in shops based on PrestaShop:


Open and edit config.inc.php file

You first need to find the config.inc.php file in directory config in your main prestashop dir, exactly as we show on image below:




you must open this file and edit one setting parameter:

@ini_set('display_errors', 'off');

As you probably see and as we say, the display_errors value is set to off by default. You must turn it on. How to do that? just change it to:

@ini_set('display_errors', 'E_ALL');

and save the config.inc.php file. Thats all!


Did you know that display_errors parameter can have other values? Read more in official article about turning on error reporting in prestashop






Brak komentarzy:

Prześlij komentarz