Today while testing out a fresh installation of Moodle 2.7 I came across the error ‘This webpage has a redirect loop’ due to which I was not able to enter the Moodle site as admin and can’t change anything even after clearing the browser cache and changing the browser also.

Redirect Loop Error
Redirect Loop Error

Doing a quick search on Moodle forums provide me few solutions which helped in resolving the error instead of going for a fresh install again, so I am reposting it here.
1. The first solution which worked for me was to commenting out the line number 451 of file yourmoodledirectory/admin/index.php file as:
2. and the second solution includes to Delete all the contents of Cache and Session directory in your moodledata directory and restart the browser.
For solution 1:
For solution 2:
Please post your solutions in the comments for the same problem if its different then the above two solutions.

Post Pages - Post Inline - WIRIS
Previous articleAttempt quiz even if the network is down using Quiz fault-tolerant mode Plugin
Next articleSubmit your proposal for MoodleMoot Australia 6-8 July 2015


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.