Dusting off my diagnostic css additions to devel.module and I think I've come across a problem - unrelated to my additions, this happens with a stock devel.module enabled too.
This function seems to cause the problem:

// custom error handling is annoying when stepping though in a debugger
function devel_init() {
  restore_error_handler();
}

Giving me a whole bunch of errors in my error_log:

[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 463
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: in /Library/WebServer/Documents/drupaldevel/includes/theme.inc on line 49
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: filter in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 242
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: system in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 242
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: admin/taxonomy/add in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 242
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: op in /Library/WebServer/Documents/drupaldevel/modules/system.module on line 329
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: edit in /Library/WebServer/Documents/drupaldevel/modules/system.module on line 330
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined variable: select in /Library/WebServer/Documents/drupaldevel/includes/common.inc on line 912
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 203
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 185
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195
[Sat Feb 7 17:28:34 2004] [error] PHP Notice: Undefined index: children in /Library/WebServer/Documents/drupaldevel/includes/menu.inc on line 195

Presumably thats the intention, but it's annoying when you're trying to track the log for other errors, if this function is intended to do this, then perhaps it could be commented out, or turned off unless the debugger is specifically enabled? It doesn't seem to be required for the other devel functions to work.

Comments

adrinux’s picture

Sorry about the sucky formatting on that. should have php wrapped the error log to perhaps...just in case you don't notice this is at the end of the error log:

Presumably thats the intention, but it's annoying when you're trying to track the log for other errors, if this function is intended to do this, then perhaps it could be commented out, or turned off unless the debugger is specifically enabled? It doesn't seem to be required for the other devel functions to work.

moshe weitzman’s picture

That line intentional. It says - just use PHPs error log level. You should instruct your PHP not to print NOTICES and maybe WARNINGS also. You do this via php.ini

Or just comment out that line.

adrinux’s picture

Yeah, I see that now. I've opted for commenting that line out in my local copy.