VBO showing error when using Drupal Commerce I am getting the following error on a white page after using VBO and Drupal Commerce - 


  *Call to a member function aggregate() on a non-object in
  .../sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module
  on line 764*


I upgraded to Drupal Commerce 7.x-1.x-dev and am running the latest version VBO and Commerce Stock

Whenever I try to perform any Bulk operation, like deleting a bunch of products or changing the order status, I get the error

I have looked at the issue, which discusses an issue with Commerce Stock and empty fields, but the solution found doesn't apply because all the stock levels have values.

Does anybody have any suggestions?

PS: I am not sure if this is a red herring, but I also am occasionally getting this message on the module admin page:


  *Notice: Undefined index: step in
  views_bulk_operations_form_validate() (line 621 of
  /var/www/html/nidadev/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
  Notice: Undefined index: step in views_bulk_operations_form_submit()
  (line 664 of
  /var/www/html/nidadev/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
  Notice: Undefined index: select_all_pages in
  views_bulk_operations_form_submit() (line 711 of
  /var/www/html/nidadev/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
  Notice: Undefined index: operation in
  views_bulk_operations_form_submit() (line 713 of
  /var/www/html/nidadev/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).*
I flushed out the database, and started with a new fresh version of VBO.