I'm thinking the 1.0 release for D6 might be a little bit premature. I upgraded to 1.0 from the previous release just fine, but a couple hours later I decided to start the sites over database-wise, so I emptied out the database and went back to install.php. When I went to re-enable the DA module, though, the "Too many HTTP redirects" problem pops up immediately after enabling the module. (I suspect "Too many HTTP redirects" is Omniweb's and/or Webkit's specific verbiage for the problem, but what's happening should still be apparent; the browser is getting bounced around too much by HTTP headers and is giving up instead of continuing indefintely.)
If I disable the module manually in the {system} table, I can get access to the site back, but this status message appears about twenty times:
You have followed an incorrect link to this website. Please update your links and bookmarks to http:///sbdc/admin/build/modules.
When this was happening, I was accessing the site through my computer's IP address on the office LAN (http://192.168.1.170/sbdc/). That part of the address seems to be missing from the message above.
Just to be sure, I tried a virgin install of D6.4 with no other modules and themes, then went to admin/build/modules and enabled just the Domain Access module (no submodules); the same problem occurred.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain.patch | 675 bytes | Garrett Albright |
Comments
Comment #1
Garrett Albright commentedHmm, interesting. If I try to enable the module while using Firefox 2, instead of an HTTP redirect problem, the browser tries to go to http://sbdc/admin/build/modules, which causes a generic "Server not found" error. It looks like the two browsers are interpreting whatever header Domain Access is throwing at them in different ways.
Comment #2
Garrett Albright commentedI fixed it…?
Comment #3
agentrickardThis is what happens when other people don't test patches!
It looks like #293453: Wildcard DNS - default domain broke this. BUT NO ONE TESTED IT.
Comment #4
agentrickardFor now, comment out line 63 domain.module:
Comment #5
agentrickardThe patch in #2 is likely the safest solution. Is the $_SERVER['HTTP_HOST'] variable reliable across all versions of PHP?
Comment #6
agentrickardFixed in 6.x.1.1 and 5.x.1.7.
I went a different way with the fix, simply ensuring that a value was present. The problem with the patch in #2 is that if you hit the site from one.example.com, that will be stored (incorrectly) as the primary domain. Better to bypass the redirect if the value is not set.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.