InvalidArgumentException: Field field_myfield is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField()

Created on 2 March 2024, 9 months ago

When I tried to create a new field of type komponent on a Drupal 10.2 demo site, this error is displayed at /en/admin/structure/types/manage/page/add-field/node/field_myfield?destinations[0][route_name]=entity.node.field_ui_fields&destinations[0][route_parameters][entity_type]=node&destinations[0][route_parameters][field_name]=field_myfield&destinations[0][route_parameters][node_type]=page&destinations[1]=/en/admin/structure/types/manage/page/fields/add-field:

The website encountered an unexpected error. Try again later.

InvalidArgumentException: Field field_myfield is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Drupal\Core\Entity\ContentEntityBase->get('field_myfield') (Line: 657)
Drupal\Core\Entity\ContentEntityBase->set('field_myfield', Array) (Line: 65)
Drupal\layout_builder\Field\LayoutSectionItemList->getEntity() (Line: 35)
Drupal\komponent\Plugin\Field\FieldType\LayoutSectionItemList->getSectionStorage() (Line: 52)
Drupal\komponent\Plugin\Field\FieldType\LayoutSectionItemList->defaultValuesForm(Array, Object) (Line: 230)
Drupal\field_ui\Form\FieldConfigEditForm->form(Array, Object) (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
...
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic milos.kroulik

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

Comments & Activities

Production build 0.71.5 2024