error_log

New member of this forum, and relatively new to php.

I have inherited a bunch of php code and a MySQL database. (Unfortunately, the original author of all that stuff is deceased, so I’m on my own…) I’ve taught myself enough php and MySQL to more or less understand how things work, add features, fix problems, etc. Except now I’ve run across something strange, and I don’t know where to begin to look for a solution.

When I execute one particular php program, I get an error message mailed to me, apparently from the hosting service. The subject is “PHP error_log message”. And the email itself is utterly useless to me. Sometimes it’s totally blank, sometimes it just says this:

Array
(
)

which is just as good as blank. In other words, no information. I accept that there’s a problem somewhere, but it beats me what - and where - it is. Moreover, this may just be a warning. The program itself works fine. That is, the person who’s using the program sees nothing wrong. The only thing is that I, as the person maintaining this code, get these emails.

(And for what it’s worth, the code I inherited has its own error handling routines, which work properly. The emails are not coming from my routines, but apparently from the web host.)

Any suggestions on how to track this down?

Sponsor our Newsletter | Privacy Policy | Terms of Service