moodle27 for windows too many redirects

moodle27 for windows too many redirects

by Pieter van der Hijden -
Number of replies: 6

When I install Moodle27 with the windows installer all goes fine until I reach the admin profile page. When I complete this profile and save, the system seems to freeze. When I go to localhost again (on the same bowser or via another browser) I never reach the start page. After half a minute the browser complains that the number of redirects is too large.

When I download Moodle27 without the installer and overwrite the eralier moodle directory with the freshly downloaded one, the problem remains the same.

Please, advice.

Average of ratings: -
In reply to Pieter van der Hijden

Re: moodle27 for windows too many redirects

by Ross Manson -
Increase max execution time in php.ini before running install script. Make it biggish, like 999.
In reply to Ross Manson

Re: moodle27 for windows too many redirects

by Pieter van der Hijden -

Thanks for the suggestion. Unfortunately, it did not help. I think there really is some infinite loop like localhost referring to localhost referring to localhost etc.

It happens during the installation when I have completed the admin profile page:

  1. I click the Update profile button
  2. The system is busy for some seconds.
  3. The system displays an empty page, for ever; actual hyperlink in address bar is: http://localhost/user/editadvanced.php 

New information I found out:

  • From the empty page, I can return to the Update profile page via Backspace.
  • When I click the Update profile button again, the system shows my profile page. Great. smile
  • When I now click the Home breadcrumb (in fact a hyperlink to "localhost"), the browser complaints about the redirection loop. sad

I assume something is wrong in the windowsinstaller settings.

In reply to Pieter van der Hijden

Re: moodle27 for windows too many redirects

by John Gifford -

I got this problem when trying to use a secure sign-in. Our school firewall had a rule that redirected all external traffic addressed to http://moodle.towers... to https://moodle.towers... and it caused this Ping-Pong effect, the request was being bounced between the firewall and the Moodle server. In effect the firewall took the http request and transferred it to https in accordance with it's rule then Moodle rejected it and redirected back to http passing it back to the firewall which did as it's rule said and transferred it back to https.
Once I effectively separated the http and https sites, by running the secure site on IIS and the "normal" site on Apache the traffic then followed the firewall rules and the Ping-Pong effect disappeared because all https traffic was https to which IIS responded while all http was http to which Apache responded.

I'd therefore check your firewall settings before assuming it's anything wrong with Moodle. I'm not saying it can't be Moodle in the wrong just in my case it was a setting on the firewall.

In reply to Pieter van der Hijden

Re: moodle27 for windows too many redirects

by Kevin Dearinger -

I'm having the exact same issue as Pieter van der Hijden.  We're you able to find a fix?

Kevin

In reply to Pieter van der Hijden

Re: moodle27 for windows too many redirects

by Mohan S -

Hi ,

 I would suggest, you should delete the cache for your moodle from moodledata folder.

(i.e )

Go to your Moodledata folder->cache->cachestore_file

under this path you may find the folder "default_application".

Delete that folder and run again your moodle.

This may be works...