Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException: The [error]
Drupal\content_moderation\Entity\ModerationState class does not correspond to an entity type. in
/var/www/html/www/docroot/core/lib/Drupal/Core/Entity/EntityTypeRepository.php:98
Stack trace:
#0 /var/www/html/www/docroot/core/lib/Drupal/Core/Entity/EntityManager.php(377):
Drupal\Core\Entity\EntityTypeRepository->getEntityTypeFromClass('Drupal\\content_...')
#1 /var/www/html/www/docroot/core/lib/Drupal/Core/Entity/Entity.php(507):
Drupal\Core\Entity\EntityManager->getEntityTypeFromClass('Drupal\\content_...')
#2 /var/www/html/www/docroot/core/modules/content_moderation/src/Permissions.php(26):
Drupal\Core\Entity\Entity::loadMultiple()
#3 [internal function]: Drupal\content_moderation\Permissions->transitionPermissions()
#4 /var/www/html/www/docroot/core/modules/user/src/PermissionHandler.php(149): call_user_func(Array)
#5 /var/www/html/www/docroot/core/modules/user/src/PermissionHandler.php(108):
Drupal\user\PermissionHandler->buildPermissionsYaml()
#6 /var/www/html/www/vendor/drush/drush/lib/Drush/Role/Role8.php(41):
Drupal\user\PermissionHandler->getPermissions()
#7 /var/www/html/www/vendor/drush/drush/commands/pm/pm.drush.inc(1177):
Drush\Role\Role8->getModulePerms('content_moderat...')
#8 /var/www/html/www/vendor/drush/drush/includes/command.inc(422): drush_pm_enable('content_moderat...')
#9 /var/www/html/www/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#10 /var/www/html/www/vendor/drush/drush/includes/command.inc(199): drush_command('content_moderat...')
#11 /var/www/html/www/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#12 /var/www/html/www/vendor/drush/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#13 /var/www/html/www/vendor/drush/drush/drush.php(12): drush_main()
#14 {main}

Comments

lhridley created an issue. See original summary.

balsama’s picture

Status: Active » Closed (works as designed)

Content moderation is incompatible with Workbench Moderation, which Lightning uses. We have plans to hopefully migrate from WBM to CM sometime before the core 8.4.x release. Until then, you shouldn't enable Content Moderation while Lightning Workflow/Workbench Moderation is enabled.

lhridley’s picture

Title: Enabling Content Moderation throws fatal error » Content Moderation is incompatible with Lightning
Component: Code » Documentation
Status: Closed (works as designed) » Active

That would be useful information to prominently display in the README.md, and on the landing page here on D.O., don't you think? Especially since Content Moderation is a part of Core?

balsama’s picture

We could add something under the Workflow section of the README that explains that we currently use Workbench Moderation and have plans to migrate to Content Moderation.

phenaproxima’s picture

Status: Active » Needs review

Pull request created with exactly that: https://github.com/acquia/lightning/pull/399

  • balsama committed d0effa3 on 8.x-2.x authored by phenaproxima
    Issue #2869257 by phenaproxima: Content Moderation is incompatible with...
balsama’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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