The the current dev version, I get loops on most pages. It seems that it's because $_GET['q'] has already been resolved to the source path by the time hook_init fires.

Comments

Critical Tinkerer’s picture

Version: 7.x-1.x-dev » 7.x-1.3-alpha1
Priority: Normal » Critical

Same problem. (Don't know if it is the same cause as above.)

Drupal Core: 7 beta1 (clean install)

globalredirect-7.x-1.3-alpha1

itangalo’s picture

+1

When disabling the module (from Drush) I got a whole list of the following error messages:
# Notice: Undefined index: q in globalredirect_init() (line 208 of /var/www/jf.net/sites/all/modules/globalredirect/globalredirect.module).
# Notice: Undefined index: q in globalredirect_init() (line 210 of /var/www/jf.net/sites/all/modules/globalredirect/globalredirect.module).

That might give a clue as to what is going on. I hope.

grendzy’s picture

I believe the solution is to use http://api.drupal.org/api/function/request_path/7 instead of _GET['q'].

dave reid’s picture