When I view my page view that uses VBO, I get

* Notice: Undefined index: row_class in views_plugin_style->get_row_class() (line 104 of /public_html/sites/all/modules/views/plugins/views_plugin_style.inc).
* Notice: Undefined index: row_class in views_plugin_style->get_row_class() (line 104 of /public_html/sites/all/modules/views/plugins/views_plugin_style.inc).
* Notice: Undefined index: row_class in views_plugin_style->get_row_class() (line 104 of /public_html/sites/all/modules/views/plugins/views_plugin_style.inc).

(There are 3 messages, which probably correspond to the 3 nodes that appear in the view.)

If I go ahead and select the checkboxes for 2 of the nodes, then choose "Modify node taxonomy terms" and click Execute, I get

Recoverable fatal error: Argument 2 passed to db_query() must be an array, string given, called in /public_html/sites/all/modules/views_bulk_operations/taxonomy.action.inc on line 98 and defined in db_query() (line 2213 of /public_html/includes/database/database.inc).

The website encountered an unexpected error. Please try again later.

Anything I can do to help track this down or identify it further?

Thank you!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

infojunkie’s picture

Title: Undefined index and Recoverable fatal error » Undefined index: row_class in views_plugin_style->get_row_class()

The "undefined index" error is coming from a Views incompatibility issue. I'll track this one here.

The action "Modify node taxonomy terms" hasn't been ported to D7 yet. This is tracked at #1015164: Taxonomy terms actions in D7?.

jmiccolis’s picture

Project: Views Bulk Operations (VBO) » Views (for Drupal 7)
Component: Core » Miscellaneous
FileSize
780 bytes

It seems like views never checks to see if the plugin it's using supports row classes before attempting to utilize them, so I think this is a Views issue not VBO.

I'm not sure the attached patch checks for this in the best place, but it's better than nothing.

jcarlson34’s picture

Status: Active » Needs review

Thanks for the code jmiccolis. This really helped getting rid of those errors during VBO operations.

Jon Betts’s picture

I'm not sure what the patch in #2 does, but it removed the VBO error messages for me too. Thanks, @jmiccolis!

deepbluesolutions’s picture

I agree, after applying #2 the undefined error disappeared

vasike’s picture

subscribe. #2 seems to solve it

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Needs review » Reviewed & tested by the community
FileSize
824 bytes

This makes sense.

Here is a patch for 6.x-3.x

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x and 7.x (had to modify the 7.x patch)

Status: Fixed » Closed (fixed)

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