Drupal\Core\Field\FieldException: Attempted to create an instance of field with name FIELD_NAME on entity type field_collection_item when the field storage does not exist. in Drupal\field\Entity\FieldConfig->getFieldStorageDefinition()

Created on 27 February 2024, 4 months ago
Updated 15 March 2024, 3 months ago

Problem/Motivation

Unable to uninstall field collections module "Fields pending deletion".

No fields exist. Cron has been executed numerous times in large batches.

When cron runs the following message is produced:

<?php
Drupal\Core\Field\FieldException: Attempted to create an instance of field with name MY_FIELD_NAME on entity type field_collection_item when the field storage does not exist. in Drupal\field\Entity\FieldConfig->getFieldStorageDefinition() (line 315 of /app/web/core/modules/field/src/Entity/FieldConfig.php).
?>

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom wilksdotco

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

Comments & Activities

  • Issue created by @wilksdotco
  • πŸ‡·πŸ‡ΊRussia mr.pomelov

    I also get a similar error:

    "Drupal\Core\Field\FieldException: Attempted to create an instance of field with name field_contest_worker on entity type node when the field storage does not exist. in Drupal\field\Entity\FieldConfig->getFieldStorageDefinition()."

    Previously, I deleted the type of material that had the "field_contest_worker" field, now when deleting any field, such an error occurs. I tried to create the content type that I deleted again along with this field. Then I tried to delete it again, to no avail.

    Drupal 9.5.11
    php 8.1.17

    I also use the field group 8.x-3.4 module in my work

Production build 0.69.0 2024