Needs work
Project:
Webform References
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2016 at 10:32 UTC
Updated:
19 Jul 2018 at 15:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sinn commentedPatch is attached
Comment #4
sinn commentedComment #5
jrochate commentedWith i18n you can translate terms better way. Check the patch in attach.
Comment #7
thomas.wardin commentedSuspect the behaviour to be caused by my site to hold taxonomy in de and en.
When I add a term ref component to my webform, I get this error:
Warning: Illegal offset type in isset or empty in taxonomy_get_tree() (Zeile 1123 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1124 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1125 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1126 von ../modules/taxonomy/taxonomy.module).
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 (t.language IN ('de', 'und')) ORDER BY t.weight ASC, t.name ASC' at line 2: SELECT t.*, h.parent AS parent FROM {taxonomy_term_data} t INNER JOIN {taxonomy_term_hierarchy} h ON h.tid = t.tid WHERE (t.vid IN ()) AND (t.language IN (:db_condition_placeholder_0, :db_condition_placeholder_1)) ORDER BY t.weight ASC, t.name ASC; Array ( [:db_condition_placeholder_0] => de [:db_condition_placeholder_1] => und ) in taxonomy_get_tree() (Zeile 1138 von ../modules/taxonomy/taxonomy.module).
and the component is not added to the form.
Patch (manually applied) did not help.
Comment #8
ludo.rI'm having the exact same issue with nodes.
Comment #9
arnaud-brugnon commentedLike not everyone have translated website, i would like to purpose a better patch
Comment #10
arnaud-brugnon commentedComment #12
berramou commented#9 works for me.
Thanks @arnaud-brugnon.