On drupal 9 when run drush csim or drush csim dev we have error:
Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 9 passed in /var/www/web/modules/contrib/config_split/src/ConfigSplitCliService.php on line 355 and exactly 10 expected in /var/www/web/core/lib/Drupal/Core/Config/ConfigImporter.php on line 194
Command drush cim also not imported active config.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3135074-2.patch | 2.51 KB | bircher |
Comments
Comment #2
bircherI guess nobody found that in #3042682: Drupal 9 Deprecated Code Report
Comment #3
ptmkenny commentedThanks, this fixed the issue for me.
Drush cache must be cleared after applying the patch.
Comment #4
skymen commented@bircher Thanks. Error is gone.
But commands
drush cim, drush csim, drush cex, drush csexdon't include active split config. Only direct call with name of split (e.x.drush csim dev) works as needed. Maybe this bug related to https://www.drupal.org/project/config_split/issues/3034589 or https://www.drupal.org/project/config_split/issues/3003108P.S. I use drupal 9.0 drush 10.2.2 config_split 1.5-rc1
Comment #6
bircherComment #8
albertski commented@Skymen are you still having the issue that you can't call
drush csimwithout having to put the name (Exdrush csim dev)? I'm running into that right now with Drush 10.3.1 with Drupal 9.0.2.Comment #9
skymen commented@albertski Now all works fine for me on latest versions of Drupal, drush, config_split.
drush cexexports default configs and config_split configs for current environment.