Turned on Maintenance and can't get back in

Turned on Maintenance and can't get back in

by Ryan Marshall -
Number of replies: 4

I put the site in maintenance mode, put in a message and saved it. I then logged out. 

When I went back to turn maintenance mode off all I get is the maintenance screen, No way to get back into Moodle to turn it off. There is no log in etc...

Please help, thanks for your time

Windows Server, 2.6.x, IIS

Average of ratings: -
In reply to Ryan Marshall

Re: Turned on Maintenance and can't get back in

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Just go to your site and after the url in the address bar manually add '/login/index.php' e.g http://yoursitename.moodlecloud.com/login/index.php Then you will be able to login
Average of ratings: Useful (3)
In reply to Justin Hunt

Re: Turned on Maintenance and can't get back in

by Ryan Marshall -

Thank you so much. 

That did the trick.

Adding that to my notebook of tips and tricks.

In reply to Ryan Marshall

Re: Turned on Maintenance and can't get back in

by Ken Task -
Picture of Particularly helpful Moodlers

If there is a maintenance.html file at the moodledata root, remove it.

Add the follwing line to config.php:

$CFG->maintenance_enabled = ‘0’;

No need to restart anything, just access the site.

The config.php file overrides settings you see in the Moodle UI.  So back into that area for setting maintenance mode.  Leave your browser there.

Edit the config.php file and comment out the line you added by placing // in front.

Now looks like:

//$CFG->maintenance_enabled = ‘0’;

In your browser, now make the changes to take it out of maintenance mode.  The Moodle UI should allow you to do that now.

'spirit of sharing', Ken

Average of ratings: Useful (1)