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?
I would recommend installing Xdebug on your development server. It's a very valuable tool in cases like these.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With