EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7721 on apache solr search
Referred: https://www.drupal.org/node/1402270
#23 also worked for me but after some days it starts coming back. Do you guys also having the same problem of entity malformed that appear after some days back, if not then what solution you adopted to fix this. Please assist.
Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lizzjoy’s picture

Title: Request for 'not a spammer' role » EntityMalformedException: Missing bundle property on entity of type node.
Project: Drupal.org site moderators » Search API
Version: » 7.x-1.x-dev
Component: User account » Views integration
Related issues: +#1402270: ResponseText: EntityMalformedException: Missing bundle property on entity of type profile2

Hi @nehasinghaniya21, since your issue is not about 'not-a-spammer' role, and you are looking for help, I'm moving this issue to the project queue.

Gold’s picture

Status: Active » Needs review
FileSize
588 bytes

I am also seeing this issue. For me it is occurring during a migrate_d2d run.

I've tracked it to $entity->original being empty. entity_extract_ids($entity_type, $entity) requires $entity to be set. The attached patch swaps out isset() for !empty(). It's working for me.

drunken monkey’s picture

Status: Needs review » Closed (duplicate)

Seems like a duplicate of #2550599: Code in hook_entity_update can cause EntityMalformedException.? Please test with the latest module version.
And sorry I didn't see this earlier, seems I wasn't following it for some reason.