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.
After using the same setup of collection field for another language (on another D7 installation), it seems impossible to translate the field, nor by the translation UI, nor by overwriting the label in another language.
When trying to save the updated label (domain.com/admin/structure/field-collections/field-ingredients/fields/field_myfield
), I'm getting the following notice:
Attempt to update field MyField failed: field_sql_storage cannot change the schema for an existing field with data.
I've tried this patch to no avail. How can I solve this?
Comment | File | Size | Author |
---|---|---|---|
#1 | Afbeelding 2.png | 160.64 KB | knalstaaf |
Comments
Comment #1
knalstaaf CreditAttribution: knalstaaf commentedI solved this by doing the following:
Regarding saving special characters in MySQL BLOB files
E.g.:
s:x
-> the "x" should be the amount of characters that are used in the name of (in this case) the label. But when using a special character (like é), you should add one extra. Each special character equals 2. So for "Qualité", for instance, this would be:s:9:"Quantité";
- eventhough that word only counts 8 characters for the naked eye.Comment #2
jmuzz CreditAttribution: jmuzz commentedGlad you fixed your issue.
Also note that support for multilanguage was added to field collection after this was opened.