I'm getting the following error when I try to access some of my views:

PHP Fatal error: Call to a member function get_handlers() on a non-object in /path_to_drupal/sites/all/modules/views/includes/view.inc on line 372

I've taken a look at the issues on this site, but haven't found one that solves my problem.

Attached is a copy of a view that produces the error (contact_libraries) as well as a similar view that doesn't display the error (contact_service).

Any ideas?

CommentFileSizeAuthor
contact-service.txt10.18 KBrgraves
contact-libraries.txt7.97 KBrgraves

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

When do you get the error? Is it based on certain actions?

rgraves’s picture

I noticed it was happening everytime I accessed the contact-libraries view, while NOT logged in. When logged in, it never happened. After I editted the view and saved it, the problem stopped, but then started up again within a few minutes. At that point, it was occurring somewhat less frequently (i.e. not every time I accessed the view).

rgraves’s picture

Weird - it was producing the errors consistently before, but now it doesn't seem to be producing them everytime I go to that 'problem' view. The errors are still popping up frequently in the logs, so maybe it's not related to that specific view.

I've read some posts about this relating to the cache. Is there any fix for it if it's a cache issue? Seems like it might be since the problem didn't occur before while I was logged into Drupal.

esmerel’s picture

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

It definitely seems like a caching issue. I'm having the same problem, and the error only shows up when the view is displayed on a cached page. In my case, it's only happening for one particular view, so I'm trying to isolate what's different about that view from other views on the website.

@rgraves - Does this happen for all the views on your site or just one view in particular?

bnthms88’s picture

"Attached is a copy of a view that produces the error (contact_libraries) as well as a similar view that doesn't display the error (contact_service)."

@rgraves - Looks like I didn't thoroughly read the last line in your post :).

rgraves’s picture

Yeah when I first tested it, it was occurring everytime I accessed the one view and not others. Now I've been able to access the 'problem' view while not logged in and the error hasn't occurred. So while I haven't seen it occurr when I accessed other views, I can't say for certain if those views are okay.

iamjon’s picture

rgraves
did you find a solution for this? please update.

iamjon’s picture

Status: Active » Closed (cannot reproduce)

closing from a lack of activity.