Error on new entity

Created on 3 January 2022, over 3 years ago
Updated 15 July 2025, 3 months ago

Problem/Motivation

Error when entity_print is called on new object not saved, like a node preview.

Steps to reproduce

- Install entity_print
- Add block or link entity_print
- Create node and preview before save

Proposed resolution

Skip entity_print if entity not set

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇫🇷France netsliver Chelles

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.

  • 🇦🇺Australia jannakha Brisbane!

    @netsliver I tested this bug on latest entity_print on Drupal 11.
    On preview of a new unsaved node - View PDF link is not rendered.
    Once node is saved, I edit it again, and View PDF link is rendered.

    there are no errors or warnings in logs.

    can you test it with latest version of entity_print and let me know if you're still having this issue?
    if there are errors - please provide logs and screenshots.

Production build 0.71.5 2024