Site stuck in Maintenance mode in Drupal 7

neeraja picture neeraja · Feb 3, 2014 · Viewed 11.1k times · Source

My site is developed in Drupal 7. Recently I have put my site to maintenance mode. And now I need to put this site back to live.

Unfortunately I am not able to login as admin and 'Go Online'(Because of some modifications in the user login form). I have also tried to update the 'site_offline' variable by database query. But this also did not work. To my surprise, there was no variable like 'site_offline' in db. Why is this so?

Can anybody help to get this issue solved? Any help or suggestions will be a greatly appreciated.

Answer

Rahul Seth picture Rahul Seth · Dec 11, 2014

I also faced the same issue, and I add following statement to the end of the settings.php file. And it worked.

        $conf['maintenance_mode'] = 0;

Source : https://www.drupal.org/node/276457#comment-9364023