When developing your store, there may be times when you run into problems and need to see the error messages. By default, error reporting is turned off. This prevents error messages from being displayed in the browser. Enabling the error reporting will allow the message to display in the browser to give you an idea of there the problem may lie. This is a very handy tool when debugging or troubleshooting any odd store behavior. Turning on error reporting in PrestaShop 1.5 is fairly simple and is described below.

Enabling error reporting in PrestaShop 1.5

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

NOTE: Be sure to turn it back off once you do not need it, this is for troubleshooting only!

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
2013-11-03 9:15 am
I can not find that line code you say in Step 5. The more closes to that is:
/* Improve PHP configuration to prevent issues */
ini_set('upload_max_filesize', '100M');
ini_set('default_charset', 'utf-8');
ini_set('magic_quotes_runtime', 0);

I am using the default theme but an upgrade of my ISP to PHP and MySQL broke the normal behavior of my shop and they say I have to upgrade too.
Staff
16,652 Points
2013-11-04 11:23 am
Hello LuisKCRs,

Thank you for finding the error in our article. Things have changed since the original writing. I have edited the article with the correct information so you should now be able to follow it with confidence. Thank you!

Kindest Regards,
Scott M
2013-11-04 11:50 am
Hey, thanks! ... I just found it. :)
n/a Points
2014-03-24 5:37 pm

Step 7: replace config.inc.php with defines.inc.php

n/a Points
2014-08-02 3:44 am

There is an error. The code @ini_set('display_errors', 'off') is at config.ini.php file.

Staff
16,652 Points
2014-08-04 9:38 am
Hello Fernando,

That was changed at some point in the lifespan of PrestaShop 1.5. While it used to be located in the config.inc.php, it is now in the defines.inc.php file.

Kindest Regards,
Scott M

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

6 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!