Moodle 3.3.2 ERR_TOO_MANY_REDIRECTS

11,712

Solution 1

Delete all the data from moodledata folder (Try this only with the new instance otherwise will loose the data), then try to open yourdomain/moodle in your browser. It will work.

Solution 2

Different approach to solving this problem after checking and making sure that apache and php configuration are ok. I the added this line of code to my noodle config file. $CFG->sslproxy = true;

And this resolved the issue.

Solution 3

go on your server directory such as "www=>moodle directory=>admin open index.php find following "redirect("index.php?sessionstarted=1&lang=$CFG->lang");" and comment it i find this on line 712 in moodle 3.7. it might be changed with version save file and refresh page

Solution 4

Search the moodledata directory, enter it and delete the following directories

  • cache
  • localcache
Share:
11,712
Jose M
Author by

Jose M

Updated on June 24, 2022

Comments

  • Jose M
    Jose M about 2 years

    I've installed successfully Moodle version 3.3.2 and at the end, i got an error to connection database. But as i've seen it generated all tables in database moodle. Now, i can't enter, ERR_TOO_MANY_REDIRECTS on loading pages. URL: http://example.com/admin/index.php?cache=1.

    Additional Server information:

    OS: Ubuntu 16.04 PHP: 5.6 Mysql: 5.7.20-0ubuntu0.16.04.1

  • Jose M
    Jose M over 6 years
    Yeah, that's work i wanna understand that when i open the Main Page, it shows just a link to Login and nothing else. I suppose that it should be show the calendar and List of courses in the main page and Login form. Is it correct?
  • gnuwings
    gnuwings over 6 years
    It depends on the frontpage settings. Normally the index page list the available courses and login link on right top corner.
  • Abhishek Gurjar
    Abhishek Gurjar over 5 years
    Please provide explanation or cite with some article to your answer.
  • user3224142
    user3224142 over 5 years
    Hi @AbhishekGurjar, I was come to this page and trying to delete the cache and localcache in moodledata, but the error come again after few minutes then I figure it out that the server disk was full, that's why deleting cache and localcache was working because it empties some space.
  • Cristian
    Cristian almost 3 years
    This has done the trick for me, many thanks mate!