Answers.Body: <p>I think CiviCRM expects to find the CiviCRM module in /sites/all/modules/civicrm, as per: <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+Drupal+7" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+Drupal+7</a></p>
  
  <p>This affects the loading of the settings file, which is expected to be in a directory relative to this. We encounter the same issue and have a patch for it which we will submit back once it is a more generic fix.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-28T16:17:47.353Z
Answers.LastActivityDate: 2015-10-29T10:09:02.813Z
Answers.LastEditDate: 2015-10-29T10:09:02.813Z
Answers.UserDisplayName: John
Answers.Body: <p>Doesn't seems to be a solution to your specific problem but somewhat related and may help others. </p>
  
  <p>The link <code>.../modules/civicrm/../..//default/civicrm.settings.php</code> is the default link when civicrm doesn't find civicrm.settings.php in another place.</p>
  
  <p>In Drupal 7, if you have a site with multiple domains (e.g. example.com, subdomain.example.com), CiviCRM will only be able to find the proper civicrm.settings.php if you navigate using the main domain.</p>
  
  <p>I have provided a patch so that civicrm can use the sites/sites.php to load aliases. This way, it's possible to have multiple domain in the same site and civicrm will not try to find the civicrm.settings.php in sites/default (which is not used in our case).</p>
  
  <p>cf. <a href="https://issues.civicrm.org/jira/browse/CRM-17521" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-17521</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-21T21:24:35.270Z
