Closed (fixed)
Project:
Global Redirect
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2007 at 20:06 UTC
Updated:
6 Jan 2008 at 23:35 UTC
Site has worked fine until I installed this module, when suddenly I was not able to log in, each time I entered my login details on the home page, it went back to my home page without logging in.
If I navigated to the forum section, and at 'please login or register to post' I enter my login, it works OK (but still cannot login from home page).
I searched this forum, and have found others with the same problem, so I followed their advice and disabled the Global Redirect module.
Result - I am now back to being able to login from home page!
Drupal 5.1, CCK, TinyMCE, IMCE modules.
Comments
Comment #1
nicholasthompsonI updated the 5.x-dev version to cope with this bug.
The issue it that Drupal and Global Redirect end up in a fight. When you submit for login, the form target gets ?destination=frontpage appended to it. After login drupal tried to redirect you to the frontpage, but global redirect sees frontpage and tries to send you to the root - but preserves the destination argument. Drupal then redirects you to frontpage, GR detects is and redirects to root while preserving the argument - and thus the loop continues.
I fixed this in 4.7.x-dev and 5.x-dev. I simply told it (in the init() function) to not do any redirecting while there is a destination variable (ie, let drupal get the redirect off its chest first).
A possible better sollution could be to check for an alias on the destination argument too - but I'd like to get this issue eradicated first.
Which version of GR are you using (it should say on one of the first lines of the .module file)?
This should have been fixed here: http://drupal.org/node/115649
According to the CVS messages, version 1.1.2.4.2.2 should contain the fix. God I love the CVS numbering system....
Comment #2
pauldreed commentedI have version globalredirect.module,v 1.1.2.4 2006/11/27 10:05:05
Which I downloaded last night from dupel.org
Comment #3
nicholasthompsonthat's the old "stable" version - get the dev version (5.x-1.x-dev) which was released 2007-Feb-06.
Comment #4
pauldreed commentedYes, the dev version has sorted it!
Thanks
Comment #5
nicholasthompsonCool- thanks
Comment #6
(not verified) commentedComment #7
bkoopmans commentedHi there. I do not have the Global Re-direct Module and am runnign 5.5. I have the same exact symptoms. Any help would be appreciated.
Comment #8
nicholasthompsonIf you dont have GlobalRedirect then it would be very difficult for GlobalRedirect to be causing this problem. ;-)
I advise you disable all your contrib modules until you can login and then re-enable them until the problem re-occurs. You can disable modules directly in the database if you are unable to log into the site to do so. For more information I suggest jumping onto #drupal-support on IRC or posting a support request in the forum.
Comment #9
bkoopmans commentedThanks. I've taken your advice and posted a supoort request.