I get the "Operating in maintenance mode. Go online." message and the D7 site is not in maintenance mode.

The message doesn´t appears all the time, and sometimes it goes away when I refresh the page.

I´ve cleared cache. I´ve tested and it is most certainly NOT in maintenance mode.

I´ve checked Drupal Error reports, and I get this one (I don´t know it it´s related or not with the problem):

TIPO    acceso denegado
FECHA   Martes, 14 May, 2013 - 01:11
USUARIO Anónimo (-)
UBICACIÓN   http://www.liga.net/cron.php
MENSAJE frontpage
SEVERIDAD   advertencia
NOMBRE DE LA MÁQUINA    xx.xxx.xx.xxx

Sometimes in a complete random way, as an anon, it appears the page "site offline". When I reload the page it´s up again...

Any thoughts on this will be very much appreciated. Thanks!

  • 1
    In D7, cron.php requires an access key that you can find in admin/reports/status. If it's not present, you'll get a 403. – AyeshK May 14 '13 at 4:43

Search variable table in database. Variable named maintenance_mode should be there, and should be a serialized representation of false (or numerical 0). If it's not, your site will have a problem. If this appeared after upgrade, re-running update.php might help

| improve this answer | |
  • Thanks for your reply! That variable it´s not there, and after the upgrade its still not there. May I create it manually? It seems I just have to create it under name, and put a zero (0) in value slot. Is that correct? Thanks again! – Rosamunda May 14 '13 at 15:36
  • b:0 for false and b:1 for true, not just a number or string. Yes, do create it manually. – Mołot May 14 '13 at 17:05
  • Thanks again for your comment! I´ve tried the update script one last time before messing manually with the database (scary thing!), and now there´s a maintenance_mode. But its value is "[BLOB - 4 B]" ?? – Rosamunda May 14 '13 at 21:34
  • Your answer lead me to some errors in update.php (thanks for the tip!!). As that´s somewhat out of topic, I´m opening a new question (drupal.stackexchange.com/questions/73092/…) to try to get to the error. I´m also setting this as the correct answer because it seems that the maintenance error is gone (yay!). THANKS MOLOT! – Rosamunda May 15 '13 at 4:04
  • 4 bytes of blob are: b:0 and \0 to terminate it as null terminated string. – Mołot May 15 '13 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.