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.

Comments

ibot’s picture

Assigned: ibot » Unassigned
Status: Active » Needs work
StatusFileSize
new2.28 KB

This sets some warning where the error is triggered.
(Quick and dirty)

chefnelone’s picture

same problem here.

GDrupal’s picture

Issue summary: View changes
Status: Needs work » Closed (cannot reproduce)

The current code avoid this issue.