TypeError on "drush config-export"

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/ on line 519 in DrupalCoreConfigFileStorage->write() (line 140 of /web/core/lib/Drupal/Core/Config/FileStorage.php)
/vendor/drush/drush/commands/core/ DrupalCoreConfigFileStorage->write('field.field.nod...', false)
/vendor/drush/drush/commands/core/ _drush_config_export('sync', '../data/sync', false)
/vendor/drush/drush/includes/ drush_config_export()
/vendor/drush/drush/includes/ _drush_invoke_hooks(Array, Array)
/vendor/drush/drush/includes/ drush_command()
/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
/vendor/drush/drush/includes/ DrushBootBaseBoot-bootstrap_and_dispatch()
#7 /Users/Bcorrigan/sites/flowrite8/vendor/drush/drush/drush.php(12):

The only reference I can find to something similar is here:

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.

One Answer

Just try

drush config-export --destination="<folder-path>"

Path should be some writable folder

Answered by Razeem Ahmad on December 21, 2021

Add your own answers!

Related Questions

Solr index fields not showing a field

1  Asked on January 12, 2021 by heather


Programmatically get product name by using order variable

2  Asked on January 7, 2021 by selva


Applying patch on core module failing

0  Asked on January 6, 2021 by nabil


Custom module is not working

1  Asked on December 30, 2020 by ts-guhan


Unlimited field collection pagination in node edit page

1  Asked on December 30, 2020 by dmk-i-t


Error: Private files directory not fully protected

2  Asked on December 28, 2020 by glenviewjeff


How to add Autocomplete to a Views Custom Textfield Filter

1  Asked on December 27, 2020 by laceysanderson


Cannot disable or replace logo

1  Asked on December 25, 2020 by digital-fire


Webform onchange added with hook_form_id_alter

1  Asked on December 25, 2020 by richard-luckhurst


Form API placeholder attribute rendered as “- Select -“

1  Asked on December 24, 2020 by hotwebmatter


Adding a dependencies in theme info file

1  Asked on December 23, 2020 by aryashree-pritikrishna


Javascript in Drupal

1  Asked on December 23, 2020 by zephirus


Titles not showing for tabs pages

2  Asked on December 21, 2020 by andyw


Can’t connect to remote DigitalOcean database

1  Asked on December 18, 2020 by ymdahi


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP