Answers.Body: <p>AFAIK you can not install Webform CiviCRM if CiviCRM is not installed yet.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-23T13:47:35.883Z
Answers.LastActivityDate: 2018-10-23T13:47:35.883Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>The background is that I have an installation profile that installs certain Drupal modules and CiviCRM. The list of module dependencies goes in my profile's <code>.info</code> file. However if I include webform_civcirm the installation fails. The failure seems to be because CiviCRM has not been installed yet:</p>
  
  <pre><code>[ok]                                                                                                                           
  Starting Drupal installation. This takes a while. Consider using the   --notify global option.
  [warning]
  WD php: Warning: include_once(sites/default/civicrm.settings.php): failed to open stream: No such file or directory in civicrm_initialize() (line 190 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [warning]
  WD php: Warning: include_once(): Failed opening 'sites/default/civicrm.settings.php' for inclusion  (include_path='&lt;my include path&gt;') in civicrm_initialize() (line 190 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [warning]
  WD php: Warning: Invalid argument supplied for foreach() in civicrm_menu_alter() (line 482 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [error]
  Drush command terminated abnormally due to an unrecoverable error.
  </code></pre>
  
  <p>I might be trying to do something the module just isn't designed for, i.e. installing it when CiviCRM isn't yet installed on the site. The step that installs CiviCRM takes place after the site's dependencies are downloaded and enabled.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-23T19:33:39.120Z
Comments.Text: hmm we sometimes install using a make.file but haven't hit this issue
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-24T07:51:51.280Z
Comments.Text: @petednz-fuzion do you also include it in your module's dependencies in the `.info` file? Including `webform_civicrm` in the makefile is fine, just including it in the modules to be automatically enabled in the `.info` file doesn't work
Comments.UserDisplayName: mickadoo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-24T17:56:36.027Z
Comments.Text: haven't used it for a while and don't have time to check. but since webform_civicrm has a dependency on civicrm there is no way it can install if civicrm isn't already set up properly
Comments.UserDisplayName: petednz - fuzion
Tags: <webform-civicrm>
Title: Installing Webform CiviCRM from an Installation Profile
ThreadText: # Installing Webform CiviCRM from an Installation Profile
  
  (Asked by: username_0 on 2018-10-23)
  
  The background is that I have an installation profile that installs certain Drupal modules and CiviCRM. The list of module dependencies goes in my profile's .info file. However if I include webform_civcirm the installation fails. The failure seems to be because CiviCRM has not been installed yet:
  [ok]                                                                                                                           
  Starting Drupal installation. This takes a while. Consider using the   --notify global option.
  [warning]
  WD php: Warning: include_once(sites/default/civicrm.settings.php): failed to open stream: No such file or directory in civicrm_initialize() (line 190 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [warning]
  WD php: Warning: include_once(): Failed opening 'sites/default/civicrm.settings.php' for inclusion  (include_path='') in civicrm_initialize() (line 190 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [warning]
  WD php: Warning: Invalid argument supplied for foreach() in civicrm_menu_alter() (line 482 of /var/www/site/profiles/compuclient/modules/civicrm/drupal/civicrm.module).
  [error]
  Drush command terminated abnormally due to an unrecoverable error.
  
  I might be trying to do something the module just isn't designed for, i.e. installing it when CiviCRM isn't yet installed on the site. The step that installs CiviCRM takes place after the site's dependencies are downloaded and enabled.
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: hmm we sometimes install using a make.file but haven't hit this issue  
  > **username_0**: @petednz-fuzion do you also include it in your module's dependencies in the `.info` file? Including `webform_civicrm` in the makefile is fine, just including it in the modules to be automatically enabled in the `.info` file doesn't work  
  > **username_1**: haven't used it for a while and don't have time to check. but since webform_civicrm has a dependency on civicrm there is no way it can install if civicrm isn't already set up properly  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-10-23. Score: 1
  
  AFAIK you can not install Webform CiviCRM if CiviCRM is not installed yet.
  
  
  ---
  
  