I've used the original version of Dev Desktop many times to generate or import local Drupal 7 sites.
I just upgraded my Dev Desktop 2 on a Mac (running OS 10.12.6) and a the current version of Chrome (v62). I'm now trying to generate a local Drupal 8 instance.
After entering all the initial setup variables Dev Desktop launched the Drupal installer but couldn't finish.
First issue was at line 247 in 'settings.php': "$config_directories = array( CONFIG_SYNC_DIRECTORY..." was missing a setting. After I created a 'sync' folder in 'sites/default/files/config_acq.../sync' and entered that info into the appropriate place in settings.php, I tried rerunning update.php and got a no-salt_hash value in line 301 in 'settings.php'.
So I went to DAVID LOHMEYER'S's hash-salt generator, generated a salt_hash and copied it to line 301. But now I get the following error:
Parse error: syntax error, unexpected '$settings' (T_VARIABLE) in /Users/matt/Sites/devdesktop/lightning-8.x-2.23/sites/default/settings.php on line 301.
Nothing I do seems to resolve this. Now what do I do?
the relevant excerpts from my settings.php file:
Starting with Line 245:
* Example:
* @code
* $config_directories = array(
* CONFIG_SYNC_DIRECTORY => '/sites/all/default/files/config_acqTmp-2017-12-10T19.02.05-0874',
* );
* @endcode
*/
$config_directories = array(
CONFIG_SYNC_DIRECTORY => 'sites/default/files/config_acqTmp-2017-12-10T19.02.05-0874/sync',
);
@endcode
Starting with Line 296:
* Example:
* @code
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
* @endcode
*/
$settings['hash_salt'] = '98d65565b58c1ddfd68c2943ab9f6c0f6d4f34401997d7be746e77a408643c86';
Note: Dev Desktop 2 was able to install a plain 8.4.1 (core only) site that worked, so the problem appears to be with the Lightning 8-x-2-23 distribution... [Update see Note 2]
Note 2: When I downloaded a contrib theme, installed it, and ran update.php on this 8.4.1 (core) instance I got a similar error (Requirements problem):
Errors found
CONFIGURATION DIRECTORIES
Not present
Your /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.