I installed Global redirect 7.x-1,3-alpha1 to D7 beta 3. When I access front page everything goes fine, but when I try to acces any inner content it stucks in redirect loop.
I am also unable to access administrative overlay. Overlay opens, but it stays blank (I see only half transparent overlay background, but no page over it).
Comments
Comment #1
nadavoid commentedI encountered this too, when installing in Drupal 7 RC2. I tried the latest dev release, which was posted July 16, 2010, and it resolved this problem, and seems to work properly.
Comment #2
Bence commentedSame here: redirect loop.
Comment #3
Bence commentedOk, same here, installed latest dev release, which was posted July 16, 2010, and it resolved this. Please remove the broken release from the stable (green background) area!
Comment #4
akalata commentedDev release is working, please remove -alpha1 since it is broken.
Comment #5
dave reidPlease review existing issue in the module's queue to help get a new stable release out. There is nothing to RTBC here in this issue.
Comment #7
MPeli commentedI am using the latest version of Global redirect and if I enable the module I cannot access my Drupal 7 website because I get following error:
I use Google Chrome, firefox gives similar error.
To access the website, I have to manually turn off the module and run update.php
UPDATE system SET status=0 WHERE (filename LIKE 'sites/all/modules%' ) AND status=1 AND type='module'
Comment #8
MPeli commented7.x-1.x-dev works fine only for my non-multilingual sites.
7.x-1.3 works for non-multilingual and multilingual sites.
Comment #9
Noe_ commentedI have to disagree with you.
when I go to mysite/es it keeps redirecting me to mysite/es until I get Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
See:
And this is with globalredirect 7.x-1.3
Comment #10
Noe_ commentedThis issue has been solved in 7.x-1.x-dev so I guess this is a non issue.
So I am a little confused by MPeli
It is just the other way around:
7.x-1.3 works with non-multilingual sites
7.x-1.x-dev works for non-multilingual and multilingual sites
Comment #11
MPeli commentedHi,
I am currently using both version of Global Redirect (7.x-1.3, 7.x-1.x-dev). I have got several websites running on Drupal 7. Some of them allow users to switch languages (without using i18n).
If I install dev version on my multilingual sites I get redirect loops. Non multilingual sites works fine with both versions of Global Redirect for me.
That is my experience.
Martin.
Comment #12
Noe_ commentedhmmm, weird.
I found the 'bug' to be in lines 77 and 82. Here it is solved because I am running the 1.x-dev version but in the 1.3 version it says language_url_rewrite
Because the language_url_rewrite function does not exist (it is called locale_language_url_rewrite_url() in locale.module) this function never gets called, and the $request_path never gets updated.
This would become a problem in line 95 where the $request_path is checked with $prefix which aren't the same because $request_path would contain 'es' and $prefix would be empty, and therefore it calls a drupal_goto
And there we have the redirect.
But since it redirects without changing anything the next call would do exactly the same, and the same, and the same.
So that´s why I said it was exactly opposite of your problem.
Comment #13
jm.federico commentedThis function is not needed anymore.
Actually $prefix is not needed anymore
Patch from #774950-7: Incompatible with hook_url_inbound_alter() fixes the language problem
Lines about language_url_rewrite() can be removed.
I'm marking this as a dup since the other fixes the problem.
Comment #14
gregor171 commentedThe problem is in Global redirect module: it redirects to default perfix over and over by adding prefix!
A quick way to solve this problem is to clear language prefix for default language by:
UPDATE languages SET prefix='' where language='en'To disable all enabled modules:
UPDATE system SET status=0 WHERE (filename LIKE 'sites/all/modules%' ) AND status=1 AND type='module'but after enabling them back, a problem will reaper!
Solution from Noe didn't work for me!
Comment #15
Masala commentedThe same bug with 7.x-1.4
How to remove it all now?!
sql reqest for disable and clear cache
UPDATE system SET status='0' WHERE name='globalredirect';
DELETE FROM cache_bootstrap WHERE cid='system_list'
its now work fine!