Open Polynya opened 1 year ago
A year later and I am seeing a similar problem when importing configuration that enables localgov_workflows
[error] Error: Call to a member function getTypePlugin() on null in localgov_workflows_node_type_insert()
(line 109 of /var/www/html/web/modules/contrib/localgov_workflows/localgov_workflows.module)
This is related to https://github.com/localgovdrupal/localgov_directories/issues/244
There is an error when running
drush site-install --existing-config
, e.g.The stack trace contains
Drupal\Core\Config\Entity\ConfigEntityBase->save() at /var/www/html/web/modules/contrib/localgov_workflows/localgov_workflows.install:38
It's caused by the install hook expecting the content types to exist but the config hasn't been imported at this stage. This can be solved by moving the code into a post_update hook.