Once I install the PURL module I can't access my site. I'm able to access the front page, but that is all. I get a warning that the page I'm visiting contains a redirect loop. I've recieved this error from both the 7 beta and dev version of the module. So once I install the module I can't uninstall it. I was forced to manually delete the module from my ftp to gain access, install it again, and then uninstall it completely from the modules page...You're allowed to look at the modules and uninstall but if you don't do it right away you start to get that redirect loop error message. I guess after you click a few links the module starts to kick right in.
Also, I have the latest updates of core and Ctools.
Comment | File | Size | Author |
---|---|---|---|
#16 | globalredirect_conflict-1351212-16.patch | 773 bytes | acouch |
#8 | globalredirect_conflict-1351212-8.patch | 359 bytes | bblake |
#7 | globalredirect_conflict-1351212-7.patch | 1.69 KB | pfournier |
Comments
Comment #1
AlanO CreditAttribution: AlanO commentedI've retried it on a fresh install and it works fine. I'm guessing it has to do with another module. Most likely the media module which is unstable. Version 2.0 to be specific.
Comment #2
lefnire CreditAttribution: lefnire commentedI'm also having that issue, "The page isn't redirecting properly" for any page but home. I'm xdebugging currently, hopefully will find something
Comment #3
lefnire CreditAttribution: lefnire commentedglobalredirect for me, and as pointed out in #1074446: Should PURL weight be higher or lower than other path-related modules? if I modify purl's system weight, it seems to fix... but I'll investigate more
Comment #4
mrfelton CreditAttribution: mrfelton commentedSame problem for me. Disabling Global Redirect fixes the problem. I haven't tried altering the weights.
Comment #5
noslokire CreditAttribution: noslokire commentedSame issue here, disabling Global Redirect allowed me to access the site
Comment #6
chiebert CreditAttribution: chiebert commentedSame here, and tried it with current dev releases of purl and globalredirect. Unfortunately: (1) purl is one of the dependencies for mobile_tools 2.x and 3.x branches (which one wants to test) AND (2) globalredirect is too valuable to disable. Any progress on making these two play nice together?
Comment #7
pfournier CreditAttribution: pfournier commentedI got the same conflict with globalredirect.
The problem is that if $_REQUEST['q'] is defined, globalredirect uses $_REQUEST['q'] to get the request path; if the variable is not defined, it uses something else.
However, purl_init() does
so globalredirect thinks we are on the front page.
This code is there for historical reasons and is not used anymore. Even if it was still useful, it could be replaced by explicit checks before using $_REQUEST['q'].
Here is a patch that fixes this and a similar pattern for $_GET['q'].
Comment #8
bblake CreditAttribution: bblake commentedThanks for the patch. I'm wary of making all these changes just in case something may be relying on the $_GET part, but I've created and committed a patch that removes the $_REQUEST initialization as it appears that part indeed is not used anymore. This should fix the immediate issue with globalredirect.
Comment #10
escoles CreditAttribution: escoles commentedHas this patch been added to the dev version? If not, this defect (PURL in conjunction with Global Redirect causes redirect loop) still exists.
Comment #11
escoles CreditAttribution: escoles commentedComment #12
davidneedhamIt looks like there hasn't been a new rollout of a recommended release since 2011... so @escoles, if you tried the 7.x-1.0-beta1 like I did, it wont work. I can confirm that this bug is fixed in the latest dev release, but man there really needs to be a new recommended release.
Comment #13
liquidcms CreditAttribution: liquidcms commentedi grabbed latest -dev (7.x-1.0-beta1+11-dev (2013-May-24)) and i verified that the patch from #8 is included there; but this does not fix the problem. once i disabled global redirect; issue is gone.
i'll try patch from #7
Comment #14
liquidcms CreditAttribution: liquidcms commentedmanually applied patch from #7 to latest -dev and this also does not fix the redirect issue.
Comment #14.0
liquidcms CreditAttribution: liquidcms commentedadded usefull info.
Comment #15
liquidcms CreditAttribution: liquidcms commentedchanging title.
as i mentioned above; i just tried the latest -dev (no patches) and site is broken with Global Redirect enabled. with it disabled the site works.
i can see the that the -dev i am trying has the patch from #8 included - this doesn't help.
i manually applied the patch from #7 -
this seems to fix things - but will report back after more testingnope, my bad.. hadn't actually enabled Global Redirect - even with patch from #7 (which includes the one from #8) this still does not work.
Comment #16
acouch CreditAttribution: acouch commentedI was able to fix a redirect loop caused by enabling globalredirect when I already had a custom provider defined by PURL.
The provider I had was defined like so:
Global Redirect redefines the alias from 'prefix/this-page' to '/this-page'. This is then passed to PURL which re-adds the prefix, in the $options array of hook_url_outbound_alter, which then causes a redirect in Global Redirect and an infinite loop occurs as the $options array with the prefix keeps getting fired.
The attached patch checks if Global Redirect is enabled and re-adds the prefix to the $path instead of the $options array which keeps Global Redirect from redirecting from 'this-page' to 'prefix/this-page' and also keeps PURL from adding the unnecessary prefix to the $options array.
Comment #17
acouch CreditAttribution: acouch commented