PluginNotFoundException: The "xxx" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition()

Created on 6 January 2023, over 1 year ago
Updated 25 January 2023, over 1 year ago

Problem/Motivation

The following error is triggered when visiting any page after deleting an ECK entity type:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "testje" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Drupal\scheduler\SchedulerPluginBase::create(Object, Array, 'scheduler_eck:testje', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('scheduler_eck:testje', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('scheduler_eck:testje') (Line: 961)
Drupal\scheduler\SchedulerManager->getPlugins(NULL) (Line: 999)
Drupal\scheduler\SchedulerManager->getPluginEntityTypes() (Line: 756)
scheduler_entity_base_field_info(Object) (Line: 291)

Steps to reproduce

Visit any page after deleting an ECK entity type.

Proposed resolution

Invalidate the scheduler plugins after an ECK entity type is deleted.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

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.69.0 2024