Drupal\Component\Plugin\Exception\PluginNotFoundException: The "author" entity type does not exist.

Created on 19 May 2018, over 6 years ago
Updated 11 June 2024, 6 months ago

when uninstall this module, get following error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "author" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\Entity\EntityTypeManager.php).

refresh the page, and uninstall it again.
The second time will be OK .

when uninstall this module, we need do:
1,uninstall the config entity
2,uninstall the content type entity

we need "uninstall the content type entity" first, then "uninstall the config entity",
But i could not controll the order.

I add some code to make "uninstall the content type entity" run first, but Drupal core still run it again, I could not stop it now.

related issue:
https://www.drupal.org/node/2260457

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇳China g089h515r806

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.

  • 🇷🇴Romania rares petru samartean

    If you get yourself in a situation where this happens to you, one way or another:

    • drush cex from your initial, broken state, where the entity type is not supposed to exist
    • recreate the entity with that machine name; fields are unnecessary
    • drush cim; this should delete the entity type while syncing config and fix your issue without errors

    devel_entity_updates and normal drush cim to remove the entity did not work for me.
    If you still get errors and this doesn't work, good luck

Production build 0.71.5 2024