Maintenance Mode

Maintenance Mode

by Zee Sef -
Number of replies: 1

Hi 

I logged in as Administrator and enabled Maintenance Mode. After logging off, I can not login anymore. 

I tried to cancel the Maintenance mode using $CFG->maintenance_enabled=0; in the config file. I can now see my website, but I can still not login. When I try to login the website is trying to redirect me (but I dont have any redirects setup)

When I put my username and password for the admin - it says file not found and also my URL now has https: at the begining, which it didnt use to have.

thank you

Zee

Average of ratings: -
In reply to Zee Sef

Re: Maintenance Mode

by Ken Task -
Picture of Particularly helpful Moodlers
See if there is a maintenance.html file at the root of your moodledata folder.  If you see one there, remove it.


As far as re-direct ... just after upgrading/updating the Moodle code files, Moodle would 'throw' the admin user into the screens for upgrading.   But it wouldn't switch to https by itself.    Since you've been into editing the config.php file, check to see if the $CFG->wwwroot variable has https rather than http.

Also, in addition to commenting out the line you added to config.php, clear the browser cache/cookies for the site before attempting to re-access.

What file isn't found?

Could be an in-complete replacement of Moodle code IF you are using FTP to do that.

Might help to know what version of Moodle and exactly how you attempted the upgrade.

'spirit of sharing', Ken