PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Alright, so this is driving me up the wall and I can't seem to figure out why it's happening. I keep getting these (and an 'i') in my error_log almost constantly and I can't figure out where they are coming from. Here is a small chunk of the log:
[Sat Jan 01 21:55:09 2011] [error] Log Format 'i' unknown
[Sat Jan 01 21:55:09 2011] [error] Log Format 'o' unknown
[Sat Jan 01 21:55:11 2011] [error] Log Format 'i' unknown
[Sat Jan 01 21:55:11 2011] [error] Log Format 'o' unknown
[Sat Jan 01 21:56:15 2011] [error] Log Format 'i' unknown
[Sat Jan 01 21:56:15 2011] [error] Log Format 'o' unknown
[Sat Jan 01 21:56:16 2011] [error] Log Format 'i' unknown
[Sat Jan 01 21:56:16 2011] [error] Log Format 'o' unknown
[Sat Jan 01 21:56:23 2011] [error] Log Format 'i' unknown
[Sat Jan 01 21:56:23 2011] [error] Log Format 'o' unknown
Any idea where to start trying to figure this out? My phpinfo page can be found here: http://dbunyard.homeip.net/phpinfo.php Sorry if this is the wrong forum to post in. Thanks!
--
Dan
Is there any way to enable farther debugging within PHP to try to track down where these are coming from? I did a search through the entire /var/www/html directory and came up with 58 files that had "error_log" in them somewhere. I searched through each one but didn't see anything that seemed out of place. As far as I can tell all the functions are structured properly. Thanks!
Alright, I really feel stupid now. I swore this was a PHP thing but upon really looking at it I was wrong. Turns out it was the way I had Apache set up to log to a MySQL database that was causing this errors. I have been using mod_log_sql for quite a while now but it turns out it was misconfigured. The
line had that "i" and "o" at the end for logging bytes in and out but somehow Apache/mod_log_sql didn't like this. I do have the mod_logio module enabled so I'm not sure why it didn't like it. Anyway, I changed the line to