[error] Log Format 'o' unknown

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!

Moderator: General Moderators

Post Reply
danodemano
Forum Newbie
Posts: 4
Joined: Mon Nov 03, 2008 4:33 pm

[error] Log Format 'o' unknown

Post by danodemano »

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:

Code: Select all

[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
anantha
Forum Commoner
Posts: 59
Joined: Thu Dec 23, 2010 7:38 pm

Re: [error] Log Format 'o' unknown

Post by anantha »

search your entire application where you are using error_log function using wingrep software or any other you know of...then try to figure out
danodemano
Forum Newbie
Posts: 4
Joined: Mon Nov 03, 2008 4:33 pm

Re: [error] Log Format 'o' unknown

Post by danodemano »

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!
danodemano
Forum Newbie
Posts: 4
Joined: Mon Nov 03, 2008 4:33 pm

Re: [error] Log Format 'o' unknown

Post by danodemano »

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

Code: Select all

LogSQLTransferLogFormat AabcfHhIlMmPpRrSsTtUuvio
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

Code: Select all

LogSQLTransferLogFormat AabcfHhIlMmPpRrSsTtUuv
and that seems to have done the trick. Sorry to have wasted everyone's time.
Post Reply