Hi, I must be missing something missing obvious here, maybe you can help me
I have patched the performance.module file and enabled the "performance logging" module.
Interface is showing fine but I just get a
"Detailed performance logging is not enabled. Go to the settings page to enable it."
Of course, going to the page results in seeing it enabled ( no query logging, just detailed and summary logging
Digging a little into code brought me to understand that on line 295 of pqp.module
if((variable_get('performance_detail', 0) && !empty($pqp_data[0]))
the $pqp_data array is empty
Seems like I called the logger the wrong way. I called the pqs() function on a piece of code that got executed but nothing happened.
Any clue on what am I missing? I have tried to use pqp_start or pqp_init to start the debugger with no results....
One note (might be important?): reviewing logs I found errors like this at module install time array_unshift(): The first argument should be an array in *****\modules\pqp\pqp.module row 361. which is
array_unshift($GLOBALS['debugger_logs']['console'], $pqp_header);
Any help will be appreciated
Thanks
Michele
Comments
Comment #1
caktux commentedI thought I got rid of those $GLOBALS... Should be fixed in http://drupal.org/cvs?commit=241842 so you might try the next dev package or a checkout from CVS. Thanks :)
Comment #2
poehnix commentedI have tried latest version. Thanks for your patch. Sadly, it seems nothing has changed. I will have a closer look in the next few days and report anything meaningful.
Something that might be important: I do not have apc on my site. Might this be the reason the msg? ( which is: "Detailed performance logging is not enabled. Go to the settings page to enable it." )
Bye
Michele
Comment #3
melon commentedAny updates on this? I just tried this module and I'm facing the same problem as poehnix: it doesn't work either with APC enabled or disabled. It always reports that detailed logging is not enabled whether it's enabled or not.