This plugin builds on the suggestion I made to have the database's query_factory class include a debug_backtrace when a database interface error is detected, to aid in problem determination. There are other cases when a Zen Cart myDEBUG*.log file is created in which a "victim" (usually one of the Zen Cart built-in functions) is identified, but the "culprit" is actually the function's caller. This plugin updates the Zen Cart's built-in error handling (both admin- and store-side) to include the Zen Cart page being accessed, the IP address accessing and a PHP debug_backtrace as part of the debug-log to aid in problem-determination.
query_factory
debug_backtrace
Note: Starting with Zen Cart v1.5.5, the functionality provided by this plugin is included in the Zen Cart core, thus rendering this plugin obsolete for that and later Zen Cart versions.
If I've helped you on the Zen Cart forums or you've found one of my free plugins helpful, feel free to give a little back by clicking here.