The page isn't redirecting properly with Fresh installation

More precisely, I installed the Windows MOODLE_25_STABLE Distribution, Moodle 2.5.2+ (using XAMPP v1.7.4).

I got the Error 310 (ERR_TOO_MANY_REDIRECTS), right upon install, after registering the Administrator user, and before setting the webpage preferences.

@Joshua Ellis, I tried your solution but it didn't work for me, at least not verbatim, but I got inspired 

The browser debugger was most useful however: <F12>, Network tab, I could see the page being redirected back and forth, and could see which page was being redirected: index.php?sessionstarted=1&lang=1

In the file C:\Program Files\Moodle\server\moodle\admin\index.php

I made a search and commented out:

//redirect("index.php?sessionstarted=1&lang=$CFG->lang");

It probably breaks something, but for the time being, it works.

PS: if you check out (using git), it should not overwrite your local changes. At worst you'll get a conflicted state which you'll need to address.

你可能感兴趣的:(redirect)