PHP error log does not display script names nor does it display the errors' line numbers [migrated]
- by gnxtech3
I think the title is self-explanatory, and my Google-fu isn't bringing up anything useful.
I'm working on a new host, and my php error log only displays the error itself, not which script is the offender, nor which line number the error is occurring on.
Makes it a tad difficult to debug, especially since there's only 1 error in the script.
More info: I'm not using a custom error handler that I'm aware of. This is a standard Wordpress install.
The error was
[27-Aug-2012 19:22:36 UTC] PHP NOTICE: Trying to get property of non-object. Just no script name or line number in the error
I found that Wordpress' error logging contained the information to debug the problem, but that doesn't explain why the log didn't contain line number or script.