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!
Comment | File | Size | Author |
---|---|---|---|
#7 | 1018174-style-row_class.patch | 824 bytes | dawehner |
#2 | views_uses_row_class.patch | 780 bytes | jmiccolis |
Comments
Comment #1
infojunkieThe "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?.
Comment #2
jmiccolis CreditAttribution: jmiccolis commentedIt 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.
Comment #3
jcarlson34 CreditAttribution: jcarlson34 commentedThanks for the code jmiccolis. This really helped getting rid of those errors during VBO operations.
Comment #4
Jon Betts CreditAttribution: Jon Betts commentedI'm not sure what the patch in #2 does, but it removed the VBO error messages for me too. Thanks, @jmiccolis!
Comment #5
deepbluesolutions CreditAttribution: deepbluesolutions commentedI agree, after applying #2 the undefined error disappeared
Comment #6
vasikesubscribe. #2 seems to solve it
Comment #7
dawehnerThis makes sense.
Here is a patch for 6.x-3.x
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to 6.x and 7.x (had to modify the 7.x patch)