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?