Error disabling Workbench at end of migration

Created on 25 January 2018, almost 7 years ago
Updated 6 April 2023, over 1 year ago

When I enable the module, I get the errors described in: https://www.drupal.org/project/wbm2cm/issues/2939486 . I am not sure if those errors cause the migration to run incorrectly, or if there is some other issue. Any idea if I could manually uninstall the Workbench Moderation module and install the Core Workflow module? None of my content needs to keep the migration history, could I just skip using this module and manually uninstall the Workbench Moderation module and install the Core Workflow module?

Here is the error:

https://www.drupal.org/project/wbm2cm/issues/2939486

drush wbm2cm-migrate
Saving existing moderation states to temporary tables...
Processed 13292 content items.
Removing Workbench Moderation data...
Processed 13291 content items.
Installing Content Moderation...
exception 'Drupal\Core\Extension\ModuleUninstallValidatorException' with message 'The following reasons prevent the modules from being uninstalled: There is data for the field [error]
moderation_state on entity type Content' in /var/www/agency/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php:365
Stack trace:
#0 /var/www/agency/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#1 /var/www/agency/docroot/modules/contrib/wbm2cm/wbm2cm.drush.inc(29): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array)
#2 [internal function]: drush_wbm2cm_migrate()
#3 /var/www/agency/vendor/drush/drush/includes/command.inc(422): call_user_func_array('drush_wbm2cm_mi...', Array)
#4 /var/www/agency/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#5 [internal function]: drush_command()
#6 /var/www/agency/vendor/drush/drush/includes/command.inc(199): call_user_func_array('drush_command', Array)
#7 /var/www/agency/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#8 /var/www/agency/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#9 /var/www/agency/vendor/drush/drush/drush.php(12): drush_main()
#10 {main}

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇺🇸United States captaindav

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