I ran into in an exception in _hook_post_action_post_save while uninstalling the Features module and removing its config while importing configuration:

Uncaught exception thrown in shutdown function.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "features_bundle" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133

This is occurring because the default features bundle entity is being deleted, but the entity type was already deleted, causing an exception.

Comments

godotislate created an issue. See original summary.

godotislate’s picture

Here's a patch that catches the exception. It allows implemented hooks to run, in case there are any that need to be run when the entity is deleted if the type is gone, but implementing modules will need to beware.

godotislate’s picture

Status: Active » Needs review

sinasalek’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

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