Drupal Answers Asked on December 21, 2021
I’ve been receiving the following error message when trying to do a drush config-export
command.
However, I am able to successfully do the configuration export from the Drupal admin page (admin/config/development/configuration/full/export
).
TypeError: Argument 2 passed to [error] DrupalCoreConfigFileStorage::write() must be of the type array, boolean given, called in /vendor/drush/drush/commands/core/config.drush.inc on line 519 in DrupalCoreConfigFileStorage->write() (line 140 of /web/core/lib/Drupal/Core/Config/FileStorage.php)
#0
/vendor/drush/drush/commands/core/config.drush.inc(519): DrupalCoreConfigFileStorage->write('field.field.nod...', false)
#1
/vendor/drush/drush/commands/core/config.drush.inc(448): _drush_config_export('sync', '../data/sync', false)
#2
/vendor/drush/drush/includes/command.inc(422): drush_config_export()
#3
/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#4
/vendor/drush/drush/includes/command.inc(199): drush_command()
#5
/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#6
/vendor/drush/drush/includes/preflight.inc(66): DrushBootBaseBoot-bootstrap_and_dispatch()
#7 /Users/Bcorrigan/sites/flowrite8/vendor/drush/drush/drush.php(12):
drush_main()
#8
{main}.
The only reference I can find to something similar is here: https://www.drupal.org/node/2830047
But I did not have that module installed when I started getting the error. It’s installed now, but still getting the error and will probably remove it soon.
I started receiving the error yesterday, reverting to previous version of Git have made no difference in receiving the error.
Anyone else run into this? Know how to fix? Thanks for any help you can provide.
Just try
drush config-export --destination="<folder-path>"
Path should be some writable folder
Answered by Razeem Ahmad on December 21, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP