TypeError in WorkflowConfigTransition::setWorkflow when importing config

Created on 16 April 2018, almost 7 years ago
Updated 4 July 2024, 9 months ago

Using Drupal 8.5.1 and latest dev version of Workflow. Successfully set up a workflow with access and tranasitions via the UI. Successfully added Workflow fields to Content Types. Successfully transitioned Content with Workflow fields in Content Type.

Issue: Exported Configuration via the UI. When attempting import using:

drush cim --partial --no-halt-on-error --source=../config/sync -y

I get the following error:

Argument 1 passed to Drupal\workflow\Entity\WorkflowConfigTransition::setWorkflow() must be an instance of Drupal\workflow\Entity\Workflow, null given, called in [error]
.../docroot/modules/contrib/workflow/src/Entity/WorkflowConfigTransition.php on line 72 and defined WorkflowTypeAttributeTrait.php:37

Fatal error: Call to a member function id() on null in .../docroot/modules/contrib/workflow/src/WorkflowTypeAttributeTrait.php on line 38
Drush command terminated abnormally due to an unrecoverable error.

Configuration files attached.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sassafrass

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