My site goes to maintenance mode spontaneously almost every day. I am advised by users.

Everything works fine when I put it out of maintenance mode.

Any explanation is welcome

(Drupal 7.59)

up vote 1 down vote accepted

The error came from the Backup & Migrate Module : I had an error when I wanted to access the "Schedule" folder.

When I unstalled the Module, the error disappeared.

This can have a lot of reasons but I try to help to investigate:

  1. Be sure only you can have the permission to put the site into maintenance mode
  2. You should search for the "state" variable name of the maintenance mode, if am not mistaken it's called maintenance_mode. Based on the results you should have a clear view which code parts may change it's state.
  • @Jacques-Marie Also, make sure that you're the only one who have the permission to put the site in maintenance mode i.e. are there other admins on the site? – Ismail Cherri Oct 11 at 14:37
  • I am the only full admin – Jacques-Marie Moranne Oct 13 at 8:04

If you're having both live and staging instances, and using caching (memcache for example) check your caching configuration.

If your staging configuration is (by error) set to the same key it may be interfering with the live site, where the live site is reading the configuration from cached staging data, or something of the sorts...

  • Actually, I also have a (subdomain) dev site ... which also goes to maintenance spontaneously (I just realized). – Jacques-Marie Moranne Oct 13 at 8:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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