Error on dcdi importing content moderation prior to node

Created on 22 June 2018, almost 7 years ago
Updated 6 February 2024, over 1 year ago

Here's the error

9. Loading file: ../content/content_moderation_state/0898ba8f-7cbb-4df8-8df6-ca74e30f856f.json, entity type: content_moderation_state
	content_moderation_state/id 6		new - create	Creating default object from empty value ContentModerationState.php:205                                                 [warning]
Error: Call to undefined method stdClass::save() in Drupal\content_moderation\Entity\ContentModerationState->save()     [error]
(line 206 of
/mnt/gfs/vodafaqvzdd8szkdzy/livedev/docroot/core/modules/content_moderation/src/Entity/ContentModerationState.php) #0
/mnt/gfs/vodafaqvzdd8szkdzy/livedev/docroot/modules/contrib/default_content_deploy/src/Importer.php(378):
Drupal\content_moderation\Entity\ContentModerationState->save()
#1
/mnt/gfs/vodafaqvzdd8szkdzy/livedev/docroot/modules/contrib/default_content_deploy/drush/default_content_deploy.drush.inc(227):
Drupal\default_content_deploy\Importer->deployContent(true, true)
#2 /usr/local/drush8/vendor/drush/drush/includes/command.inc(422): drush_default_content_deploy_import()
#3 /usr/local/drush8/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#4 /usr/local/drush8/vendor/drush/drush/includes/command.inc(199): drush_command()
#5 /usr/local/drush8/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#6 /usr/local/drush8/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#7 /usr/local/drush8/vendor/drush/drush/drush.php(12): drush_main()
#8 {main}.
Error: Call to undefined method stdClass::save() in Drupal\content_moderation\Entity\ContentModerationState->save() (line 206 of /mnt/gfs/vodafaqvzdd8szkdzy/livedev/docroot/core/modules/content_moderation/src/Entity/ContentModerationState.php).
Drush command terminated abnormally due to an unrecoverable error.                                                      [error]
A non well formed numeric value encountered drush.inc:1672

I am using drush dcdes to export the content
drush dcdes --skip_entity_type=block_content,consumer,contact_message,crop,file,media,menu_link_content,oauth2_token,search_api_task,shortcut
And then when import using drush dcdi - the script imports users, then content_moderation and throws an error.
drush dcdi --verbose --force-update

Shouldn't it import the nodes first?

What am I missing here?

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rocket777

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