Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call.

Created on 12 July 2021, over 3 years ago
Updated 21 July 2024, 5 months ago

Problem/Motivation

I have a mail that is sent when a node is updated. This mail has a pdf as attachment. When the mail is triggered via node_save in drush, I'm receiving following errors:

[error] Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead.

Proposed resolution

Use renderPlain to render the header, footer, content.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium nils.destoop

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