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

Created on 29 July 2024, 4 months ago

Problem/Motivation

I first had the issue Deprecated function: substr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\bootstrap_layout_builder\Entity\Breakpoint->getClassByPosition() (line 124 of /home/public_html/modules/contrib/bootstrap_layout_builder/src/Entity/Breakpoint.php). which was reported here 🐛 Deprecated substr error when configuring columns of a section Needs review . I applied the patch from that issue and that issue was resolved but the module still stayed buggy. If I save or update a block it stays as if nothing happened but if I close the dialog box and save the page, the block would be added on the page. Then this error would be logged, LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 147 of /home/public_html/core/lib/Drupal/Core/Render/Renderer.php).

I tried uninstalling bootstrap_layout_builder and tried adding sections and still got this error logged so can't tell if the issue is coming from this module or Drupal core.

I am using Drupal 10.3.1.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇬Nigeria chike Nigeria

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

Comments & Activities

Production build 0.71.5 2024