Closed (fixed)
Project:
Features
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 17:20 UTC
Updated:
28 Mar 2012 at 22:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
aleksey.tk commentedThe same for me.
Comment #2
mrfelton commentedTo add to this, I had developed the feature locally and then rolled out to another machine. I then (locally) added a couple more views to the feature, and tried to run revert on the other machine to push out the update. From a quick look at the code it looks like it tries to delete and recreate the views. So, the problem lies in trying to delete a view that doesn't exist yet (a new view), in order to recreate it. So, you should probably check that the view is actually a view before trying to delete/revert it.
Comment #3
christianchristensen commentedHave you tried a good cache clear? - we did a drush clear cache and the views clear cache...
The features then were in a non-overridden state (looks like the views code might have been stuck in a cache?).
Comment #4
brad.bulger commentedah, i ran into this too, thought it was some unique thing i had messed up. just checking for a not-false value of current_view fixed it. i did not try clearing the cache first, though.
Comment #5
yhahn commentedhttp://drupalcode.org/viewvc/drupal/contributions/modules/features/inclu...
Apparently I committed this in my sleep. Thanks for the patch.
Comment #7
yuriy.babenko commentedExperiencing the same error w/ the D7 module. Same scenario - reverting views within a feature.
PHP Fatal error: Call to a member function delete() on a non-object in /sites/all/modules/views/views.module on line 1560Comment #8
hefox commented#1264826: revert views calls views delete() & throws a fatal error