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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nicola85’s picture

andrebonfanti’s picture

The 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

b_sharpe’s picture

I 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.

kenorb’s picture

b_sharpe’s picture

Status: Active » Needs review

The last submitted patch, 1: entity_translation_options_field.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 3: entity_translation-2452441-3.patch, failed testing.

b_sharpe’s picture

jordanddisch’s picture

#8 worked for me with 7.x-1.0-beta5

Status: Needs review » Needs work

The last submitted patch, 8: entity_translation-2452441-8.patch, failed testing.

The last submitted patch, 8: entity_translation-2452441-8.patch, failed testing.

samerali’s picture

#8 worked for me with 7.x-1.0-beta6

samerali’s picture

Status: Needs work » Reviewed & tested by the community
samerali’s picture

I think this is a critical bug and we probably need to merge patch #8 the tests errors are probably not related to this patch

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 8: entity_translation-2452441-8.patch, failed testing. View results

plach’s picture

Sorry, we need a green patch before considering committing it.