Problem/Motivation

After updating to drupal 9.1.* there is no way to get AMP pages running due to the following issue:

LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (Zeile 138 in .../core/lib/Drupal/Core/Render/Renderer.php).

AMP pages stoped working for all content types.

CommentFileSizeAuthor
#3 3196242-renderroot-fix.patch624 bytesfinex

Comments

pkmedi created an issue. See original summary.

finex’s picture

I'm experiencing the same error using Drupal 8.9.13. Amp is completely broken.

finex’s picture

StatusFileSize
new624 bytes
pkmedi’s picture

Well, many thanks - that did it!

mohammad-fayoumi’s picture

Status: Active » Needs review

I'm using amp project version 3.5 and faced this issue and patch #3 solved it.
Many thanks.

codewithlakshay’s picture

Thank-u so much, patch #3 works pretty well :)