The "hidden" plugin does not exist - Drupal 9 Compability

Created on 19 November 2021, almost 3 years ago
Updated 15 August 2023, over 1 year ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hidden" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FormatterPluginManager are: datetime_default, datetime_plain, datetime_time_ago, daterange_custom, daterange_default . . .

Steps to reproduce

Drupal version: ^9.2

This issue appears most of the time, but not always in the following cases.

- Deleting a field in the custom content type from the admin.
- After selecting a new Display Mode in the Manage Display Tab on the Admin
- Importing configs(drush cim) including field changes

Proposed resolution

Using a deprecated code when setting up Flipping Book entity.

Current:

->setDisplayOptions('view', array(
        'type' => 'hidden',
      ))
      ->setDisplayOptions('form', array(
        'type' => 'hidden',
      ))

Should be:

->setDisplayOptions('view', array(
        'region' => 'hidden',
      ))
      ->setDisplayOptions('form', array(
        'region' => 'hidden',
      ))

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇻🇳Vietnam linhnm

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