Attempt to create a field licenses_vocabulary_icon that does not exist on entity type taxonomy_term

Created on 9 October 2021, about 3 years ago
Updated 5 December 2024, 21 days ago

Uninstalling the module causes WSOD and the following error:

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

Drupal\Core\Field\FieldException: Attempt to create a field licenses_vocabulary_icon that does not exist on entity type taxonomy_term. in Drupal\field\Entity\FieldConfig->getFieldStorageDefinition() (line 315 of core/modules/field/src/Entity/FieldConfig.php).

It seems module uninstalled not correctly and has some field config leftovers or similar still in the Drupal database, since the module folder has been removed completely after deleting all terms, uninstalling it via drush and removing it via composer from the required list.

There are other issues on D.O. from other projects which may help to tackle down the issue. I link them here as related, even if it is not directly related but created by the same cause.

NOTE: The error does not occur always but under certain circumstances. To reproduce this error try clearing the cache and to create or delete fields in some taxonomy vocabularies.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

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