Hi,
I am using bean to create a new bean type, and there is a field collection field in this type.

Then I enable entity translation module and enable translaltion for bean.

it works well and there is translation tab in the content view page.

but while I add translation for current content , there will be fatal error.

If you need more detail, I will be glad to show you.

Comments

zterry95’s picture

EntityMalformedException: Missing bundle property on entity of type field_collection_item. in entity_extract_ids() (line 7633 of /var/www/XXX/includes/common.inc). Backtrace:
entity_extract_ids('field_collection_item', NULL) field.attach.inc:191
_field_invoke('extract_form_values', 'field_collection_item', NULL, Array, Array, Array) field.attach.inc:386
_field_invoke_default('extract_form_values', 'field_collection_item', NULL, Array, Array) field.attach.inc:823
field_attach_form_validate('field_collection_item', NULL, Array, Array) field_collection.module:1686
field_collection_field_widget_embed_validate(Array, Array, Array) form.inc:1410
_form_validate(Array, Array) form.inc:1296
_form_validate(Array, Array) form.inc:1296
_form_validate(Array, Array) form.inc:1296
_form_validate(Array, Array, 'bean_form') form.inc:1134
drupal_validate_form('bean_form', Array, Array) form.inc:846
drupal_process_form('bean_form', Array, Array) form.inc:374
drupal_build_form('bean_form', Array) form.inc:131
drupal_get_form('bean_form', Object) bean.pages.inc:23
bean_edit(Object) 
call_user_func_array('bean_edit', Array) entity_translation.module:666
_entity_translation_callback('bean_edit', Array, Array) entity_translation.module:655
entity_translation_add_page('bean', Object, 'en', 'zh-hans', Array, Object) 
call_user_func_array('entity_translation_add_page', Array) menu.inc:517
menu_execute_active_handler() index.php:21

Not sure it's the problem of bean or entity translation. let's keep a record here.

saltednut’s picture

Status: Active » Postponed (maintainer needs more info)

Does the same pattern repeat when adding field collections to nodes or any other fieldable entity that isn't Bean?

zterry95’s picture

we use field collection on node, and there won't be such kinds of error when we try to translate.

saltednut’s picture

Are there any other fieldable entities that are provided via Entity API?

Hmm... I supposed you could test this by adding a Field Collection to another Field Collection.

Just trying to identify if this is something in Bean or the Entity API itself.

zterry95’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Lately we update bean to latest dev and the problem looks fixed.

However, thanks for your response and help on this.

dafeder’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I'm having the same problem now and running latest bean dev. Going to try to eliminate other variables as suggested.

dafeder’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Yeah, same error on saving a node with a field collection. So, not a bean issue.

dafeder’s picture

Anyone struggling with this issue, see patch at https://drupal.org/node/1344672#comment-7784547