I found this when I ported drupal.sh to D5 but it also applies to D6. I didn't have and credentials set in my default folder and when I tried to run drupal.sh I got and error saying that it couldn't load sites/defaults/settings.php even though I put the URI as http://example.com and had sites/example.com/settings.php setup.
debbugging the issue I found it was because of $_SERVER['SCRIPT_NAME'] = './scripts/drupal.sh'; which meant conf_path() looked for sites/example.com./settings.php instead.
I'm surprised no one else has seen this issue before.
I'm marking this critical because it breaks normal convention and prevents cron from running for different sites using the same install.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal.sh_.patch | 442 bytes | josh waihi |
Comments
Comment #1
sunsubscribing
Comment #2
sunCan you elaborate a bit more on your (multi-site?) setup, and also, how exactly you invoked drupal.sh?
Comment #3
josh waihi commentedwow, this issue is quite old now. But normally i invoke drupal.sh to like so:
90% of the time I don't have a problem, it only occurs with multi-site when trying to load a settings.php from anywhere other than the default location.
Comment #4
ben_scott commentedHi -
I'm running into a very similar problem on 6.15 - if $_SERVER['SCRIPT_NAME'] is not defined in drupal.sh, $base_path will be set to /path/to/drupal, which breaks some parts of the site. Two other bugs that I've run into:
1. Gmap markers disappear (See http://drupal.org/node/478294#comment-2340414)
2. The available updates notification email has the wrong path (The "See the available updates page for more information" goes to /path/to/drupal/scripts/admin/reports/updates rather than domain/admin/reports/updates).
The patch above fixes the issue for me.
Cheers,
Ben
Comment #6
dpearcefl commentedIs there any interest in this issue? Is this a Drush or Drupal issue?
Comment #7
sunComment #8
dpearcefl commentedSun, please resubmit your patch against the latest 6.x-dev codebase and give is a proper filename.
http://drupal.org/node/1054616
[description]-[issue-number]-[comment-number].patch