Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Tried to create Rule Action with same machine name as Rule. Got error message, and deleted the duplicate Rule Action.
Now when loading a View with a VBO, the View does not appear and this error message appears:
Fatal error: Call to a member function parameterInfo() on a non-object in /sites/all/modules/views_bulk_operations/plugins/operation_types/rules_component.inc on line 50
Flushed cache, did not fix problem.
Comments
Comment #1
itserich CreditAttribution: itserich commentedSolved - by deleting Bulk Operations field from the View and adding the field back to the View.
Comment #2
itserich CreditAttribution: itserich commentedComment #3
girishmuraly CreditAttribution: girishmuraly commentedI ran into the same problem and did the workaround suggested by @itserich at #1 which solved the problem. In doing so, I noticed the following change (removals) to my view, which suggests that there is a possible backward compatibility issue with the Rules component:
Reopening just in case we miss this potential backward compatibility issue.
Comment #4
bojanz CreditAttribution: bojanz commentedI don't understand what the potential backward compatibility issue is? Is anything not working?
Comment #5
girishmuraly CreditAttribution: girishmuraly commentedIts a weird case and I not sure where the error lies. Also the reproduceable steps are a bit vague as this was discovered by accident by another developer working with the same view while testing it. The steps are something like:
* Before upgrade to 3.0-rc1, there was a VBO view created that used rules components in 3.0-beta3
* After upgrade, edited the view to remove those components along with other changes to make way for the upgraded features of inbuilt actions of editing fields for content types.
* Re-exported view and saved into feature. Noticed that the rules components did not get removed in the export.
* View did not work (blank screened) with error:
* Deleted the Bulk operations field, re-added it and re-exported the view. This time it works.
* On the second import, the removal of rules components were noticed, as in #2
Like I said I'm not sure where the problem is, but did not want a bug to creep in if at all.
Comment #6
bojanz CreditAttribution: bojanz commentedOkay, that helped, I understand the problem now.
If a component is still enabled in VBO, and gets deleted, VBO chokes and dies because it's trying to load a component that no longer exists.
Looks like you failed to save the view when you disabled the component in VBO (or there was a problem with features, wrong view - possibly overriden - being loaded, etc), hence running into this bug (it doesn't appear for components that have been disabled in VBO field settings prior to deletion).
Note that just disabling a component in VBO does not remove it from the export, it just flips its "selected" variable.
Comment #7
bojanz CreditAttribution: bojanz commentedCommitted a fix:
http://drupalcode.org/project/views_bulk_operations.git/commitdiff/138ac40
Comment #8
girishmuraly CreditAttribution: girishmuraly commentedThanks @bojanz.
Comment #10
nicodv CreditAttribution: nicodv commentedThanks @itserich, I was about to get worried :P
nico