Answers.Text: I am still having the same issue after applying the fix
Answers.UserDisplayName: Dan E
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T17:12:20.900Z
Answers.LastActivityDate: 2015-11-06T17:12:20.900Z
Answers.UserDisplayName: samuelsov
Body: <p>when I try to add external links in mailouts i get the following link:
  <a href="https://MYDOMAIN.COM/modules/civicrm/extern/url.php?u=300&amp;qid=8370" rel="nofollow">https://MYDOMAIN.COM/modules/civicrm/extern/url.php?u=300&amp;qid=8370</a></p>
  
  <p>when I click on it, there is an error:
  Could not load the settings file at: /usr/share/drupal7/modules/civicrm/../..//default/civicrm.settings.php </p>
  
  <p>Civicrm is part of Drupal 7 in my installation. my php version is PHP 5.4.45-0+deb7u1 (cli) (built: Sep 10 2015 08:34:47) 
  the install runs on debian wheezy</p>
  
  <p>please help..</p>
  
  <p>edit: the problem seems to be in this function: function civicrm_conf_init() {</p>
  
  <p>in the civicrm.config.php which is located here:
  /usr/share/drupal7/modules/civicrm/civicrm.config.php</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:41:54.360Z
Comments.Text: at a guess you have either a setting wrong in your civicrm.setttings.php or worse. your civicrm.settings.php file would usually be at sites/default/ - not somewhere within the civicrm directory
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:47:54.873Z
Comments.Text: it is currently in sites/default/
Comments.UserDisplayName: Dan E
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:49:02.267Z
Comments.Text: I am guessing the setting in civicrm.config.php is a problem, because when I output the  $confdir variable, it doesnt make sense...
Comments.UserDisplayName: Dan E
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:52:22.557Z
Comments.Text: it outputs:" /usr/share/drupal7/modules/civicrm/../../ " as the confdir, which cant be right
Comments.UserDisplayName: Dan E
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:57:18.977Z
Comments.Text: when i directly set the $confdir in civicrm.config.php to "$confdir='/var/www/drup/sites';", then it works
Comments.UserDisplayName: Dan E
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T10:02:38.427Z
Comments.Text: i would avoid making changes before you are sure the basic set up is correct as per the documentation - though it sounds like you are familiar enough you may also find you are making further problems down the track. sorry i can't offer much more advice other than as a caution
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T11:45:02.347Z
Comments.Text: would it be advisible to update the civicrm.settings.php file from the latest civicrm version? would that help? I think I am using a settings file from a much earlier version, when I compare it to the one that is shipped as an example with the 4.6.8  version..
Comments.UserDisplayName: Dan E
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-01T15:40:05.180Z
Comments.Text: Dan E - maybe check to be sure that you don't have a copy of civicrm.settings.php inside yr civicrm as well as at drupal7/sites/default/?  In yoursite/sites/default/civicrm.settings.php file how is CIVICRM_UF defined, as 'Drupal' or ?
Comments.UserDisplayName: Lesley Evensen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-02T15:28:50.660Z
Comments.Text: hi! I have two settings files for two sites:
  /etc/drupal/7/sites/default/civicrm.settings.php
  /etc/drupal/7/sites/ANOTHERDOMAIN/civicrm.settings.php
  the setting is: define( 'CIVICRM_UF'               , 'Drupal'        );
Comments.UserDisplayName: Dan E
Tags: <civimail><configuration>
Title: Config file issue / civicrm 4.6.8 / could not load the settings file
ThreadText: # Config file issue / civicrm 4.6.8 / could not load the settings file
  
  (Asked by: username_0 on 2015-09-30)
  
  when I try to add external links in mailouts i get the following link:
  <https://MYDOMAIN.COM/modules/civicrm/extern/url.php?u=300&qid=8370>
  
  when I click on it, there is an error:
  Could not load the settings file at: /usr/share/drupal7/modules/civicrm/../..//default/civicrm.settings.php
  
  Civicrm is part of Drupal 7 in my installation. my php version is PHP 5.4.45-0+deb7u1 (cli) (built: Sep 10 2015 08:34:47)
  the install runs on debian wheezy
  
  please help..
  
  edit: the problem seems to be in this function: function civicrm\_conf\_init() {
  
  in the civicrm.config.php which is located here:
  /usr/share/drupal7/modules/civicrm/civicrm.config.php
  
  **Tags:** civimail, configuration
  
  > **Comments:**
  > **username_1**: at a guess you have either a setting wrong in your civicrm.setttings.php or worse. your civicrm.settings.php file would usually be at sites/default/ - not somewhere within the civicrm directory  
  > **username_0**: it is currently in sites/default/  
  > **username_0**: I am guessing the setting in civicrm.config.php is a problem, because when I output the  $confdir variable, it doesnt make sense...  
  > **username_0**: it outputs:" /usr/share/drupal7/modules/civicrm/../../ " as the confdir, which cant be right  
  > **username_0**: when i directly set the $confdir in civicrm.config.php to "$confdir='/var/www/drup/sites';", then it works  
  > **username_1**: i would avoid making changes before you are sure the basic set up is correct as per the documentation - though it sounds like you are familiar enough you may also find you are making further problems down the track. sorry i can't offer much more advice other than as a caution  
  > **username_0**: would it be advisible to update the civicrm.settings.php file from the latest civicrm version? would that help? I think I am using a settings file from a much earlier version, when I compare it to the one that is shipped as an example with the 4.6.8  version..  
  > **username_2**: username_0 - maybe check to be sure that you don't have a copy of civicrm.settings.php inside yr civicrm as well as at drupal7/sites/default/?  In yoursite/sites/default/civicrm.settings.php file how is CIVICRM_UF defined, as 'Drupal' or ?  
  > **username_0**: hi! I have two settings files for two sites: /etc/drupal/7/sites/default/civicrm.settings.php /etc/drupal/7/sites/ANOTHERDOMAIN/civicrm.settings.php the setting is: define( 'CIVICRM_UF'               , 'Drupal'        );  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2015-10-28. Score: 1
  
  I think CiviCRM expects to find the CiviCRM module in /sites/all/modules/civicrm, as per: <http://wiki.civicrm.org/confluence/display/CRMDOC/Installing+CiviCRM+for+Drupal+7>
  
  This affects the loading of the settings file, which is expected to be in a directory relative to this. We encounter the same issue and have a patch for it which we will submit back once it is a more generic fix.
  
  
  ---
  
  ### Answer by username_4 on 2015-11-06. Score: 0
  
  Doesn't seems to be a solution to your specific problem but somewhat related and may help others.
  
  The link `.../modules/civicrm/../..//default/civicrm.settings.php` is the default link when civicrm doesn't find civicrm.settings.php in another place.
  
  In Drupal 7, if you have a site with multiple domains (e.g. example.com, subdomain.example.com), CiviCRM will only be able to find the proper civicrm.settings.php if you navigate using the main domain.
  
  I have provided a patch so that civicrm can use the sites/sites.php to load aliases. This way, it's possible to have multiple domain in the same site and civicrm will not try to find the civicrm.settings.php in sites/default (which is not used in our case).
  
  cf. <https://issues.civicrm.org/jira/browse/CRM-17521>
  
  > **Comments:**
  > **username_0**: I am still having the same issue after applying the fix  
  
  ---
  
  