[error] TypeError: Drupal\config\StorageReplaceDataWrapper

Created on 12 February 2024, 5 months ago
Updated 16 February 2024, 5 months ago

Hello and thanks for this useful drush command

Problem/Motivation

I am trying to import image styles from one site to another.
I have created a folder with the styles exported with drush cex.
When I try to import them with drush cis ../exports/image_styles/ i get this error

[error]  TypeError: Drupal\config\StorageReplaceDataWrapper::replaceData(): Argument #2 ($data) must be of type array, null given, called in /var/www/html/test.devel/web/modules/contrib/config_import_single/src/Commands/ConfigImportSingleCommands.php on line 184 in Drupal\config\StorageReplaceDataWrapper->replaceData() (line 198 of /var/www/html/test.devel/web/core/modules/config/src/StorageReplaceDataWrapper.php) #0 /var/www/html/test.devel/web/modules/contrib/config_import_single/src/Commands/ConfigImportSingleCommands.php(184): Drupal\config\StorageReplaceDataWrapper->replaceData()
#1 [internal function]: Drupal\config_import_single\Commands\ConfigImportSingleCommands->singleImport()
#2 /var/www/html/test.devel/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#3 /var/www/html/test.devel/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#4 /var/www/html/test.devel/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#5 /var/www/html/test.devel/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
#6 /var/www/html/test.devel/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#7 /var/www/html/test.devel/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#8 /var/www/html/test.devel/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/html/test.devel/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#10 /var/www/html/test.devel/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#11 /var/www/html/test.devel/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#12 /var/www/html/test.devel/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#13 /var/www/html/test.devel/vendor/drush/drush/drush(4): require('...')
#14 /var/www/html/test.devel/vendor/bin/drush(120): include('...')
#15 {main}. 

Steps to reproduce

  • Export your configuration
  • Import it

Thanks

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇪🇸Spain candelas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024