I am brand new to trying to create a web blog so I am hoping you can help me get started. I haven't been able to find answer online.

My status report has this error.

Configuration directories Not present Your sites/recoverypractices.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 don't know what thes sync key is but I did find a sync folder here D:\Sites\devdesktop\drupal-8.2.5\core\modules\field\tests\modules\field_test_config I found the following code in my settings.php file but I don't know exactly how to fill in the array or define the sync key.

  • @code
  • $config_directories = array(
  • CONFIG_SYNC_DIRECTORY => '/directory/outside/webroot',
  • );
  • @endcode */

Can you assist me in figuring out how to fix this error?

Thanks, David

You can define it in settings.php like so:

$config_directories[CONFIG_SYNC_DIRECTORY] = '/../config/sync';

This sets the default sync directory outside my webroot.

CONFIG_SYNC_DIRECTORY is a constant defined for 'sync'.

  • This works. The problem is a known issue in Acquia Dev Desktop. – karolus Mar 9 at 21:02

Just replacing up this code instead of $config_directories in settings.php file fixed the issue.

$config_directories = array( CONFIG_SYNC_DIRECTORY => 'sites/default/files/config_acqTmp-2017-02-06T19.38.23-2536', );

I am not sure how much secure this is but now in my status report tab the Configuration files shows Protected

  • This is more or less the answer I gave earlier. – Kevin Feb 7 '17 at 14:12

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.