I'm intermittently receiving the following error on field_collection_items within nodes. I found a similar issue, with a different line number given, and one of the fixes got rid of the error, but didn't actually fix functionality.
Full error returned by Drupal:
EntityMalformedException: Missing bundle property on entity of type field_collection_item. in entity_extract_ids() (line 7562 of /[path to drupal]/includes/common.inc).
I spent about 3 hours messing with it and uploading a fresh version of the module ended up fixing it. Today the exact same error returned, but a fresh install of the module didn't fix the problem. Has anyone else been having this issue or can possibly help me out? Drupal version is 7.15.
Comments
Comment #1
unholyknight commentedLooks like it was only happening on one node. Not exactly sure why, but deleting it and recreating it fixed the issues.
Comment #2
monsoon commentedI have same issue. This error is found on many lines.
EntityMalformedException: Missing bundle property on entity of type field_collection_item. in entity_extract_ids() (line 7562 of /home/wbusle/public_html/includes/common.inc).
Comment #3
jweowu commentedFor me, this appears to have been a bug/conflict with the entityconnect module.
With both entityconnect and field_collection on the latest dev releases, the issue has gone away.
Comment #4
sinini commentedi solved the error by updating EVA to Version 7.x-1.2...
Comment #5
bleen commentedWe are seeing this issue only after updating from 7.x-1.0-beta4 to beta5 ... we do not have EVA, nor entityconnect installed we are using entity_reference and entityreference_live_preview though fwiw.
reverting to beta 4 is our current workaround
note: changing the priority based on http://drupal.org/node/45111
Comment #6
bleen commentedI tracked down my issue to this here: #1875836: Check "controller class base" as well as "controller class" when checking for EntityAPIControllerInterface
Comment #7
liquidcms commentedi get this error when trying to update a collection from directly within a node view (i.e. edit just the collection; not full node edit)
i originally was getting this error when i was on beta4-dev (from June):
DatabaseTransactionNoActiveException: in DatabaseConnection->rollback() (line 1019 of E:\wamp\www\boma\includes\database\database.inc).but then updated to beta5 and i now get error reported here.
i tried patch linked in #6 above and that does not fix.
also of interest, the collection i am trying to update has nested collections, another collection within that same node does not and it updates fine.
Comment #8
damienmckennaA related issue that was closed as the problem could not be reliably reproduced: #1281974: Missing bundle property on entity - related to translations
FYI we (Mediacurrent) are also seeing this on a site (originally built by someone else) that has nested collections, but we're seeing it on the node-add form rather than editing existing content.
Comment #9
jmuzz commentedI believe the other ticket is the same issue and there is much more information there. #1281974: Missing bundle property on entity - related to translations