Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#2 | config_split-fix-export-error-3088370-2.patch | 561 bytes | recrit |
|
Comments
Comment #2
recrit CreditAttribution: recrit at Phase2 commentedThe attached patch adds a check for FALSE which means that the data does not exist per \Drupal\Core\Config\StorageInterface.
Comment #4
bircherThanks for finding this issue and creating a patch for it!