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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DieterHolvoet created an issue. See original summary.

dieterholvoet’s picture

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

  • DieterHolvoet committed 41ec3a80 on 1.x
    Issue #3331557 by DieterHolvoet: PluginNotFoundException: The "xxx"...
dieterholvoet’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.