Support Thread: Report All Errors (Even Warnings)
I was looking for an easy way to enable all error-reporting during my debugging ... and came up with this plugin. The plugin overwrites two core files to enable you to use a simple $_GET variable (report_all) to enable all error reporting for the selected page.
I'll be submitting this to the Plugins area shortly -- now that I've got a support thread!
Re: Support Thread: Report All Errors (Even Warnings)
The plugin is available for download here: http://www.zen-cart.com/downloads.php?do=file&id=1792
I've just submitted v1.1.0 to the Plugins, which uses admin-configurable settings to enable/disable the feature instead of the $_GET variable approach used in v1.0.0.
P.S. No longer any core-file overwrites!
Re: Support Thread: Report All Errors (Even Warnings)
v1.1.0 is now available for download ...
Re: Support Thread: Report All Errors (Even Warnings)
Another excellent stick to beat myself over the head with! Well done, I hope the devs use this...
Maybe some user notes here would beneficial for the unwary.
i.e.
Notices about undefined or already defined constants in core code should be ignored unless no substitution has been assumed.
Warnings associated with core code are unlikely to be fixed at this point.
Just concentrate on warnings associated with your mods.
Re: Support Thread: Report All Errors (Even Warnings)
Quote:
Originally Posted by
lat9
v1.1.0 is now available for download ...
Absolute cracker - well done!! Should be part of the standard file system :yes:
Re: Support Thread: Report All Errors (Even Warnings)
Quote:
Originally Posted by
torvista
Another excellent stick to beat myself over the head with! Well done, I hope the devs use this...
Maybe some user notes here would beneficial for the unwary.
i.e.
Notices about undefined or already defined constants in core code should be ignored unless no substitution has been assumed.
Warnings associated with core code are unlikely to be fixed at this point.
Just concentrate on warnings associated with your mods.
Good point, I'll put together a proposal and post here before including it in the updated readme.html file.
Re: Support Thread: Report All Errors (Even Warnings)
Quote:
Originally Posted by
frank18
Absolute cracker - well done!! Should be part of the standard file system :yes:
Thanks, Frank.:blush:
Re: Support Thread: Report All Errors (Even Warnings)
Here's the first of the list of PHP warnings that can be safely ignored:
The first time you enable the reporting of all errors on your store, you might see a number of items similar to
Code:
PHP Notice: Constant SOME_LANGUAGE_CONSTANT_NAME already defined in {DIR_FS_CATALOG}\includes\languages\english.php on line xxx
These "notice" messages are issued if your store has made a template-based change to the default language file (for this example, english.php). That's because Zen Cart first loads your template-override language file and then — because sometimes new messages are introduced with a new Zen Cart version — loads the default language file.
Re: Support Thread: Report All Errors (Even Warnings)
v1.1.1 is now available for download from the Plugins area, containing readme-only updates to (a) identify support for ZC 1.5.3 and (b) adding some "safe to ignore" notes per torvista's post #4 in this thread.
Re: Support Thread: Report All Errors (Even Warnings)
I've just submitted v1.1.2 to the plugins for review, to update the core files distributed by the plugin to use the Zen Cart v1.5.5 version as the base.
Note: For stores running a Zen Cart version less than v1.5.5, this update will also pull in the changes provided by myDEBUG Backtrace, since that plugin is part of the core starting with ZC1.5.5.