When calling scripts/drupal.sh from command line for a specific site, the system loads default settings.php not the specified site settings.

CommentFileSizeAuthor
#2 fixed-operation-1022870-3931966.patch619 bytesalmul0

Comments

almul0’s picture

The solution I have found is to add the variable $_SERVER['SCRIPT_NAME'], in that way when the bootstrap load the configuration settings it found the site path.

Line 119 - scripts/drupal.sh

$_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = $path['path'];

I'll do the patch when I learn to do them.

almul0’s picture

Status: Active » Needs review
StatusFileSize
new619 bytes

Here is the patch made with git.

Hope it works well.

almul0’s picture

Here is the patch made with git.

Hope it works well.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.