Fatal error when trying to manage display

Created on 21 June 2019, over 5 years ago
Updated 12 August 2024, 4 months ago

Hi there,

I get an error message after creating a copy of the title field an trying to manage the display:

Error: Call to a member function getType() on null in Drupal\Core\Field\FormatterPluginManager->getInstance() (line 99 of core/lib/Drupal/Core/Field/FormatterPluginManager.php).

Thanks in advance!

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands fredklopper

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.

  • πŸ‡·πŸ‡΄Romania reszli TΓ’rgu MureΘ™

    I ran into the same problem today.
    In my case the reason was that the field referenced by the formatter was removed.

  • πŸ‡©πŸ‡ͺGermany mrshowerman Munich

    Same here; I had deleted a field that was referenced by Display Field Copy. This resulted in entity forms running into a fatal error.
    Removing the ds.field.[field_name].yml and running drush cim fixed it.

    Maybe field copies should have a form of dependency on the original field, so that they get removed together with it?

Production build 0.71.5 2024