1

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

  • 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 – petednz - fuzion Sep 30 '15 at 9:41
  • it is currently in sites/default/ – Dan E Sep 30 '15 at 9:47
  • I am guessing the setting in civicrm.config.php is a problem, because when I output the $confdir variable, it doesnt make sense... – Dan E Sep 30 '15 at 9:49
  • it outputs:" /usr/share/drupal7/modules/civicrm/../../ " as the confdir, which cant be right – Dan E Sep 30 '15 at 9:52
  • 1
    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.. – Dan E Sep 30 '15 at 11:45
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.

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

  • I am still having the same issue after applying the fix – Dan E Dec 21 '15 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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