Workaround for "Call to a member function getLabel() after enabling layout_builder"

Created on 15 July 2018, over 6 years ago
Updated 2 May 2023, over 1 year ago

This is not a bug report

The bug report is here: 🐛 Prevent leftover fields from causing errors like "Call to a member function getLabel() after enabling layout_builder" Active .
That issue needs help with reliably reproducing this bug outside of a migration.
This is a support request that includes a workaround patch to help you identify the malformed config on your site.

Original report by adubovskoy

Existing drupal 8 site (upgraded from 8.2.x to 8.3, 8.4, 8.5). Current version 8.5.5 . If I enable layout_builder, then:

Error: Call to a member function getLabel() on null in Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver->getDerivativeDefinitions() (line 111 of /home/agwophqf/public_html/core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php) #0 ...
💬 Support request
Status

Fixed

Version

10.1

Component
Layout builder 

Last updated about 7 hours ago

Created by

🇲🇪Montenegro adubovskoy Budva

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024