Error when blocks placed in layout builder

Created on 6 May 2025, about 1 month ago

Problem/Motivation

When I place the AI Search block and AI Search Response block in layout builder (placed in same section), I get the following error: 'There was an error fetching your data'.
If I place the blocks via block layout, it works correctly.

Steps to reproduce

  1. Drupal 11.
  2. Create a page with layout builder.
  3. Add AI Search block and AI Search Response block in a section.

Note: when I debug the AiSearchBlockController.php::search() method, when the blocks are placed in layout builder $block is null (though $block_id does have a value, for example, "9ab3d238-8d72-4f5e-826a-63c7a21fdfc1".
I tested with 1.0.0-rc2 and 1.0.x-dev.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States akempler

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

Comments & Activities

Production build 0.71.5 2024