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

Created on 21 December 2023, 11 months ago
Updated 17 April 2024, 7 months ago

When removing any block from a layout, a PHP Error is logged.

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

🐛 Bug report
Status

Needs work

Version

1.3

Component
Layout builder 

Last updated about 3 hours 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 11 months ago
  • Status changed to Active 8 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 7 months ago
Production build 0.71.5 2024