I have a massive site I inherited built using Zend Framework. It's a internal company site and many employees have been complaining of errors. The last guy only ever gave a response of "It's working fine for me", hence why he was fired.
I went through and did some research and found I could make a error handle controller. So I created one that captured all the errors and I have been fixing them as they come up (and I now see why the guy as saying it works fine for me, cause the employee's were screwing up on somethings and the guy just didn't have the logic programmed in to handle those screw ups).
Right now I'm done to just a few "Invalid parameter number: no parameters were bound" errors, I have the stack trace's so I do know what line is causing the error. I also have the GET and POST values. Some of the points where it's causing a throwing this error have a lot of logic leading up to it. So I'm wondering if there is a way From the Zend_Controller_Plugin_ErrorHandler if I can retrieve the SQL statement that was being run.
I know I could wrap the calls and catch them independently, but that wont help future problems that come up. Any insight into this would be greatly appreciated.
No comments:
Post a Comment