0

So i'm having some issues with importing configs on my DEV DB. The command I am running is drush cim -y --partial. The error message is as follows:

[error]  TypeError: Argument 2 passed to Drupal\config\StorageReplaceDataWrapper::replaceData() must be of the type array, boolean given, called in /var/www/html/iheid-backend/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php on line 181 in Drupal\config\StorageReplaceDataWrapper->replaceData() (line 198 of /var/www/html/iheid-backend/web/core/modules/config/src/StorageReplaceDataWrapper.php) #0 /var/www/html/iheid-backend/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php(181): Drupal\config\StorageReplaceDataWrapper->replaceData('language.conten...', false)
#1 [internal function]: Drush\Drupal\Commands\config\ConfigImportCommands->import(NULL, Array)
#2 /var/www/html/iheid-backend/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#3 /var/www/html/iheid-backend/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /var/www/html/iheid-backend/vendor/consolidation/annotated-command/src/CommandProcessor.php(178): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /var/www/html/iheid-backend/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /var/www/html/iheid-backend/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/iheid-backend/vendor/symfony/console/Application.php(978): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/iheid-backend/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/iheid-backend/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/iheid-backend/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/iheid-backend/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/iheid-backend/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#13 /var/www/html/iheid-backend/vendor/drush/drush/drush(4): require('/var/www/html/i...')
#14 {main}.

What's weird is the without the --partial flag the import is successful. Now my question is how do i debug this, to find out which config is causing me all these headaches?

Drupal 8.6.13 Drush 9

Regards, Z.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.