CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Defining the civicrm root directory
Pages: [1]

Author Topic: Defining the civicrm root directory  (Read 629 times)

benfurber

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.8 and 4.1.2
  • CMS version: Drupal 4.1.4 and Wordpress 3.4.1
  • MySQL version: 5.1.61 and not sure
  • PHP version: 5.3.3 and sure
Defining the civicrm root directory
October 02, 2012, 08:59:45 am
Hi All,


The developers I used to set-up civi on drupal for me placed the files in sites/all/modules/contrib/ not sites/all/modules/ so a load of stuff doesn't work. For example I can't track email opens because the email is calling sites/all/modules/civicrm/extern/open.php?q=17783 not sites/all/modules/contrib/civicrm/extern/open.php?q=17783.

Where do I define the civi root directory? I thought it was setting_location.php but changing that hasn't solved the problem.


Thanks in advance!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Defining the civicrm root directory
October 02, 2012, 09:48:27 am
You should have a file called civicrm.settings.php in the same directory as your Drupal settings.php file (generally in sites/default if you're NOT running multiple drupal sites on the same codebase). $civicrm_root is defined in that file.
Protect your investment in CiviCRM by  becoming a Member!

benfurber

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.8 and 4.1.2
  • CMS version: Drupal 4.1.4 and Wordpress 3.4.1
  • MySQL version: 5.1.61 and not sure
  • PHP version: 5.3.3 and sure
Re: Defining the civicrm root directory
October 04, 2012, 02:38:57 am
Hi Dave,


Thanks for getting back to me so quick.

civicrm.settings.php is actually set-up right (i.e. pointing to the right directory) but both the open tracker and link tracker point to the wrong directory.

Any idea what's wrong?


Ben

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Defining the civicrm root directory
October 04, 2012, 09:18:40 am
Looks like open tracking link is built using CiviCRM Resource URL (Administer > System Settings > Resource URLs) - I found this in CRM/Mailing/BAO/Mailing.php:

Code: [Select]
      array_push($html, "\n" . '<img src="' . $config->userFrameworkResourceURL .
        "extern/open.php?q=$event_queue_id\" width='1' height='1' alt='' border='0'>"
      );
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Defining the civicrm root directory

This forum was archived on 2017-11-26.