Failed to create field storage

Created on 3 August 2021, over 3 years ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

Drupal\Core\Field\FieldException: Attempt to create a field storage with an name longer than 32 characters: layout_builder__layout_custommode in Drupal\field\Entity\FieldStorageConfig->preSaveNew() (line 326 of core/modules/field/src/Entity/FieldStorageConfig.php).

Steps to reproduce

1) Add view mode with a long name for the node.
2) Enable Layout builder for view mode.
3) Enable the 'Allow each content item to have its layout customized.' option for this view mode.

Proposed resolution

Probably we can use short machine name prefixes.
lb_layout_custommode instead layout_builder__layout_custommode.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Panchuk Volyn, Lutsk

Live updates comments and jobs are added and updated live.
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