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

Created on 21 December 2023, 6 months ago
Updated 17 April 2024, 2 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 2 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 6 months ago
  • Status changed to Active 3 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 2 months ago
Production build 0.69.0 2024