I have Rules 6.x-1.0-beta4 installed, along with the Views and Views Bulk Operations modules. I want to create a rule to make changes to a node vocabulary when it is created, but everytime I want to save the action I get an empty page with the error message "Fatal error: Call to undefined function views_bulk_operations_taxonomy_action_submit() in ) my/site/docroot/sites/all/modules/rules/rules/modules/rules.rules.inc on line 377"

To reproduce:

  • Go to Administer - Rules - Triggered rules - Add a new rule
  • In "Event", choose "Node - After saving new content"
  • Add an action, and choose "Node - Modify node's taxonomy terms"
  • Choose the term(s) to add to the node
  • Click on "Save"
  • Get an error

The same goes if you try to replace terms applied to content when it is updated. Using Views Bulk Operations (latest stable version - 6.x-1.4) I can create a View and perform taxonomy updates on content without any error.

Comments

fago’s picture

Component: Rules Core » Rules Engine

hm, that's odd. This happens, as vbo includes the include file for the action only when hook_action_info() is called. However this does not happen when the form is saved as it's a multistep form, but also it wouldn't happen when the rules would be executed. So this would fail too.

So the only way to fix this would be invoking hook_action_info() every time rules executes or configures a rule, however this would cost performance on execution time! So I think the best fix for this would be just including all vbo action files when the vbo.rules.inc is included.

fago’s picture

mdupont’s picture

The above issue is fixed now. Any news?

fago’s picture

Status: Active » Fixed

thanks to #372114: Crash with "Modifying node's taxonomy terms" it should be fixed with a recent vbo module.

Status: Fixed » Closed (fixed)

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