Hi,
I would to update migration to add new created content on th eD6 website. So I run this command:
drush @vmdevd8ce mim --feedback=50 --update d6_node:contenu_actualites
PHP Fatal error: Call to a member function getSetting() on null in /var/www/drupal-8/modules/contrib/workflow/src/Entity/WorkflowManager.php on line 168
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function getSetting() on null in /var/www/drupal-8/modules/contrib/workflow/src/Entity/WorkflowManager.php, line 168
Then if I try to uniinstall the module I get logically, this:
drush @vmdevd8ce pmu workflow -y
The following extensions will be uninstalled: workflow, workflow_ui
Do you really want to continue? (y/n): y
exception 'Drupal\Core\Extension\ModuleUninstallValidatorException' with message 'The following reasons prevent the modules from being uninstalled: Le type de champ [error]
<em class="placeholder">Workflow state</em> est utilisé dans le champ suivant : node.field_processus_de_publication' in
/var/www/drupal-8/core/lib/Drupal/Core/Extension/ModuleInstaller.php:373
Stack trace:
#0 /var/www/drupal-8/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#1 /home/webmaster/.config/composer/vendor/drush/drush/commands/core/drupal/environment.inc(227): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array)
#2 /home/webmaster/.config/composer/vendor/drush/drush/commands/core/drupal/pm_8.inc(79): drush_module_uninstall(Array)
#3 /home/webmaster/.config/composer/vendor/drush/drush/commands/pm/pm.drush.inc(1250): _drush_pm_uninstall(Array)
#4 [internal function]: drush_pm_uninstall('workflow')
#5 /home/webmaster/.config/composer/vendor/drush/drush/includes/command.inc(422): call_user_func_array('drush_pm_uninst...', Array)
#6 /home/webmaster/.config/composer/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#7 [internal function]: drush_command('workflow')
#8 /home/webmaster/.config/composer/vendor/drush/drush/includes/command.inc(199): call_user_func_array('drush_command', Array)
#9 /home/webmaster/.config/composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#10 /home/webmaster/.config/composer/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#11 /home/webmaster/.config/composer/vendor/drush/drush/drush.php(12): drush_main()
#12 {main}
So how can I run the migrate update command without to disable the workflow module ?
Thanks
Comments
Comment #2
johnvPlease upgrade to newest dev version.
This error should have been be solved by #2974268: executeTransitionsOfEntity throw an error since 2018-07-27
Comment #3
aiphesOK, in fact I'm using the 8.x-1.1 version.So I go to change it for the last dev version.
But I get this as version: 8.x-1.1+24-dev
To uninstall module, I must to delete the field or just disable it ?
Comment #4
johnv8.x-1.1+24-dev is indeed the dev-version. Same as 8.x-1.x , but including a specific build.
Ideally, you remove the module code and upload the new code. You can then uninstall the module , and remove the code again.
Comment #5
aiphesok thanks.
Comment #6
johnv