Trying to geocode nodes using drush and the patch #2077317: Add a --limit,--only-entity, and --only-bundle option to drush command, enable for any entity gave me several errors which I eventually tracked down to revisioning_node_update():

WD node: EntityMalformedException: Propriété de bundle manquante sur l'entité de type node. in entity_extract_ids() (line 7734 of /home/httpv/drupal7/includes/common.inc).
WD php: EntityMalformedException: Propriété de bundle manquante sur l'entité de type node. in entity_extract_ids() (line 7734 of /home/httpv/drupal7/includes/common.inc).
EntityMalformedException : Propriété de bundle manquante sur l'entité de type node. dans entity_extract_ids() (ligne 7734 dans /home/httpv/drupal7/includes/common.inc).
Drush command terminated abnormally due to an unrecoverable error.

The function drush_geocoder_backfill() sets $entity->original = array(), which works fine everywhere else but causes problems with this module. geocoder can't just unset that or set it to NULL because that would make node_save() think it should create a new revision, which isn't correct.

I know I'm asking for a patch that will make another experimental patch work from another module, but all this needs is a very simple, safe test and I think it's reasonable to include it.

I think this may also be related to #2021107: Undefined property errors in combination with User Points, but I don't use the user points module and can't test it.

Comments

mvc’s picture

Status: Active » Needs review
StatusFileSize
new643 bytes

  • Commit 1e5b344 on 7.x-1.x authored by mvc, committed by RdeBoer:
    Patch for [#2276657]
    
rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Needs review » Fixed

Patch applied with attribution.
Thanks mvc!
Rik

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.