'AssertionError: When a #lazy_builder callback is specified' on landing page.

Created on 14 June 2023, over 1 year ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

I have a clean Open Social installation, with Drupal 9.5.9. When I try to create a landing page with such a paragraph I have such error '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 334 of core/lib/Drupal/Core/Render/Renderer.php).'

Proposed solution

In social_activity_preprocess_block for views blocks is added logic for a lazy builder. But in core's rendered #attributes key is not supported (which is added in the theme's BootstrapPreprocess). So this PR is going to fix this issue.

πŸ› Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Vasyl Manachynskyi

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024