On line 301 of ConfigSplitCliService::export(), the write is called directly with read for the active storage. This can cause issues when deploying to an older database and attempting to export a database config split.

299:     // Copy everything.
300:     foreach ($active->listAll() as $name) {
301:       $storage->write($name, $active->read($name));

Error thrown:

TypeError: Argument 2 passed to Drupal\config_filter\Config\FilteredStorage::write() must be of the type array, boolean given, called in /modules/contrib/config_split/src/ConfigSplitCliService.php on line 301 in Drupal\config_filter\Config\FilteredStorage->write() (line 94 of /modules/contrib/config_filter/src/Config/FilteredStorage.php).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit created an issue. See original summary.

recrit’s picture

Status: Active » Needs review
FileSize
561 bytes

The attached patch adds a check for FALSE which means that the data does not exist per \Drupal\Core\Config\StorageInterface.

  • bircher committed febb169 on 8.x-1.x
    Issue #3088370 by recrit: ConfigSplitCliService::export() does not check...
bircher’s picture

Status: Needs review » Fixed

Thanks for finding this issue and creating a patch for it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.