InvalidArgumentException: Invalid UUID "<some_uuid>" in Drupal\layout_builder\Section->getComponent()

Created on 21 December 2023, about 1 year ago

When we remove any block from layout , it automatically not disappear. When I click remove option second time
Below error come:
InvalidArgumentException: Invalid UUID "" in Drupal\layout_builder\Section->getComponent() (line 196 of C:\xampp\htdocs\D10\docroot\core\modules\layout_builder\src\Section.php).

Actual behavior should when remove block , block and right hand side remove confirmation block should disappear automatically

🐛 Bug report
Status

Needs work

Version

10.2

Component
Layout builder 

Last updated 1 day ago

Created by

🇮🇳India arif.zisu Kolkata

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

Comments & Activities

  • Issue created by @arif.zisu
  • Status changed to Closed: cannot reproduce about 1 year ago
  • Status changed to Active 9 months ago
  • 🇺🇸United States mark_fullmer Tucson

    I am not able to reproduce this error on a Drupal core installation using Layout Builder.

    I *am* able to reproduce it when using the module Layout Builder Iframe Modal. Steps to reproduce:

    Setup:
    - Drupal 10.2.x
    - Installed "Layout Builder" & configured a content type to use it
    - Installed contrib module "Layout Builder iFrame Modal"

    1. Create a Layout Builder-enabled node.
    2. Add an inline block to the layout (e.g., Basic block).
    3. From the Layout tab, use the context edit icon and choose "Remove"
    4. Confirm removal from the prompt.
    5. Save the layout.
    6. The block is successfully removed, however, the logs show InvalidArgumentException: Invalid UUID in Drupal\layout_builder\Section->getComponent() (/core/modules/layout_builder/src/Section.php).

    The referring URL in the log message establishes this is coming from Layout Builder iFrame Modal's redirect logic:

    /layout_builder/remove/block/overrides/node.1/0/main/312e8b8c-a795-4ddf-a7f5-668eaf1ecb40?destination=%2Flayout_builder_iframe_modal%2Fredirect

  • 🇺🇸United States mark_fullmer Tucson
  • 🇺🇸United States mark_fullmer Tucson
  • Status changed to Needs work 8 months ago
Production build 0.71.5 2024