Small error in entity 'commerce_wishlist' : Missing bundle for entity type profile

Created on 28 April 2025, 3 months ago

Problem/Motivation

I want to use layout builder to display entity 'commerce_wishlist'. When a click in "manage layout", i have this error :

rupal\Core\Entity\EntityStorageException: Missing bundle for entity type profile in Drupal\Core\Entity\ContentEntityStorageBase->doCreate() (line 123 of core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).
Drupal\Core\Entity\ContentEntityStorageBase->create() (Line: 421)
Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection->createNewEntity() (Line: 498)
Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem::generateSampleValue() (Line: 253)
Drupal\Core\Field\FieldItemList->generateSampleItems() (Line: 245)
Drupal\Core\Entity\ContentEntityStorageBase->createWithSampleValues() (Line: 55)

Proposed resolution

Please change :
'target_bundles' => ['customer']
to
'target_bundles' => ['customer' => 'customer']

🐛 Bug report
Status

Active

Component

Code

Created by

🇨🇲Cameroon stephane888

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

Comments & Activities

Production build 0.71.5 2024