TypeError on "drush config-export"

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.

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

TypeError on "drush config-export"

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.