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
1 Asked on January 14, 2021 by cynthia
2 Asked on January 14, 2021 by spr
2 Asked on January 7, 2021 by selva
0 Asked on December 31, 2020 by jpsnow72
1 Asked on December 30, 2020 by dmk-i-t
1 Asked on December 30, 2020 by user1768942
2 Asked on December 28, 2020 by glenviewjeff
1 Asked on December 27, 2020 by laceysanderson
1 Asked on December 25, 2020 by richard-luckhurst
1 Asked on December 24, 2020 by hotwebmatter
1 Asked on December 23, 2020 by aryashree-pritikrishna
1 Asked on December 19, 2020 by robertsirwin
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP