This article describes how to enable error reporting in PrestaShop. For security reasons, error reporting is disabled by default. However, if your site is experiencing problems, you may want to temporarily enable error reporting to help determine the cause.
The steps to enable error reporting in PrestaShop depend on the version that you are running. Follow the appropriate procedure below for your PrestaShop version.
To enable error reporting in PrestaShop 1.5.3 and newer versions, follow these steps:
define('_PS_MODE_DEV_', false);
Modify the line as follows, changing false to true:
define('_PS_MODE_DEV_', true);
Save the changes to the config/defines.inc.php file and exit the text editor. Error reporting is now enabled.
To enable error reporting in PrestaShop versions older than 1.5.3, follow these steps:
@ini_set('display_errors', 'off');
Modify the line as follows, changing off to on:
@ini_set('display_errors', 'on');
To display all errors and run-time notices, add the following line to the config/config.inc.php file:
error_reporting("E_ALL");
Save the changes to the config/config.inc.php file and exit the text editor. Error reporting is now enabled.
To view the official online PrestaShop documentation, please visit http://doc.prestashop.com.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.