Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using Term Reference Tree version 7.x-1.10 and i18n version 7.x-1.13 throws next issue:
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 461 of i18n_taxonomy.module)
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of \includes\entity.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 350 of \includes\entity.inc).
Comment | File | Size | Author |
---|---|---|---|
#10 | term_reference_tree-i18n_taxonomy_notice-2488406-10340311.patch | 678 bytes | a.dmitriiev |
Comments
Comment #1
darkothenew CreditAttribution: darkothenew commentedComment #2
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedThe problem is that taxonomy term tree widget doesn't return 'vid' (vocabulary ID) that is needed for i18n_taxonomy_term_name function to work.
The patch to fix it is attached
Comment #3
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedThe workaround until the patch is committed to the module:
Comment #4
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #6
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #7
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #8
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #10
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #11
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedComment #13
a.dmitriiev CreditAttribution: a.dmitriiev at 1xINTERNET commentedhttps://www.drupal.org/node/1514794