'Configuration directories - Not present' on fresh install of Drupal 8

'Configuration directories - Not present' on fresh install of Drupal 8

2 posts / 0 new
Last post
kevin.colligan's picture
kevin.colligan
Points: 0
'Configuration directories - Not present' on fresh install of Drupal 8

I am following the Acquia Academy OS Training Course, "Building Websites with Drupal 8" and have run into a bug.

I installed Dev Desktop as instructed and got to the step about "Install modules and turn them on with Drush" -- this ran fine, but in the Status Report, I had the following error message:

Configuration directories - Not present
Your sites/plaind.dd/settings.php file must define the $config_directories variable as an array containing the names of directories in which configuration files can be found. It must contain a sync key.

I was able to fix this manually by going into settings.php and replacing the following code:

$config_directories = array();

With this:

$config_directories['sync'] = 'sites/default/files/config_acqTmp-2017-03-14T12.01.04-0772';

I found the name of the directory by looking in sites -> defaults -> files and looked for a directory that started with "config_" and a long hash (this will vary by user, of course.)

Seems to work OK, now, but this had me stuck for awhile

Status: 
Resolved
colin@colinrood.com's picture
colin
Points: 0

I have just installed Dev Desktop and set up a new Drupal 8.3.1 site.

The site installed but in Reports > Status Report, I had the error:

"Your sites/xxxx.dd/settings.php file must define the $config_directories variable as an array containing the names of directories in which configuration files can be found. It must contain a sync key."

I fixed this manually as above – thanks.