Enabling error reporting in PrestaShop
By default, error reporting in PrestaShop is disabled for security reasons. However, when troubleshooting issues such as blank pages or module errors, enabling error reporting can help identify the cause. On ruachost.com, you can enable error reporting by editing configuration files.
Why Enable Error Reporting?
Section titled “Why Enable Error Reporting?”- Helps diagnose problems with modules, themes, or custom code.
- Displays detailed error messages instead of blank pages.
- Useful for developers during debugging.
Steps to Enable Error Reporting
Section titled “Steps to Enable Error Reporting”For PrestaShop 1.5.3 and Newer
Section titled “For PrestaShop 1.5.3 and Newer”-
Log in to your account using SSH or cPanel File Manager.
-
Navigate to your PrestaShop installation directory.
-
Open the file:
config/defines.inc.php -
Locate the following line:
define('_PS_MODE_DEV_', false); -
Change
falsetotrue:define('_PS_MODE_DEV_', true); -
Save the file and exit. ✅ Error reporting is now enabled.
For PrestaShop Versions Older than 1.5.3
Section titled “For PrestaShop Versions Older than 1.5.3”-
Log in to your account using SSH or cPanel File Manager.
-
Navigate to your PrestaShop installation directory.
-
Open the file:
config/config.inc.php -
Locate the following line:
@ini_set('display_errors', 'off'); -
Change
offtoon:@ini_set('display_errors', 'on'); -
To display all errors and notices, add:
error_reporting(E_ALL); -
Save the file and exit. ✅ Error reporting is now enabled.
Important Notes
Section titled “Important Notes”- Security caution: Error reporting should only be enabled temporarily for troubleshooting.
- Once the issue is resolved, disable error reporting again by reverting the changes (
true → falseoron → off). - Leaving error reporting enabled on a live site may expose sensitive information.