Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | handle_missing_original_entity-2395359-2.patch | 588 bytes | Gold |
Comments
Comment #1
lizzjoyHi @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.
Comment #2
GoldI 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.
Comment #3
drunken monkeySeems 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.