Closed (duplicate)
Project:
Global Redirect
Version:
7.x-1.3-alpha1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2010 at 21:45 UTC
Updated:
11 Oct 2010 at 22:51 UTC
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
Comment #1
Critical Tinkerer commentedSame problem. (Don't know if it is the same cause as above.)
Drupal Core: 7 beta1 (clean install)
globalredirect-7.x-1.3-alpha1
Comment #2
itangalo commented+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.
Comment #3
grendzy commentedI believe the solution is to use http://api.drupal.org/api/function/request_path/7 instead of _GET['q'].
Comment #4
dave reidThis is a duplicate of #852872: Undefined index on line 208/210. Caused by Drupal 7 handling Clean URL's differently to Drupal 6..