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.
Hi
I am using this module together with I18n 7.x 1.5 and I replace the taxonomy's name field, in order ot be able to translate it.
All the names appear blank in views and whenever I edit them they appear blank in the taxonomy terms list. They only appear correcltly in the taxonomy term edit form.
I am getting this error in my log:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain()
Any ideas?
Comments
Comment #1
elyobo CreditAttribution: elyobo commentedSame thing happening for me. Tried upgrading to the dev release, but the same process occurs.
Comment #2
elyobo CreditAttribution: elyobo commentedI've had time to look at this a little more and I've noticed that the problem only occurs when the replacement title field is translatable using entity translation; marking the field as not translatable, or disabling the entity translation module entirely makes the problem go away.
Module versions -
This is the state of the database after a faulty insert; I have two languages, Thai and English, with the default being English. No name gets stored in taxonomy_term_data or under the "und" langauge, but it does get stored in the "en" language. Things seem to work correctly for the description, although that has also been replaced.
Please let me know if there is any further information I can give to assist in debugging this.
Comment #3
elyobo CreditAttribution: elyobo commentedAh, this is probably a duplicate of #1456186: Interaction of entity, entity_translation & title on entities without a language property..
Comment #4
elyobo CreditAttribution: elyobo commentedSee also the comments on #1376126: Fix language handling for translatable fields.
Comment #5
axe312 CreditAttribution: axe312 commentedi had the same issue.
in my case, the error happened because the entity translation for taxonomy terms was -not- enabled! so make sure it is enabled!
Comment #6
SandraVdv CreditAttribution: SandraVdv commentedSo what can we do about it? I still have this issue with latest dev release of title and ET 7.x-1.0-beta3... When I replace the name fields, they remain empty if I go to the edit page of a taxonomy term...
Maybe a solution can be described here?
Comment #7
philosurfer CreditAttribution: philosurfer as a volunteer and at Acquia commentedIf you stumble across this issue, Comment #5 is reported as working from a client.