The 3.0 stable version and dev give me an error when I create a new rules component and add a VBO condition (number of results) and when I try to load an entity object from a VBO view. This does not happen on other conditions or actions.

"An illegal choice has been detected. Please contact the site administrator."

Something breaks since the rule component does not appear in my view.

I´m running Drupal 7.17.

Comments

busla’s picture

Here´s the watchdog report.

Id Date Severi Typ Message
ty e
1492 10/Nov 04:19 error for Illegal choice in vocab element.
m
1491 10/Nov 04:19 notice php Notice: Undefined index: action::node_unpublish_by_keyword_action in views_bulk_operations_handler_field_operations->options_form() (line
107 of /Applications/MAMP/htdocs/tki.is/sites/all/
1490 10/Nov 04:19 notice php Notice: Undefined index: action::node_unpublish_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/vie
1489 10/Nov 04:19 notice php Notice: Undefined index: action::system_send_email_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/
1488 10/Nov 04:19 notice php Notice: Undefined index: action::node_save_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/views_bu
1487 10/Nov 04:19 notice php Notice: Undefined index: action::node_unpromote_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/vie
1486 10/Nov 04:19 notice php Notice: Undefined index: action::system_goto_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/views_
1485 10/Nov 04:19 notice php Notice: Undefined index: action::node_publish_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/views
1484 10/Nov 04:19 notice php Notice: Undefined index: action::node_promote_action in views_bulk_operations_handler_field_operations->options_form() (line 107 of
/Applications/MAMP/htdocs/tki.is/sites/all/modules/views
1483 10/Nov 04:19 notice php Notice: Undefined index: action::views_bulk_operations_argument_selector_action in
views_bulk_operations_handler_field_operations->options_form() (line 107 of /Applications/MAMP/htdocs/tki

bojanz’s picture

Status:Active» Closed (duplicate)
fozzy’s picture

Status:Closed (duplicate)» Active

Sorry, but I'm experiencing the very same problem and applying the fix in #1738226: Notice: Undefined index: action::node_assign_owner_action in options_form() doesn't solve it at all.

Maybe I'm wrong but I think this is not a duplicate, so I reactivate this one.

kenyan’s picture

Same with me on drupal 7.17. 'Fix' does not mitigate the issue:
I get:
Notice: Undefined index: action::node_unpublish_action in views_bulk_operations_handler_field_operations->options_form() (line 114 of /sites/all/modules/views_bulk_operations/views/views_bulk_operations_handler_field_operations.inc).

bojanz’s picture

Did you update VBO to 3.1?
There is an empty check on that line, a notice is now impossible.

kenyan’s picture

Just upgraded.
Error no longer appears. Thanks

bojanz’s picture

Status:Active» Closed (duplicate)
busla’s picture

I updated to 3.1 and I still get the error as in OP.

The Watchdog message is: Illegal choice in vocab element.

busla’s picture

Status:Closed (duplicate)» Active

I´ve not re-opened an issue before so please be nice if I´m making a mistake :-)

busla’s picture

Version:7.x-3.x-dev» 7.x-3.1
bojanz’s picture

Sounds unrelated. If your debug digs up any clues, feel free to provide them. Otherwise I won't be able to debug this.

bojanz’s picture

Status:Active» Closed (cannot reproduce)

No further info provided. Reopen if you can point to the offending line, or provide a patch.
Also consider http://drupal.org/project/views_rules as an alternative.

tuccio’s picture

Version:7.x-3.1» 7.x-3.x-dev
Status:Closed (cannot reproduce)» Active

I am getting this error

An illegal choice has been detected. Please contact the site administrator.

whenever trying to load a VBO list from Rules.
The relevant Watchdog entries are:

  1. php Notice: Undefined offset: 0 in eval() (line 2 of .../sites/all/modules/views/plugins/views_plugin_argument_default_php.inc(53) : eval()'d code).
  2. php Notice: Trying to get property of non-object in eval() (line 2 of .../sites/all/modules/views/plugins/views_plugin_argument_default_php.inc(53) : eval()'d code).
  3. form error: Illegal choice all in type element.