I am unable to view the Devel query log in views. When I turn it on the following message is displayed at the bottom of every page where the query log should be. At the moment, I have no ideas about what the problem is.

Fatal error: Exception thrown without a stack frame in Unknown on line 0 

I badly need the query log to see if my new views are creating the right queries, any help would be appreciated.

CommentFileSizeAuthor
#10 devel-756040-register_shutdown.patch1.05 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

The message is coming from Devel, see #376824: Query log displays dreaded Fatal error: Exception thrown without a stack frame in Unknown on line 0 on Views pages, which may not be handling exceptions well enough, but I can't figure out what the exception is.

esmerel’s picture

Assigned: Unassigned » dawehner
dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still a issue? Perhaps this is solved one the other issue.

KarenS’s picture

This is still happening. I don't know if it is a Views problem or a Devel problem or a DBTNG problem, but the linked issue has the steps to reproduce it.

bojanz’s picture

I too started seeing the error once I enabled the query log in Devel.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

I tryed to have a look on this issue during drupalcon and i had this problem, too. But i had no idea what to do here.

Berdir’s picture

Use http://api.drupal.org/api/function/drupal_register_shutdown_function/7 to register shutdown functions.

That will catch exceptions thrown in shutdown functions and display them so that they can be fixed :)

The function also supports adding shutdown functions in a shutdown function. There is even a test for that :)

dawehner’s picture

The latest devel version fixed the problem for me. Perhaps this should be moved to devel to suggest the drupal_register_shutdown_function fix.

dawehner’s picture

Project: Views (for Drupal 7) » Devel
Version: 7.x-3.x-dev » 7.x-1.x-dev
Component: Code » devel
Assigned: dawehner » Unassigned
Status: Active » Needs review
FileSize
1.05 KB

Here is a patch for devel.

moshe weitzman’s picture

i didn't realize it supported the shutdown within a shutdown thing. nifty. will review and commit.

moshe weitzman’s picture

Status: Needs review » Fixed

i could swear we were already using druapl_register_shutdown_handler() once. seems not. thanks.

dawehner’s picture

It's cool that you commited it. I doubt on my sanity when you said in IRC that you already use it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.