LeighWardle
asked on
Logging PHP errors
Hi Experts,
I am using WordPress and I believe one of my plugins is throwing fatal PHP errors.
But these errors are not showing up in my PHP error log.
Here are the current PHP settings reported by phpinfo():
What changes do I need to make so that all error levels are included in my PHP error log?
Also what is the difference between Local Value and Master Value?
Regards,
Leigh
I am using WordPress and I believe one of my plugins is throwing fatal PHP errors.
But these errors are not showing up in my PHP error log.
Here are the current PHP settings reported by phpinfo():
Directive Local Value Master Value
display_errors Off Off
display_startup_errors Off Off
error_append_string </font> </font>
error_log no value no value
error_prepend_string <font color=ff0000> <font color=ff0000>
error_reporting 32767 32767
log_errors On On
log_errors_max_len 1024 1024
track_errors Off Off
What changes do I need to make so that all error levels are included in my PHP error log?
Also what is the difference between Local Value and Master Value?
Regards,
Leigh
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, but the only way you get those warnings is to have those extensions defined twice in 'php.ini'. Are you on Windows or Linux?
ASKER
I'm on a Linux-based website hosting service.
Do you have your own 'php.ini' in your web space?
ASKER
No, I don't have my own 'php.ini' in my web space.
I guess I will have ask my host to make the changes?
I guess I will have ask my host to make the changes?
You should ask them why you are getting those warnings about the extensions being already loaded.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many Thanks, Dave & Ray.
ASKER
Sorry, I had not mentioned earlier, there already appears to an 'error_log' file active, with contents like this:
Open in new window
So I assume it is already logging Warnings, but not higher level errors?