Constant already defined debug logs

How to suppress logs saying a constant is already defined

Debug logs like this:

--> PHP Warning: Constant TEXT_MAIN already defined in /Users/scott/Sites/store/includes/languages/english/index.php on line 9.

occur when a PHP define statement is used twice for the same constant. The root cause of this issue is addressed in Zen Cart 1.5.8, but until then, storeowners using Zen Cart 1.5.7 can suppress this message using the following method:

  • Go to Admin > Configuration > Logging
  • Set Report All Errors (Admin)? and Report All Errors (Store)? to IgnoreDups.



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 June 19, 2022 by Scott C Wilson (edb9b78).