The "hidden" plugin does not exist on entity display save

Created on 16 April 2017, over 7 years ago
Updated 10 October 2023, about 1 year ago

If i'm not sure if this is a core issue or ds, but i get this error if hidden label formatter is used on disabled field, the move it to the content area, please see gif image below:

The full error message:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hidden" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('hidden') (Line: 56)
Drupal\Core\Field\FormatterPluginManager->createInstance('hidden', Array) (Line: 81)
Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin('hidden') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('hidden') (Line: 148)
Drupal\Component\Plugin\LazyPluginCollection->getIterator() (Line: 114)
Drupal\Core\Plugin\DefaultLazyPluginCollection->getConfiguration() (Line: 320)
Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object, 1) (Line: 266)
Drupal\Core\Entity\EntityDisplayBase->preSave(Object) (Line: 434)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 389)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 259)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 364)
Drupal\Core\Entity\Entity->save() (Line: 637)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 469)
ds_field_ui_layouts_save(Array, Object)
call_user_func_array('ds_field_ui_layouts_save', Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('entity_view_display_edit_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Temporary solution is not to select hidden as label before moving the field into content area

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Field UI 

Last updated 10 days ago

Created by

🇪🇬Egypt samerali

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.

  • 🇺🇸United States chri5tia PDX

    I got this error on [ ] when attempting to enable a custom field with a broken field formatter. When saving the form, it can't enable the field so it throws this and the field remains disabled.

  • 🇮🇳India StanleyFernandes Goa

    Facing the same issue on Drupal version 9.5.10, when I'm creating a new content type or field.

  • 🇫🇷France hassebasse

    And for me on 9.5.11

    A field named Page Section, a Paragraphs field, has been 'kicked out' desactivated in the Form list and is no more available in the content type and when I try to activate it I have the below message :

    Drupal\Component\Plugin\Exception\PluginNotFoundException : The "hidden" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: block_field_default, d_block_field_default, field_d_p_set_settings, datetime_default, datetime_datelist, daterange_datelist, daterange_default, entity_reference_revisions_autocomplete, file_generic, image_image, layout_builder_widget, link_default, link_attributes, linkit, oembed_textfield, media_library_widget, metatag_firehose, panelizer, path, redirect_source, text_textfield, text_textarea_with_summary, text_textarea, webform_entity_reference_autocomplete, webform_entity_reference_select, paragraphs, entity_reference_paragraphs, datetime_timestamp, language_select, boolean_checkbox, entity_reference_autocomplete, options_select, number, entity_reference_autocomplete_tags, string_textarea, string_textfield, options_buttons, uri, email_default dans Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (ligne 53 de /home/xxx/public_html/droopler/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Production build 0.71.5 2024