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.
The patch that came out of #1462772, and more specifically https://drupal.org/files/entity_templates.patch, appears to break modules that do define their own entity templates.
An example is the Election module.
The custom template is never called despite it being registered by the module.
The exact error message:
EntityMalformedException: Missing bundle property on entity of type election_post. in entity_extract_ids()
Commenting out 'pattern' => $pattern in entity_theme() fixes the issue.
Comments
Comment #1
sdragnev CreditAttribution: sdragnev commentedI think this is a side-effect due to a non-standard entity implementation of the election module.
Related to this: https://www.drupal.org/node/1170198