Jump to content

Topic on Extension talk:BlockAndNuke

Redirect loop

9
Summary by Ciencia Al Poder

See current workaround in this reply

EFFemeer (talkcontribs)

I'm getting this error

The webpage at http://drebbel.net/wiki/Special:BlockandNuke has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

Installed software

Entry point URLs

Installed skins

Installed extensions

Installed libraries

Ciencia Al Poder (talkcontribs)

Inspecting the responses from your server, I see this:

http://drebbel.net/wiki/Special:BlockandNuke 302
http://drebbel.net/wiki/Special:Blockandnuke 301
http://drebbel.net/wiki/Special:BlockandNuke 302
http://drebbel.net/wiki/Special:Blockandnuke 301
...

It may be a bug in the extension, but the different HTTP responses 301 and 302 seems to indicate one of them is being done by the Apache webserver itself, where PHP is not involved, probably caused by a bogus redirect rules or Mod Alias

EFFemeer (talkcontribs)

Thank you very much for your help. Unfortunately my browser is not as explicit as yours. I only get "has resulted in too many redirects." I've played around with .htaccess to no avail. Puzzling!

Do you happen to know a way to find out at which level the redirect occurs? I have no command line access to my server.

Ciencia Al Poder (talkcontribs)

Uhmmm, well, it seems the extension is indeed broken. I've installed it and had the same problem.

To fix it I edited the file called BlockandNuke.php adding the following:

$wgHooks['LanguageGetSpecialPageAliases'][] = 'ban_onLanguageGetSpecialPageAliases';
function ban_onLanguageGetSpecialPageAliases( &$specialPageAliases, $langCode ) {
        $specialPageAliases['blockandnuke'] = array( 'BlockandNuke' );
}

Pinging @User:MarkAHershberger so he's aware of the bug

MarkAHershberger (talkcontribs)

Thanks... Sorry for taking so long on this. Fixing.

EFFemeer (talkcontribs)

Works fine now. Thank you very much. I couldn't find anything.

60.231.17.114 (talkcontribs)

Fixed it for me too thanks Ciencia

AlFrame (talkcontribs)

Fixed it for me too.Thanks!! BUT: [StartRant]Just wasted about 5 hours to get this to work. I only noticed once I started looking at the page with chrome. Firefox Only told me that the page is not redirecting correctly. With this text as keyword search on google and the Apache error log text I wasn't able to find this solution. Chrome then gave me the "too many loops" error. Using that as a keyword on my search finally got me here... I downloaded the extension today. This fix is here for over a month and not yet implemented... The workaround works. BUT it's a workaround. At least this solution should be put as a link to the download page of the extension?[EndRant]

MarkAHershberger (talkcontribs)

I think the download is fixed, nowww.

Reply to "Redirect loop"