How do I use this setting?

STRICT_ERROR_REPORTING is a setting that can be used by developers to tell the store to override its normal security protection mode, which prevents the display of error messages to your screen.

Caveat: Outputting errors to the screen can cause some screens or features to not work correctly, especially those which involve being forwarded to another page based on certain criteria or after certain steps are completed.

Caveat: Also, using this option poses a security risk because error messages will disclose path and database information to malicious visitors who attempt rogue behaviors on your store. THUS, THIS SETTING SHOULD ONLY BE USED IN AN OFFLINE DEVELOPMENT ENVIRONMENT. Using it on a live store poses risks, and should only be used for short-term troubleshooting of a problem which can’t be solved any other way.


To enable STRICT_ERROR_REPORTING, simply use your FTP tool to upload a simple file to your store’s site like this:

  • For storefront problems, put it at: /includes/local/configure.php
  • For admin problems, put it at: /admin/includes/local/configure.php


When you’re done, simply delete the file you just created above.

If that doesn’t disable it, then that means you’ve enabled it in another file on your server. You will need to search your entire site for that define statement and remove it. (See the Developer’s Toolkit for that.)

Is this the same as STRICT mode?

No - STRICT mode is a database setting. They are not related. Read about STRICT mode.

Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified October 14, 2021 by Scott C Wilson (dee70c9).