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.
Cannot unset string offset in modules/field/field.default.inc on line 41
Step to reproduce:
1 - Add a field of type List to a Commerce Product (required field)
2 - Enable entity translation for the entity Product
3 - Create a new Product and Save
Comment | File | Size | Author |
---|---|---|---|
#8 | entity_translation-2452441-8.patch | 2.14 KB | b_sharpe |
#3 | entity_translation-2452441-3.patch | 2.15 KB | b_sharpe |
#1 | entity_translation_options_field.patch | 2.61 KB | nicola85 |
Comments
Comment #1
nicola85 CreditAttribution: nicola85 commentedComment #2
andrebonfanti CreditAttribution: andrebonfanti commentedThe same happens to me after I enable ET on existing products list.
My product type translatable fields are:
- "title" field
- "print_type" field (an entity reference to a vocabulary with ET enabled)
- "print_material" (an entity reference to a vocabulary with ET enabled)
My ET configuration is:
- default language = default language
- Hide language selector [OFF]
- Exclude Language neutral from the available languages [OFF]
- Prevent language from being changed once the entity has been created [OFF]
- Hide shared elements on translation forms [ON]
General conf:
ET 7.x-1.0-beta4
Drupal 7.35
PHP 5.3.29
Comment #3
b_sharpe CreditAttribution: b_sharpe commentedI can reproduce this as well.
The patch appears to work for the module 'list' types, but still receive the error using an entityreference field of either checkboxes/radios or Select list as well.
Re-rolled the patch to check for options widget instead.
Comment #4
kenorb CreditAttribution: kenorb commentedComment #5
b_sharpe CreditAttribution: b_sharpe commentedComment #8
b_sharpe CreditAttribution: b_sharpe commentedagainst current dev
Comment #9
jordanddisch CreditAttribution: jordanddisch commented#8 worked for me with 7.x-1.0-beta5
Comment #12
samerali CreditAttribution: samerali as a volunteer and at Lechleider Mitchell LLC commented#8 worked for me with 7.x-1.0-beta6
Comment #13
samerali CreditAttribution: samerali as a volunteer and at Lechleider Mitchell LLC commentedComment #14
samerali CreditAttribution: samerali as a volunteer and at Lechleider Mitchell LLC commentedI think this is a critical bug and we probably need to merge patch #8 the tests errors are probably not related to this patch
Comment #16
plachSorry, we need a green patch before considering committing it.