I am getting the following error when I try to re-create a feature while this module is enabled.

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND (machine_name IS NOT NULL ) AND (machine_name != '') ORDER BY type ASC, ' at line 2: SELECT n.nid AS nid, n.title AS title, n.type AS type, w.machine_name AS machine_name FROM {node} n INNER JOIN {webform} w ON n.nid = w.nid WHERE (type IN ()) AND (machine_name IS NOT NULL ) AND (machine_name != :db_condition_placeholder_0) ORDER BY type ASC, title ASC; Array ( [:db_condition_placeholder_0] => ) in webform_features_export_options() (Line 24 in sites/all/modules/contrib/webform_features/webform_features.features.inc).

From what I can tell this is caused because in my case webform_variable_get('webform_node_types'); returns an empty array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jojonaloha created an issue. See original summary.

jojonaloha’s picture

Attached patch checks that webform_variable_get('webform_node_types'); is not empty before running the query. Also attaching a file with whitespace diffs ignored.