Now allowing me to add extra field - InvalidArgumentException: Field field_test is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Created on 6 June 2021, over 3 years ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

I am getting this error when I am adding a field in managed fields sections in any menu.

InvalidArgumentException: Field field_test is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Drupal\Core\Entity\ContentEntityBase->get('field_test') (Line: 90)
Drupal\field_ui\Form\FieldStorageConfigEditForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object) (Line: 56)
Drupal\field_ui\Form\FieldStorageConfigEditForm->buildForm(Array, Object, 'menu_link_content.account.field_test')
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('field_storage_config_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)

Steps to reproduce

  • I am using Drupal 9.1.5
  • menu_item_extras 8.x-2.15
  • Go to admin/structure/menu and click on edit menu
  • Go to Managed fields
  • Click on Add field
  • Add a new field and submit.

It will throw the error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

2.15

Component

Menu item form

Created by

🇮🇳India Rkumar

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