Thank you for this helpful module!
I just started using it, hitting this error:
Warning: Invalid argument supplied for foreach() in webform_localization_component_get_translations() (Zeile 35 von app/sites/default/modules/webform_localization/includes/webform_localization.component.sync.inc).
PDOException: 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 the right syntax to use near ')) AND (cid = '34') ORDER BY nid ASC' at line 2: SELECT webform_component.* FROM {webform_component} webform_component WHERE (nid IN ()) AND (cid = :db_condition_placeholder_0) ORDER BY nid ASC; Array ( [:db_condition_placeholder_0] => 34 ) in webform_localization_component_get_translations() (Zeile 44 von app/sites/default/modules/webform_localization/includes/webform_localization.component.sync.inc)
Surely this happened because i was not reading the README deep enough, but i think it could be useful to warn the user and avoid rising the exceptions.
Best,
T.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_localization-check-if-node-has-translation-1921052.patch | 2.28 KB | ibot |
Comments
Comment #1
ibot commentedThis sets some warning where the error is triggered.
(Quick and dirty)
Comment #2
chefnelone commentedsame problem here.
Comment #3
GDrupal commentedThe current code avoid this issue.