Just a heads up...
When I click on DB Tuner from my admin panel, I get the WSOD. My error_log shows the following:
PHP Fatal error: Call to a member function get_option() on a non-object in /var/www/html/modules/views/includes/view.inc on line 1904, referer: http://www.svherald.com/admin
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | dbtuner-806244.patch | 885 bytes | mikeytown2 |
| #17 | dbtuner-806244-17.patch | 3.46 KB | mikeytown2 |
| #15 | dbtuner-806244.patch | 1.74 KB | mikeytown2 |
| #11 | dbtuner-806244.patch | 1.76 KB | mikeytown2 |
| #4 | dbtuner-806224.patch | 1.23 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedMy guess in terms of the flow for this error to occur
Looking at this it seems like you have a bad view. Can you give me any more details? Any idea on what view could be causing this? Have you tried the latest dev version of views to see if it still occurs with it?
http://drupal.org/node/95897 2.x
OR
http://drupal.org/node/467670 3.x
My guess is an invalid display_id
Comment #2
mikeytown2 commentedsee if this fixes the error
Comment #3
djudd commentedTried the patch, no luck there. Thanks for the effort though.
I am running the latest dev for views. It seems you are correct, this has to be a bad view somewhere, I'm just not even sure how to begin finding it.
Comment #4
mikeytown2 commentedtry this
Comment #5
djudd commentedStill no luck mikeytown2. I do appreciate the effort, but I'm thinking this has to be something on my end going buggy.
Comment #6
mikeytown2 commentedI'm going to see if anyone on the views issue queue might have any ideas for this.
Comment #7
mikeytown2 commentedTaking it back for now...
Comment #8
adam_c commentedIm experincing the same problem...
Comment #9
adam_c commentedhow would you attempt to debug this, is there any exception handling that could be put into the code to notify the user which view is causing the problem?
Comment #10
adam_c commentedActually after rolling the patch in #4 its telling me that every single one of my views is broken.
This is a very of problem as all of the views i use work fine.
Comment #11
mikeytown2 commentedThis is impossible for me to debug since I have never had this error before. Best I can do is guess, so here is another guess.
Comment #12
webwriter commentedSubscribe. Same error.
Comment #13
mikeytown2 commented@webwriter
Any did you try the patch at #11?
Comment #14
webwriter commentedHi mikeytown2-
When patched I get this:
Parse error: syntax error, unexpected '}' in /home/domain/public_html/sites/all/modules/dbtuner/dbtuner.admin.inc on line 451
Comment #15
mikeytown2 commentedlooks like i forgot 2 semicolons
Comment #16
dmiric commentedSubscribe. Same error. Last patch didnt help I patched last dev version and the error is
Fatal error: Call to a member function get_option() on a non-object in /home/********sites/all/modules/dbtuner/dbtuner.admin.inc on line 497
that is
$view->display[$row['id']]->handler->get_option($types['filter']['plural']);
Comment #17
mikeytown2 commentedlooking at this
http://stackoverflow.com/questions/277224/how-do-i-catch-a-php-fatal-error
This is some nutty code. try this patch please and let me know if it outputs the offending views name. If it does, can you lookup the view and tell if something is wrong with that view?
Comment #18
samgreco commentedHad the same issue. Last patch fixed it. Thanks.
Comment #19
mikeytown2 commented@samgreco
Did you get the view that threw the error? If so; can you look into it and see if something is broken in it?
Comment #20
chrisada commentedI am getting the same error using 6.x-1.x-dev with Views 6.x-2.11.
Since this issue persist with both stable and dev version of views, I think it's better to debug this against stable?
Comment #21
TallDavid commentedSame error on multiple sites. Does not occur when Engines or Collation is selected/used, but, occurs when the Indexes tab is selected. Versions for one site:
Note to self: az.o
Comment #22
omega8cc commentedWSOD here is an almost 100% sign you have some really bad view(s) used.
To debug this I would recommend to clone the site and then disable/remove views one by one until there is no more WSOD.
BTW: I have found DB Tuner as a very good tool to discover views related issues which can cause some too heavy/slow queries and needs to be debugged anyway.
Comment #23
jean84 commentedi get it with the development version too
Comment #24
jean84 commentedi disable
Default Node view: apk_user_posts (Advanced Profile Kit) Enable
Title: Topics participated in
Path: user/%/posts
Page Module: advanced_profile; Shows topics started by or commented on by a given user.
Default Comment view: apk_user_replies (Advanced Profile Kit) Enable
Path: user/%/comments
Page Module: advanced_profile; Comments by a given user
Default Node view: apk_user_topics (Advanced Profile Kit) Enable
Title: Topics started by user
Path: user/%/topics
Page Module: advanced_profile; Shows topics by a given user.
after this its working again. but i am not sure if my apk is installed propper because i allready had problems.
Comment #25
mikeytown2 commentedBug related to this one #1001542: $view->set_display($display_id); returns TRUE for displays that do not exist.
The code in DB Tuner doesn't check the return value of set_display(), something to do in the future. As of right now I have a workaround
Will work on patch soon.
Comment #26
mikeytown2 commentedComment #27
mikeytown2 commentedcommitted the change; not sure if this will fix it. If someone can repo this would you mind testing the latest dev when it comes out in a couple of hrs?
Comment #28
spazfoxI'm receiving the same error (on line 1924) using the latest dev. Just like #21, I can access the other settings but not Indexes. My error log spits out this error message 15 times:
"Division by zero in /mysite/sites/all/modules/dbtuner/dbtuner.mysqltuner.inc(84) : eval()'d code on line 1."
Comment #29
mikeytown2 commented@spazfox
try it with the latest dev of views. http://drupal.org/node/95897 That should fix the 1924 error.
Comment #30
spazfoxJust upgraded to the latest dev of views, but am getting the same error (but now on line 2015):
Fatal error: Call to a member function get_option() on a non-object in /home/mysite/sites/all/modules/views/includes/view.inc on line 2015
Anything else I should try?
Comment #31
mikeytown2 commentedhmm... I'll dig around more; was kinda hoping #1001542: $view->set_display($display_id); returns TRUE for displays that do not exist. would fix it.
Comment #32
dalinCan you do something kinda like:
Comment #33
mikeytown2 commented#17 is a patch to catch fatal errors and report what went wrong.
Comment #34
marta_yo commentedsuscribe
Comment #35
Footeuz commentedI think i've found where the problem come from.
It's from the view apk_user_posts.
For the display 'panel_pane_1' you must have the module "Views content panes" activated.
And if not there is a fatal error.
It's as simple as that !!!
Comment #36
Anonymous (not verified) commentedsubscribe
Comment #37
xeraseth commented@ #35, I have Views Content Panes module activated and I still get the error
Comment #38
xeraseth commentedThe patch at #17 worked for me, it displayed which view was not working. The view that wasn't working was "image-gallery" which the description says "The default gallery of image nodes from Image gallery module." but I don't ever think I installed the Image module (which is what the Image Gallery Module comes from). When viewing the display that is reported as wrong it says "Error: Display image_gallery_1 refers to a plugin named 'image_gallery', but that plugin doesn't exist!"
I deleted this view and the error disappeared on the index screen
something I wasn't sure on and isn't really an issue is the error message displayed by the patch is green, I would think it should be red (but this is neither here nor there, just wasn't sure if you wanted it to be green)
Comment #39
broncomania commentedThe #17 worked for me also. The module is now running perfectly for me. Thx and please update the module to next alpha stage with this patch, because without this patch I only see a wsod page like the others here.
Thx for your work
Comment #40
NoUseFreak commentedSubscribe. Same error.
Comment #41
K.MacKenzie commentedI am still getting this error with the latest dev version.
Comment #42
tobiberlinI get the same error in latest alpha-version referring to line 1995 in sites/all/modules/views/includes/view.inc
Comment #43
mikeytown2 commentedFor people with this issue; give this module a shot http://drupal.org/project/views_maintenance
"It helps you to detect unused and broken displays to modify them or completely remove from your site."
Comment #44
rhawkins commentedI had a comment here about having the same error in D7, but it turned out I was still trying to load a display I had deleted.
Comment #45
southpolekat commentedI got the same error today in D7 after I modified the machine name of the display.
Comment #46
skesslerI have this issue in D7 as well when I try and recreate a Feature that I have all my views in. I have made *many* changes in it. I am seeing some other views pieces show that they are missing but they are on the site I made the Feature from.
Thanks,
Steve
Comment #47
steinmb commentedSuggest this issue get closed. More then one module extending how views is used might experience this if one or more of the views are corrupt. Fixing/removing those views normally take care of this.