Score:0

config:import:single - Class 'Drupal\config\StorageReplaceDataWrapper' not found

cn flag

When I am trying to import a single configuration file within my multisite environment, I am facing the following error:

root@d655a4e6dc36:/opt/drupal/docroot# drupal --uri="3030-bronze-minnow-vuask4c0.ws-eu18.gitpod.io" config:import:single --directory="/opt/drupal/config/sync/" --file="core.extensions.yml"

Error: Class 'Drupal\config\StorageReplaceDataWrapper' not found in /opt/drupal/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php on line 91 #0 /opt/drupal/vendor/symfony/console/Command/Command.php(255): Drupal\Console\Command\Config\ImportSingleCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /opt/drupal/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /opt/drupal/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Drupal\Console\Command\Config\ImportSingleCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /opt/drupal/vendor/drupal/console-core/src/Application.php(187): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /opt/drupal/vendor/drupal/console/src/Application.php(64): Drupal\Console\Core\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /opt/drupal/vendor/symfony/console/Application.php(149): Drupal\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /opt/drupal/vendor/drupal/console/bin/drupal.php(89): Symfony\Component\Console\Application->run()
#7 /opt/drupal/vendor/drupal/console/bin/drupal(4): require('/opt/drupal/ven...')
#8 {main}
Error: Class 'Drupal\config\StorageReplaceDataWrapper' not found in Drupal\Console\Command\Config\ImportSingleCommand->execute() (line 91 of /opt/drupal/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php).
root@d655a4e6dc36:/opt/drupal/docroot# drupal --uri="3030-bronze-minnow-vuask4c0.ws-eu18.gitpod.io" config:import:single --directory="/opt/drupal/config/sync/" --file="core.extensions.yml"
Error: Class 'Drupal\config\StorageReplaceDataWrapper' not found in /opt/drupal/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php on line 91 #0 /opt/drupal/vendor/symfony/console/Command/Command.php(255): Drupal\Console\Command\Config\ImportSingleCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /opt/drupal/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /opt/drupal/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Drupal\Console\Command\Config\ImportSingleCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /opt/drupal/vendor/drupal/console-core/src/Application.php(187): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /opt/drupal/vendor/drupal/console/src/Application.php(64): Drupal\Console\Core\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /opt/drupal/vendor/symfony/console/Application.php(149): Drupal\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /opt/drupal/vendor/drupal/console/bin/drupal.php(89): Symfony\Component\Console\Application->run()
#7 /opt/drupal/vendor/drupal/console/bin/drupal(4): require('/opt/drupal/ven...')
#8 {main}
Error: Class 'Drupal\config\StorageReplaceDataWrapper' not found in Drupal\Console\Command\Config\ImportSingleCommand->execute() (line 91 of /opt/drupal/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php).

The console version is 1.9.7

root@d655a4e6dc36:/opt/drupal/docroot# drupal --uri="3030-bronze-minnow-vuask4c0.ws-eu18.gitpod.io" -V

Drupal Console version 1.9.7

And here is my URI list:

root@d655a4e6dc36:/opt/drupal/docroot# drupal --uri="3030-bronze-minnow-vuask4c0.ws-eu18.gitpod.io" debug:multisite

 Sites are written using the format: <port>.<domain>.<path>
 --------------------------------------------- --------------------------------------------- 
  Site                                            Directory                                     
 --------------------------------------------- --------------------------------------------- 
  3030-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/default-export      
  3031-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/default-import      
  3032-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/syndication-site-1  
  3033-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/syndication-site-2  
  3034-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/syndication-site-3  
  3035-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/fresh-export        
  3036-bronze-minnow-vuask4c0.ws-eu18.gitpod.io   /opt/drupal/docroot/sites/fresh-import        
 --------------------------------------------- --------------------------------------------- 

Does someone have an idea what might go wrong?

The Class StorageReplaceDataWrapper does exist within the Drupal Core.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.