LayoutBuilder get WSOD after removing default bundle

Created on 27 October 2023, about 1 year ago
Updated 27 November 2023, 12 months ago

Module insert "0" value there:
https://git.drupalcode.org/project/commerce/-/blob/8.x-2.x/modules/produ...

And I get this:
https://www.drupal.org/project/drupal/issues/2915034#comment-15289152 🐛 \Drupal\Core\Entity\ContentEntityStorageBase::createWithSampleValues() does not handle language or bundles correctly Needs work

Drupal\Core\Entity\EntityStorageException: No entity bundle was specified in Drupal\Core\Entity\ContentEntityStorageBase->createWithSampleValues() (line 230 in .../public_html/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).

Solution is to send proper data and I don't know how to fix it.

To recreate issue you must add to Layout Builder field with attributes and remove product and attributes

For temporary solution:
for file: .../public_html/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
line 231 is commented and add in next line:
$bundle = "default";

This will ensure it work and give option to remove non-existing reference

🐛 Bug report
Status

Closed: duplicate

Version

2.36

Component

Product

Created by

🇵🇱Poland Patryk Padus

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

Comments & Activities

Production build 0.71.5 2024