Improve errors messages from the rendering system

Created on 15 June 2015, over 9 years ago
Updated 15 September 2024, 3 months ago

I have been developing a few websites using D8 over the past few months. An error message I got a lot was this one:

Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("A stray drupal_render() invocation with $is_root_call = TRUE is causing bubbling of attached assets to break.") in "themes/example/templates/menu.html.twig" at line 36. in Twig_Template->displayWithErrorHandling() (line 328 of core/vendor/twig/twig/lib/Twig/Template.php).

In this case I tried to use an Object of Drupal\Core\Template\Attribute as the $attributes paramenter of the Drupal Twig Extension link()

The message doesn't really tell me what went wrong. I think this message appears in a lot of different cases. Can we improve it somehow?

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
RenderΒ  β†’

Last updated 4 days ago

Created by

πŸ‡¨πŸ‡­Switzerland Lukas von Blarer

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.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Improving error messages is always a good idea. There has been no activity here in the past 10 years to implement changes. By now, maybe the error messages have been improved.

    Is there any specific error messages to improve>

    If we don't receive additional information to help with the issue, it may be closed after three months.

Production build 0.71.5 2024