How can I get the call stack from a Fatal Error?
php
Solution
I would recommend installing Xdebug on your development server. It's a very valuable tool in cases like these.
Problem
I'm getting a fatal `"Call to a member function on a non-object"` error in a PHP script, but I'm unable to track down exactly where this is happening, or why. The error message is pretty-much useless, as the line it describes works 99.9% of the time. Is there a way I can get the current call stack, trace what calls are being made before this fatal error, or do anything else to help track down this bug?