Exceptionally odd behavior that I've never experienced before. First I was locked out of editing my own view. Then when I chose to break the lock, it sent me to edit a different view. Then I manually truncated the views_object_cache. Then when I tried to save I get this message:

Fatal error: Call to a member function validate() on a non-object in /home/***/public_html/sites/all/modules/views/includes/admin.inc on line 895
array(4) { ["type"]=> int(1) ["message"]=> string(52) "Call to a member function validate() on a non-object" ["file"]=> string(69) "/home/****/public_html/sites/all/modules/views/includes/admin.inc" ["line"]=> int(895) } n/a

I'm out of my league here. Definitely need some help from the Wizard or his helpers. Thanks.

Comments

dawehner’s picture

nsyll’s picture

patch doesn't work for me

ronline’s picture

The same for me.
Views are locked by a 2 days 2 hours old lock.
I’ve closed and restarted all browser the lock is till showing up.
Over all when I try to save the page I’m getting mentioned error about /admin.inc on line 895.
Patch isn’t working either.

esmerel’s picture

Status: Active » Postponed (maintainer needs more info)

Anyone want to try attaching a view, giving steps on how they got this to occur? Did you sit for a while and views decided your session expired or something? More details would be really helpful here.

markpenny’s picture

I had the same warning when trying to save views and displays. Then I disabled Forms and Forms test. Views worked.

ronline’s picture

I've fixed problem with sql request
DELETE FROM `views_object_cache` WHERE name = "view_name"

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Unable to replicate.

drupal10’s picture

Priority: Normal » Critical

Same issue here. When I click and confirm to break the lock (I should mention that I am the use that has the view locked) it redirects to a page not found. Then when I go back to the view to edit it, it's still locked. This happens on both PC and Mac, in both IE, Firefox, Safari and Chrome.

Then if I edit the view anyhow (even though it says it cannot be saved since it's locked I get this error:
Fatal error: Call to a member function validate() on a non-object in www/sites/all/modules/views/includes/admin.inc on line 910

So therefore the view cannot be edited at all until this is resolved. Please look into it asap.
Thanks so much!