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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Non-Multi-Site and the Site Name value, Base URL value
Pages: [1]

Author Topic: Non-Multi-Site and the Site Name value, Base URL value  (Read 2222 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Non-Multi-Site and the Site Name value, Base URL value
January 26, 2011, 01:42:36 pm
@ path Administer CiviCRM » Global Settings » Settings - Update Directory Path and URL

I am seeing an "Old Site Name" / "New Site Name" value which I do not recall in earlier versions. (We started out @ Civi 2.0.x)

Its value is a directory which does not exist in our installation. It is set to: /sites/domain.org/

Both our Drupal and CiviCRM config files live happily in /sites/default/

I could not find mention of this value in the standard installation docs.

Could we get some clarification as to what exactly this variable does? How it should be configured for a non-multi-site installation?

If necessary I will gladly update the documentation.

<><><><>

Also, just thought of it, Base URL is setting itself to: https://domain.org/

When I try backing out the "s" in https and save, it pops right back in again.

I do have a rule set in Drupal mod Secure Pages to "civicrm*" so maybe Civi is getting the hint that it is going to be using that protocol.

I have:
$base_url = 'http://domain.org';  // NO trailing slash!
set in /sites/default/settings.php

<><><><>

We are trying to track down an "access denied" after a CC charge goes through successfully. We are seeing forum posts that such is related to not being consistent in the URL for the site. EVERYWHERE we have this site configured to the non-www URL, and the SSL cert is also for that domain name.

We are grasping at straws, trying to make sure all I's are dotted, all T's crossed. Thus these questions. TIA!
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Non-Multi-Site and the Site Name value, Base URL value
January 26, 2011, 05:01:05 pm

basically that script tries to detect your old mapping (from the DB) and the new mapping (from your civicrm.settings.php file) and tries to make sense of it. The Site Name variable i think is used if you are using drupal multisite to host civicrm

However recent code has tried to make most/all paths relative.

/sites/default/ is fine.

might be best to check the code here:

CRM/Admin/Form/Setting/UpdateConfigBackend.php

and see how it infers the default values (sinces it been some time since i wrote that code)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Non-Multi-Site and the Site Name value, Base URL value
January 27, 2011, 09:20:17 am
Odd, I recall replying to your post Lobo. So I will try to repost my prior post and the followup I came just now to do.

Unfortunately the "Site Name" value seems intertwined with the "Base Directory" value.

If I set "Site Name" to "/sites/default/" and save, when I revisit the page to double check the settings for correctness:

Old Base Directory    /srv/www/sites/default/www/files/
New Base Directory    /srv/www/sites/domain.org/www/files/

Old Site Name    /sites/default/
New Site Name    /sites/domain.org/

And it wants to put "Site Name" right back to what it started out as.

Looking through the code, lead me to CRM/Core/BAO/Setting.php in search of getBestGuessSettings( )

That does not appear to be Non-Multi-Site friendly as-is in v3.3.3. Specifically:

Code: [Select]
$siteName = "/sites/$siteName/";
And no check if Drupal is running in Non-Multi-Site mode with /default/

I am going to attempt to come up with a diff that makes Non-Multi-Site work properly, and I suppose manually apply the diff until someone running Civi with Drupal in Multi-Site mode is able to make the diff support both very well. Once I get that diff, I will attach the diff to a JIRA ticket and report the ticket number in this thread.

Possibly does there need to be a radio button for Non-Multi-Site vs Multi-Site?
« Last Edit: January 27, 2011, 09:45:09 am by mdlueck »
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Non-Multi-Site and the Site Name value, Base URL value
January 27, 2011, 10:31:08 am
"Site Name and Base Directory tangle and fight on a non-Multi-Site Drupal installation"
http://issues.civicrm.org/jira/browse/CRM-7458

Attached my quick hack to get Non-Multi-Site working properly. Now I can get to what I was really trying to test / make work.  ;D
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Non-Multi-Site and the Site Name value, Base URL value

This forum was archived on 2017-11-26.