modules

Pokazywanie postów oznaczonych etykietą php. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą php. Pokaż wszystkie posty

ś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






sobota, 25 sierpnia 2012


All sites using PHP in CGI mode are affected and your shop can be hacked. All PrestaShop stores are not affected. If you don’t know how PHP is running on your shop, you should still apply this patch for security reasons. When PHP is used in a CGI wrapper, remote attackers may use this solution for command-line switches, such as -s, -d or -c, in a query string that will be passed to the PHP-CGI binary ...

You can read this article in: Prestashop modules and themes site