Unable to add a new block to layout

Created on 3 September 2024, 3 months ago
Updated 19 September 2024, 2 months ago

Problem/Motivation

After update to version 2.0.8, I am not able to add any blocks in the layout builder page, due to the following error:
AssertionError: Cannot load the "block_content_type" entity with NULL ID. in assert() (line 261 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php)

Tracing this further leads to
Undefined array key 1 in seeds_layouts_preprocess_links__seeds_lb() (line 537 of seeds_layouts/seeds_layouts.module)
and in v 2.x-dev
Undefined array key 1 in seeds_layouts_preprocess_links__seeds_lb() (line 545 of seeds_layouts/seeds_layouts.module)

Proposed resolution

I may be having a bad block causing this. However, it would still be good to validate the value of $block_id before going further.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇯🇴Jordan Firnas

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

Comments & Activities

Production build 0.71.5 2024