Problem/Motivation

In some cases, I'm seeing [error] Call to protected method Drupal\layout_builder\SectionComponent::getConfiguration() from global scope when updating to 4.2.1. I note SectionComponent::getConfiguration() is a protected method.

Steps to reproduce

Update from 4.2.0 to 4.2.1

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gareth.poole created an issue. See original summary.

gareth.poole’s picture

Issue summary: View changes

formatting

basvredeling made their first commit to this issue’s fork.

basvredeling’s picture

Status: Active » Needs review

@gareth.poole
could you test MR!32 please?

stewest’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked on 4.2.1 and allowed the database update to work.

------------------ ----------- --------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Module             Update ID   Type            Description
 ------------------ ----------- --------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  paragraph_blocks   10401       hook_update_n   10401 - Migrate layout builder components from delta-based to entity ID references. Previously, paragraph_blocks identified paragraphs by their field delta position
                                                 (e.g. paragraph_field:node:field_links_list:2:page). This caused issues when editors reordered paragraphs on the node edit form — the new order was reflected in
                                                 layout builder, breaking the intended layout. The module now stores a paragraph_id in the component configuration to reference paragraphs by entity ID. This update
                                                 hook migrates all existing layout builder sections that still use delta-based references.
 ------------------ ----------- --------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------

 [notice] Update started: paragraph_blocks_update_10401
>  [notice] Migrated 48 paragraph block components from delta to entity ID references. Total rows processed: 511.
>  [notice] Update completed: paragraph_blocks_update_10401
 [success] Finished performing updates.
gareth.poole’s picture

thanks @stewest, works for me too!

basvredeling’s picture

Assigned: Unassigned » basvredeling
Status: Reviewed & tested by the community » Fixed

merged to latest dev, thanks for the review

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

basvredeling’s picture

Status: Fixed » Closed (fixed)

Fixed and released in version 4.2.2