CiviCRM

hyphen in path affects install scripte

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 3.1.3
  • Fix Version/s: 4.3
  • Component/s: None
  • Labels:
    None

Description

If you decide to locate your civicrm codebase outside sites/all/modules (i.e. because you have multiple sites & multiple versions of civicrm) you CAN run the install script using

http://<your_drupal_home>/sites/<sitename>/modules/civicrm/install/index.php

UNLESS your sitename has hyphens in it. I am having to work around this by creating temporary symlinks with no hyphen.


http://forum.civicrm.org/index.php?topic=12560.new;topicseen

NOTE that the presence or otherwise of location.settings.php doesn't seem relevant to this (ie. we had the same response before & after I put it there)

Activity

Hide
Eric Borm added a comment -
On line 63 of modules/civicrm/install/index.php is a regular expression that checks for the site name (in a Drupal multi-site situation). The regular expression is : "([a-zA-Z0-9_.]+)". Clearly this will not match a site name with a hyphen in it.

I edited mine to look like this: "([a-zA-Z0-9_\-.]+)" and installation continued smoothly.

I hope that helps!

  --Eric
Show
Eric Borm added a comment - On line 63 of modules/civicrm/install/index.php is a regular expression that checks for the site name (in a Drupal multi-site situation). The regular expression is : "([a-zA-Z0-9_.]+)". Clearly this will not match a site name with a hyphen in it. I edited mine to look like this: "([a-zA-Z0-9_\-.]+)" and installation continued smoothly. I hope that helps!   --Eric
Hide
Eric Borm added a comment -
Sorry, spoke too soon:) The same error exists on line 833.
Show
Eric Borm added a comment - Sorry, spoke too soon:) The same error exists on line 833.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: