Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | devel-756040-register_shutdown.patch | 1.05 KB | dawehner |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThe 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.
Comment #2
esmerel CreditAttribution: esmerel commentedComment #3
dawehnerIs this still a issue? Perhaps this is solved one the other issue.
Comment #4
KarenS CreditAttribution: KarenS commentedThis 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.
Comment #5
bojanz CreditAttribution: bojanz commentedI too started seeing the error once I enabled the query log in Devel.
Comment #6
esmerel CreditAttribution: esmerel commentedComment #7
dawehnerI 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.
Comment #8
BerdirUse 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 :)
Comment #9
dawehnerThe latest devel version fixed the problem for me. Perhaps this should be moved to devel to suggest the drupal_register_shutdown_function fix.
Comment #10
dawehnerHere is a patch for devel.
Comment #11
moshe weitzman CreditAttribution: moshe weitzman commentedi didn't realize it supported the shutdown within a shutdown thing. nifty. will review and commit.
Comment #12
moshe weitzman CreditAttribution: moshe weitzman commentedi could swear we were already using druapl_register_shutdown_handler() once. seems not. thanks.
Comment #13
dawehnerIt's cool that you commited it. I doubt on my sanity when you said in IRC that you already use it.