1

I get the "Operating in maintenance mode. Go online." message and the Drupal 7 site isn't in maintenance mode.

The message doesn't appears all the time; sometimes it goes away when I refresh the page. I cleared cache; I tested, and it is most certainly not in maintenance mode.

I checked Drupal error reports, and I get this one. (I don't know whether it's related.)

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

Sometimes in a complete random way, as an anonymous users, it appears the Site offline page. When I reload the page it´s up again.

1
  • 2
    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.
    – AKS
    May 14, 2013 at 4:43

1 Answer 1

4

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

6
  • 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, 2013 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, 2013 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, 2013 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, 2013 at 4:04
  • 4 bytes of blob are: b:0 and \0 to terminate it as null terminated string.
    – Mołot
    May 15, 2013 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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