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 »
  • Using Multi-Site functionality »
  • Using Civi and Domain Access (Drupal)
Pages: 1 [2]

Author Topic: Using Civi and Domain Access (Drupal)  (Read 7729 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using Civi and Domain Access (Drupal)
May 31, 2012, 03:17:49 pm
You're right - there is no connection between the id in the domain access & civicrm_domain - although you can tweak them to be the same if it makes it easier. The one in the civicrm.settings.php is the one in the civicrm_domain table.

The other error you mention - I don't think it's a multisite thing - but I have seen it before - where it's appending the url on top of the URL?

std things to try =
- if you are using d6 & 4.1 make sure you have the uf set to drupal6 in civicrm.settings.php
- clear civicrm_cache table
- check file permissions on the templates_c etc
- check your resource & directory urls (which relies on you having the right entry in civicrm_domain)

There's something else that I can't quite think of @ the moment
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using Civi and Domain Access (Drupal)
June 01, 2012, 09:59:31 am
Quote
You're right - there is no connection between the id in the domain access & civicrm_domain - although you can tweak them to be the same if it makes it easier. The one in the civicrm.settings.php is the one in the civicrm_domain table.

Cool. Then it should be a simple matter just to change the values in civicrm.settings.php until the error messages go away.

Quote
The other error you mention - I don't think it's a multisite thing - but I have seen it before - where it's appending the url on top of the URL?

Exactly. Restoring the Civi DB is easy enough at this point, so I may try reproducing the steps to see exactly where the process goes awry. If things are recoverable from there, I may be able to continue - question: should the values in rows 32-34 (and, for that matter, rows 35-40) change during the process? If not, I could perhaps update the mangled values and move on.

Quote
- if you are using d6 & 4.1 make sure you have the uf set to drupal6 in civicrm.settings.php
- clear civicrm_cache table
- check file permissions on the templates_c etc
- check your resource & directory urls (which relies on you having the right entry in civicrm_domain)

I'm on D7 and yes, I know about the uf settings for D6 - I've got 4.1 on a D6 site somewhere. Yes, yes and yes otherwise.

Quote
There's something else that I can't quite think of @ the moment

 ;D You're funny. Sure - there's always something else... until there isn't!

I may try again later today and see what happens and keep y'all posted - thanks a ton, Eileen!


bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using Civi and Domain Access (Drupal)
June 01, 2012, 03:31:40 pm
Well, I'll be damned. It works. Almost.

Having the right domains IDs in civicrm.settings.php did the trick - It looks like I now have separate settings for each domain. Woo hoo!

But... I still get the "Do not have permission to write to file: /latest-version-cache.txt" error.

The paths were mangled in civicrm_setting rows 32-34 and 38-39. This seemed to happen after I cleared caches and updated directory paths. I manually edited the DB to restore the previous values, but the error persists.

Icons fail to load (which are in an entirely different directory), so I suspect the error is symptomatic of a larger, permissions-related problem. I've tried everything I can think of (clearing caches, deleting the templates_c folder, etc.) to solve this and I'm coming up blank.

(Update: Turning off version reporting eliminates the error message, but icons do not appear - so yes, this is symptomatic of a larger problem and doesn't relate specifically to latest-version-cache.txt.)

Any ideas? Thanks so much... almost there!
« Last Edit: June 01, 2012, 04:20:54 pm by bcobin »

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using Civi and Domain Access (Drupal)
June 02, 2012, 05:51:06 am
BINGO! Got it.

Setting ConfiBackend on the affiliate sites does the trick - as soon as I set it on the first affiliate site, the error went away and icons appeared. Woo hoo!

So it looks like everything's working - now to get down to using it!

Thanks so much, Eileen - you are a true rockstar. And thanks, Peter, for the assist! Now to work... Yipee!  ;D

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using Civi and Domain Access (Drupal)
June 04, 2012, 03:03:27 pm
Hmm - I think I'd better give you the karma on this one since the last 3 updates seemed to be you solving your own problems!
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Using Civi and Domain Access (Drupal)
June 05, 2012, 09:01:31 am
You are too kind, Eileen!

I'd open up another thread for this, but I may as well ask here insofar as I'm now just a "newborn" with DA:

It looks like Events are not segregated between domains - I thought I'd be able to have each site have its own Event management/calendar with the "master" site having access to all.

Is that not possible, or am I missing something? Thanks again for all your help!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using Civi and Domain Access (Drupal)
June 05, 2012, 01:26:22 pm
No, they aren't segregated - although they have a created id that sort of ties in with permissions.

But, if using views I would probably create campaigns & use that as a criteria on your views I think
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • Using Civi and Domain Access (Drupal)

This forum was archived on 2017-11-26.