Not much more to say really. Fatal error, white screen, can't revert the feature.

CommentFileSizeAuthor
#4 features.current_view_delete.patch791 bytesbrad.bulger

Comments

aleksey.tk’s picture

The same for me.

mrfelton’s picture

To 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.

christianchristensen’s picture

Have 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?).

brad.bulger’s picture

StatusFileSize
new791 bytes

ah, 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.

yhahn’s picture

Status: Active » Fixed

http://drupalcode.org/viewvc/drupal/contributions/modules/features/inclu...

Apparently I committed this in my sleep. Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yuriy.babenko’s picture

Version: 6.x-1.x-dev » 7.x-1.0-beta6
Status: Closed (fixed) » Active

Experiencing 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 1560

hefox’s picture