Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2013 at 09:41 UTC
Updated:
9 Oct 2013 at 23:52 UTC
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
Comment #1
zterry95 commentedEntityMalformedException: 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:21Not sure it's the problem of bean or entity translation. let's keep a record here.
Comment #2
saltednutDoes the same pattern repeat when adding field collections to nodes or any other fieldable entity that isn't Bean?
Comment #3
zterry95 commentedwe use field collection on node, and there won't be such kinds of error when we try to translate.
Comment #4
saltednutAre 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.
Comment #5
zterry95 commentedLately we update bean to latest dev and the problem looks fixed.
However, thanks for your response and help on this.
Comment #6
dafederI'm having the same problem now and running latest bean dev. Going to try to eliminate other variables as suggested.
Comment #7
dafederYeah, same error on saving a node with a field collection. So, not a bean issue.
Comment #8
dafederAnyone struggling with this issue, see patch at https://drupal.org/node/1344672#comment-7784547