Don't use \Drupal::service('renderer')->render()

Created on 13 August 2022, over 2 years ago
Updated 30 January 2024, 11 months ago

Problem/Motivation

ResponseText: The website encountered an unexpected error. Please try again later.LogicException: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead. in Drupal\Core\Render\Renderer->doRender() (line 244 of core/lib/Drupal/Core/Render/Renderer.php). Drupal\Core\Render\Renderer->render(Array, ) (Line: 377)

Steps to reproduce

Load a preview of the RSS output when building a view.

Proposed resolution

Fix the bug.

Remaining tasks

Fix the bug.

User interface changes

n/a

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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.

  • First commit to issue fork.
Production build 0.71.5 2024