Closed (duplicate)
Project:
Global Redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
4 Jul 2008 at 16:59 UTC
Updated:
22 Feb 2012 at 13:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
nicholasthompsonAh crap - good point!
I'll commit this asap!
Comment #2
foutrelis commentedIt's been two weeks and as far as I know, this bug still exists in 5.x-1.3-1 which was released four days after your reply.
Please look into it when you have time. :)
Comment #3
sethcohn commentedBump. I got bit by this during an upgrade of the module into a development subdirectory install. Please commit this ASAP, as it completely stop redirection without it if your site is not at the webroot directory.
Comment #4
sethcohn commentedOOPS! Important Correction:
You CANNOT use base_path(), because common.inc isn't called by hook_init.
Per http://drupal.org/node/174366#comment-709393
You can (and likely should) use:
$GLOBALS['base_path'] instead.
Comment #5
sethcohn commentedBetter issue for more documentation on why you can't use base_path()
#219916: Call to undefined function base_path()
Comment #6
foutrelis commentedGreat catch sethcohn! I updated the patch to use $GLOBALS['base_path'].
Comment #7
nicholasthompsonCommitted to latest DEV release - will appear in next official release...
http://drupal.org/cvs?commit=130598
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
David Lesieur commentedIn my setup, Drupal runs in a subdirectory, but requests are rewritten so the subdirectory does not appear in URLs. Therefore, the following condition in globalredirect_init() always apply, preventing Global Redirect from working normally:
As I understand it, this condition aims at telling whether the current script is really Drupal's, but I'm not sure how to define this condition in my context...
Comment #10
nicholasthompsonFixed in 6.x-1.x-dev and in 5.x-dev which are about to get branched into releases very soon.
Comment #11
nicholasthompsonOk I've just noticed that use of
$GLOBALS['base_path']- although syntactically correct - doesn't solve the problem as the base path is relative to the file doing the bootstrap.This simple fixes the problem if the issue is a module having a bootstrapping file which isn't called "index.php".
Marking as duplicate of #304025: not working when drupal is installed in a subdirectory
Comment #12
bartoll commentedsub+