With the full suite newly installed, I get these errors when visiting admin/workbench:

32023  30/Aug 11:14  notice   php  User notice: 'Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for th                                                  
32022  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32021  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in query() (line 1154 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32020  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32019  30/Aug 11:14  notice   php  User notice: 'Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for th                                                  
32018  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32017  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in query() (line 1154 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32016  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32015  30/Aug 11:14  notice   php  User notice: 'Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for th                                                  
32014  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32013  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in query() (line 1154 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32012  30/Aug 11:14  warning  php  Warning: Invalid argument supplied for foreach() in compile_fields() (line 1070 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32011  30/Aug 11:14  notice   php  Notice: Undefined property: views_plugin_query_default::$fields in query() (line 1152 of sites/all/modules/views/plugins/views_plugin_query_default.inc).                           
32010  30/Aug 11:14  notice   php  Notice: Undefined index: table in init_query() (line 716 of sites/all/modules/views/includes/view.inc).

(this is a drush ws dump so it's in reverse chronological order)

Comments

pjcdawkins’s picture

All of the errors trace back to the function workbench_content().

pontus_nilsson’s picture

Could this be related to the use of a older version of Views? What version of Views is in use on your site?

pjcdawkins’s picture

Status: Active » Closed (cannot reproduce)

Yes it could have been, I no longer have this problem.