Infinite loop in LayoutParagraphsAllowedTypesSubscriber

Created on 24 October 2023, 8 months ago
Updated 25 October 2023, 8 months ago

I'm updating from 1.x to 2.x and I'm finding that the content doesn't really migrate well, upon saving it just disappears, and when trying to recreate, I find an endless loop in LayoutParagraphsAllowedTypesSubscriber::typeRestrictions, on the lines

    while ($parent = $layout->getComponentByUuid($parent_uuid)) {
      $depth++;
      $parent_uuid = $parent->getParentUuid();
    }

Commenting those out, allows me to add content to the pages but deleting sections throws a memory error, which is again due to a recursive issue:

    $this->layoutParagraphsLayout->deleteComponent($this->componentUuid, TRUE);

1.x for D9 worked very well, I'm having this on D10 with 2.x,

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain pcambra Spain, πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.69.0 2024