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.
Comment | File | Size | Author |
---|---|---|---|
#2 | webform_features-pdoexception-2735317-2-ignore-whitespace.txt | 894 bytes | jojonaloha |
#2 | webform_features-pdoexception-2735317-2.patch | 2.15 KB | jojonaloha |
Comments
Comment #2
jojonaloha CreditAttribution: jojonaloha at Metal Toad commentedAttached patch checks that
webform_variable_get('webform_node_types');
is not empty before running the query. Also attaching a file with whitespace diffs ignored.