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

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

6 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: 
Unresolved
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.

basscleff94010@gmail.com's picture
basscleff94010
Points: 1

Had the same problem with a fresh install from Aquia site using devdesktop2. There is clearly an error in the creation of the setting.php file if it requires editing to add information that is already being generated by the code.

Status Change: 
Duplicate
admin's picture
Acquia Forums
Points: 0

This post has a duplicate thread which has the provided answer. Please visit the linked page.

jsmutek1@jhu.edu's picture
jsmutek1
Points: 1

This post has a duplicate thread which has the provided answer. Please visit the linked page.

There does not seem to be a linked page.

jsmutek1@jhu.edu's picture
jsmutek1
Points: 1

This thread, also still unresolved, is the only possibly related thread I could find -
https://forums.acquia.com/acquia-products-and-services/dev-desktop/outda...

Status Change: 
Unresolved