Turned on Maintenance and can't get back in

Turned on Maintenance and can't get back in

Ryan Marshall -
Atsakymų skaičius: 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

Įvertinimų vidurkis: -
Atsakymas į Ryan Marshall

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

Justin Hunt -
Particularly helpful Moodlers paveikslėlis Plugin developers paveikslėlis
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
Atsakymas į Ryan Marshall

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

Ken Task -
Particularly helpful Moodlers paveikslėlis

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