Since version 6.x-1.11, the following error occurs when trying to create an action on a Ruleset:

warning: Invalid argument supplied for foreach() in /usr/local/apache2/htdocs/drupal6/sites/all/modules/views_bulk_operations/actions/ruleset.action.inc on line 64.

If I ignore the warning, I get a fatal error on submit

Fatal error: Call to undefined function views_bulk_operations_ruleset_action_rules_order_workflow_submit() in /usr/local/apache2/htdocs/drupal6/modules/system/system.module on line 1564

If I roll back to 6.x-1.10 everything works fine again.

/Kevin

Comments

dkane’s picture

I am having the same issue as Kevin. Nice to know that rolling back solves the issue at least.

infojunkie’s picture

Assigned: Unassigned » infojunkie

Thanks for the report. Will work on it.

infojunkie’s picture

Can you explain at which point you see this error? Describe the step-by-step process please.
Also, what version of Views and Rules are you using?

bojanz’s picture

Status: Active » Postponed (maintainer needs more info)
kevin.mcnamee@mailbox.org’s picture

Status: Postponed (maintainer needs more info) » Active

Hi,

Views 6.x-3.x
VBO 6.x-1.13
Rules 6.x-1.4

I created the following Ruleset

array (
  'rule_sets' => 
  array (
    'rules_test_ruleset6' => 
    array (
      'arguments' => 
      array (
        'node' => 
        array (
          'label' => 'Content',
          'type' => 'node',
        ),
        'user' => 
        array (
          'label' => 'User',
          'type' => 'user',
        ),
      ),
      'label' => 'Test ruleset6',
      'status' => 'custom',
      'categories' => 
      array (
      ),
    ),
  ),
  'rules' => 
  array (
    'rules_test_rule' => 
    array (
      '#type' => 'rule',
      '#set' => 'rules_test_ruleset6',
      '#label' => 'Test rule',
      '#active' => 1,
      '#weight' => '0',
      '#categories' => 
      array (
      ),
      '#status' => 'custom',
      '#conditions' => 
      array (
      ),
      '#actions' => 
      array (
        0 => 
        array (
          '#weight' => 0,
          '#info' => 
          array (
            'label' => 'Test message',
            'label callback' => false,
            'module' => 'System',
            'eval input' => 
            array (
              0 => 'message',
            ),
          ),
          '#name' => 'rules_action_drupal_message',
          '#settings' => 
          array (
            'message' => 'Testing',
            'error' => 0,
            '#eval input' => 
            array (
              'token_rules_input_evaluator' => 
              array (
                'message' => 
                array (
                  0 => ':global',
                ),
              ),
            ),
          ),
          '#type' => 'action',
        ),
      ),
      '#version' => 6003,
    ),
  ),
)

Then I try to create an action from this Ruleset (or any Ruleset) and I get the error:

warning: Invalid argument supplied for foreach() in /usr/local/apache2/htdocs/drupal6/sites/all/modules/views_bulk_operations/actions/ruleset.action.inc on line 64.

/Kevin

uv516’s picture

Any news? - I have the same problem...

bojanz’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

VBO for D6 is no longer actively maintained. Reopen with a patch. Thanks.