LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break

Created on 27 August 2024, 4 months ago

LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 147 of /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php).

I received this error while trying to view a page on my site. Note that I recently moved to drupal 10.3.2. My error logs show the culprit here: /modules/contrib/label_help/label_help.module(355)

Simply changing that line from:
return $renderer->renderRoot($element);

To:
return $renderer->render($element);

Seems to fix the problem, but I haven't had time to test more thoroughly.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States seattlehimay

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

Comments & Activities

Production build 0.71.5 2024