1. create a view with a datefield
2. modify the vbo view to modify node fields

When I add a cck datetime field I get the errors below but when I remove the cck datetime field the vbo action takes place

warning: array_fill() [function.array-fill]: Number of elements must be positive in /var/aegir/platforms/Modules_Directory/contrib-core-1/views_bulk_operations/fields.action.inc on line 101.
warning: array_map() [function.array-map]: Argument #3 should be an array in /var/aegir/platforms/Modules_Directory/contrib-core-1/views_bulk_operations/fields.action.inc on line 101.
warning: implode() [function.implode]: Invalid arguments passed in /var/aegir/platforms/Modules_Directory/contrib-core-1/views_bulk_operations/fields.action.inc on line 102.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT type FROM node WHERE nid IN () in /var/aegir/platforms/Modules_Directory/contrib-core-1/views_bulk_operations/fields.action.inc on line 102.
The selected nodes do not have any editable fields. Please select other nodes and try again.

Comments

Encarte’s picture

I get a similar error when using the option «All (all pages)». If I select just some rows on the selection page or the option «All (this Page)», there is no problem. This was a test using Views Bulk Operations (VBO) 6.x-1.x-dev (2011-Set-23) with Views 6.x-2.x-dev (2011-Set-01). Note that its happening with taxonomy and not with fields.

The error message:

warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/b/public_html/sites/all/modules/views_bulk_operations/actions/taxonomy.action.inc on line 120.
warning: array_map() [function.array-map]: Argument #3 should be an array in /home/b/public_html/sites/all/modules/views_bulk_operations/actions/taxonomy.action.inc on line 120.
warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/b/public_html/includes/database.inc on line 252.
warning: implode() [function.implode]: Invalid arguments passed in /home/b/public_html/includes/database.inc on line 252.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT v.vid FROM vocabulary_node_types v LEFT JOIN node n ON v.type = n.type WHERE n.nid IN () in /home/b/public_html/sites/all/modules/views_bulk_operations/actions/taxonomy.action.inc on line 122.
The selected nodes are not associated with any vocabulary. Please select other nodes and try again.

bojanz’s picture

Status: Active » Closed (duplicate)

Let's continue this in #1296626: Select All (All Pages) is hopelessly broken, since it has more people reporting the same error with the latest code.