EntityMalformedException: Missing bundle property on entity of type

Created on 30 November 2022, over 2 years ago
Updated 18 July 2025, 15 days ago

Problem/Motivation

On deleted nodes (presumably other entities) while not having entity_print permissions for the entire entity, /entityprint/node/nid produces "EntityMalformedException: Missing bundle property on entity of type node."

Steps to reproduce

Visit /entityprint/node/[any non-existent node id] while not having permission to entity_print any bundle.

Proposed resolution

In function entity_print_access(),

// Check for entity bundle access permission.
$entity = entity_load_single($entity_type, $entity_id);
+ if ($entity === FALSE) {
+ return FALSE;
+ }
list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity);

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States sveldkamp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024