Notice: Undefined property: stdClass::$translations in commerce_product_ui_form_commerce_product_ui_product_form_alter() (line 474 of drupal_path/sites/all/modules/contrib/commerce/modules/product/commerce_product_ui.module).
Notice: Trying to get property of non-object in commerce_product_ui_form_commerce_product_ui_product_form_alter() (line 486 of drupal_path/sites/all/modules/contrib/commerce/modules/product/commerce_product_ui.module).
Warning: Invalid argument supplied for foreach() in commerce_product_ui_form_commerce_product_ui_product_form_alter() (line 486 of drupal_path/sites/all/modules/contrib/commerce/modules/product/commerce_product_ui.module).
These are the errors that the system throws on the Create a product form for a product type that have Multilingual support Enabled via Entity translation.
No errors on edit products.
It seems that the Commerce Product UI assumes that this (translations) data exists, BUT at the moment 0 of the Product it doesn't exist.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1597946.entity_translation.patch | 1.82 KB | rszrama |
| #1 | Entity_translation_integration_error-1597946-1.patch | 788 bytes | vasike |
Comments
Comment #1
vasikethis could be a solution
Comment #2
stan turyn commented#1 works for me.
Thanks, vasike
(BTW, 1.3 is also affected by this, not just dev)
Comment #3
vasikei think we can consider tested.
Comment #4
rszrama commentedPutting up a different approach for testing that instead uses the entity translation handler directly instead of hard-coding assumptions about the translations key and duplicating a default translations object.
Comment #5
rszrama commentedTest bot says we're clear, so committing. Please reopen if you still have any trouble here.
Comment #6
vasiketest the last dev. error vanished.
so i think fixed (to closed) it's the right status for the issue.
Comment #8
jalves commentedHi,
i'm trying to apply the patch on 1.3 version, no success... is there a new patch?
Comment #9
rszrama commentedThis patch has already been committed to 1.x-dev. It's likely some intermediate patch between 1.3 and the time I committed it affected the same code. You could just update to the latest dev. No need to reopen this.
Comment #10
jalves commentedThank you! Just upgraded and it's solved.