Problem/Motivation

Fatal error when rendering blocks with #lazy_builder content:
AssertionError: When a #lazy_builder callback is specified, no properties can exist; all properties must be generated by the #lazy_builder callback. You specified the following properties: #attributes. in assert() (line 390 of core/lib/Drupal/Core/Render/Renderer.php).

Proposed resolution

Do not add attributes for #lazy_builder blocks.

Issue fork bootstrap5-3545265

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

edwardsay created an issue. See original summary.

jannakha made their first commit to this issue’s fork.

jannakha’s picture

Status: Needs review » Reviewed & tested by the community

Steps to reproduce
Add the block "Shortcuts" to the page (it uses lazy_builder)

MR tested and fix works.
Thank you for your contribution.

Created MR to fix v4.x .
Please release.

vladimiraus’s picture

Version: 3.0.14 » 3.0.x-dev
Status: Reviewed & tested by the community » Fixed

Thank you! Committed. 🍻

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • vladimiraus committed bb0ad13c on 3.0.x
    feat: #3545265 Do not add attributes to #lazy_builder blocks.
    
    By:...

  • vladimiraus committed bb0ad13c on 4.0.x
    feat: #3545265 Do not add attributes to #lazy_builder blocks.
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.