Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [maintenance-mode]

Drupal allows a restrict set of users to access the site when maintenance tasks run: the maintenance mode.

Filter by
Sorted by
Tagged with
15 votes
1 answer
10k views

Site stuck in maintenance mode

I have put a site in maintenance mode. Before I could visit the administration pages as user #1 (which was the user account I was already using before to put the site in maintenance mode), I had to ...
apaderno's user avatar
  • 97.5k
11 votes
1 answer
482 views

Multiple (and differents) crons?

In a normal production webiste, there are many tasks that need to be done via crontab, but lets say you dont want all of these tasks to run on every cron. For example, i would love to have: A cron ...
Strae's user avatar
  • 890
10 votes
7 answers
45k views

How do I turn off maintenance mode?

Does anyone know how to turn off maintenance mode? I tried accessing http://www.example.com/?q=user/login, but that gives me a blank page. I tried executing this SQL query, but it didn't affect any ...
learningtech's user avatar
  • 1,491
10 votes
3 answers
2k views

Does Google crawl Drupal sites in maintenance mode?

I'm using Aegir to clone copies of my site under a subdomain name ie test.mydomain.com. These copies are in maintenance mode to keep away spammers and prying eyes. I then use these copies to carry ...
Meggy's user avatar
  • 427
9 votes
1 answer
9k views

Drupal 8 maintenance page theming [closed]

I want to customize the maintenance page in Drupal 8. How do I theme it?
Shawn Conn's user avatar
  • 26.9k
5 votes
8 answers
15k views

How can get my site out of maintenance mode?

I moved my site from one server to another in the same way I moved another site. But it won't get out of maintenance mode. I can access phpMyAdmin and I can access the server files easily. I've ...
Gramredhel's user avatar
5 votes
2 answers
8k views

How to theme the maintenance mode page?

What would be the best practice for theming the maintenance mode page in Drupal 7?
Peter Smeekens's user avatar
5 votes
2 answers
3k views

How do I serve up a themed 500 error response page?

Has anyone developed a custom themed page for 500 errors on a Drupal 8 site? There is no maintenance offline template equivalent, and core out of the box simply delivers an unstyled stack trace. We've ...
ben.hamelin's user avatar
5 votes
1 answer
995 views

How to send a email message to specific user role when the site goes to the maintenance mode in drupal 7?

I would like to use emails to communicate with users. So i really want to send a email message for all users(or just a number of users with specific role) when the site goes to the maintenance mode ...
Stone Vo's user avatar
  • 1,701
4 votes
5 answers
783 views

What are the ways/strategies to maintain Drupal sites a over period of 10-15 years?

We have started using Drupal as a PHP programming framework (and not just as a CMS). As result, we have many projects running on Drupal (6 or 7). Typically, after 2-3 years a project gets over and no ...
Ajinkya Kulkarni's user avatar
4 votes
1 answer
2k views

Should a site be in maintenance mode when running the Drush Up command?

I'm not asking if I can update my website with Drush. I'm not asking if Drush can make it in maintenance mode. My question is ... if I'm using the command drush up to update my Drupal core or a ...
itsdarrylnorris's user avatar
4 votes
1 answer
306 views

Should I put my site on maintenance mode before using "drush sql-dump"?

When performing drush sql-dump, should I set the site in maintenance mode or will this command makes sure a coherent dump will be generated even if users are busy using Drupal? I can't find ...
Jérôme Verstrynge's user avatar
4 votes
1 answer
573 views

How do I add a menu router that works even in the maintenance mode?

when a Drupal site is in maintenance mode (not due to a technical fault), users without permission cannot access any page other than /user. Is there any special hook to define a specific menu router ...
AKS's user avatar
  • 9,524
4 votes
1 answer
1k views

Is it normal that a site changes to maintenance mode during a module update?

I have created a custom module with a .install file, which includes some hook_update_N() hooks, used to update existing nodes. Whenever I run drush updb, the site automatically enters maintenance mode ...
atwixtor's user avatar
  • 164
4 votes
2 answers
3k views

How to apply css to the maintenance page?

I need to work on some serious update to my D7 website. So I put my site in maintenance mode. I'm able to personalize the maintenance page by creating maintenance-page.tpl.php in my theme's template ...
pown's user avatar
  • 690
4 votes
3 answers
242 views

How to prevent users from adding content without putting the site into full maintenance mode?

We are planning a scheduled update of our site. There is no reason for people to not be able to see the site as anonymous users, or even browse their account if they want to log in. How can I simply ...
blue928's user avatar
  • 3,804
4 votes
1 answer
676 views

How can I exclude certain routes from maintenance mode?

I am trying to make certain routes exempt from maintenance mode by adding the option _maintenance_access to the route and setting it to TRUE. I think (although I'm not 100%) that this works because in ...
hck12685's user avatar
4 votes
2 answers
2k views

Maintenance Page -> Show a specific block

How to make a block available on the maintenance page (e.g. jQuery Countdown) ? Is it about setting right permissions?
Cosmodrom's user avatar
  • 458
4 votes
2 answers
2k views

Why is my website often put in maintenance mode by itself?

My website in maintenance mode by itself. But other sites is work well, only this site has this problem. Some people encountered this kind of situation? Thank for help..
andy's user avatar
  • 41
4 votes
2 answers
233 views

Send a regular reminder (or do other normally cron-dependent tasks) while in maintenance mode

I recently had an episode where I put a site into maintenance mode to perform a security upgrade and forgot to go live again afterwards, resulting in almost a day of downtime before I caught the error....
Eric N's user avatar
  • 644
4 votes
2 answers
930 views

Pitfalls when updating a site without entering maintenance mode?

Assuming there are no module updates that require doing a database update, if it's just an update to a newer minor release of Drupal core, as well as of contrib and custom modules, what potential ...
user779159's user avatar
3 votes
5 answers
2k views

How to put a site in maintenance mode by non-admin

Is there a module (or other way) to give permission to non-admin-users to put the site offline (and only that permission)?
jimi's user avatar
  • 331
3 votes
2 answers
1k views

How do I view the maintenance page without putting the site in maintenance mode?

I've just been asked by the stakeholder of a site I'm working on how he can view the maintenance page of his site so he can test links on it without putting the site in maintenance mode. I'm going to ...
StephanieF's user avatar
3 votes
2 answers
864 views

How do I check if the site is in maintenance mode?

How do I call MaintenanceMode::applies(RouteMatchInterface $route_match) from hook_theme_suggestions_page()?
Matoeil's user avatar
  • 3,415
3 votes
3 answers
9k views

How to change my maintenance page?

As the title explains, I want to make a custom maintenance page, different from the default one. For that I've read this tutorial: Theming the Drupal maintenance page. I copied the file /module/...
mohammed amine bourkadi's user avatar
3 votes
3 answers
2k views

Site in offline mode, any way to debug how this happened?

I came in this morning to find my companies site in offline mode. I personally checked with the only other site admin, and none of other users have the ability to turn off the site. I was using the ...
MiFiHiBye's user avatar
3 votes
1 answer
822 views

Can a site be put in maintenance mode without a database?

I'm trying to handle a planned database outage and want Drupal to show the maintenance page during that time. $conf['maintenance_theme'] = 'exampletheme' and a suitable $conf['_message'] are set in ...
greggles's user avatar
  • 5,242
3 votes
2 answers
714 views

How to put up a notification about scheduled maintenance?

I'm using Drupal 7.5 and I want to put up a notification about the website going into maintenance mode on x scheduled date and time. What is the best way to do this? Are there any built-in options for ...
Christia's user avatar
  • 1,657
3 votes
1 answer
412 views

Can drush return if site is in maintenance_mode?

To work in parallel with another team, I've copied via ftp the working Drupal 7 app and mysql database and am trying to get it to run. I've cleared the cache and drush happily reports connecting to ...
sam452's user avatar
  • 451
3 votes
5 answers
1k views

How to restore complete database keeping the site in maintenance mode in Drupal 7

I need to restore complete database in a regular basis (weekly). I am using pure PHP + system call to mysqldump and mysql to backup and restore full database. The restore process takes 2 minutes. What ...
Cesar's user avatar
  • 31
3 votes
0 answers
98 views

Image derivatives removed by some process, only regenerated when switching to maintenance mode, then removed again

While moving a bunch of legacy D7 sites to a new server, I bumped on the following problem with one site only. This is certainly NOT the classical permissions issue on files directory. Bug description ...
Kojo's user avatar
  • 3,513
2 votes
2 answers
325 views

Disable editing of post during update

I would like to disable user access to the administration during updates, such as bugfixes and additions of new content-types etc. I'm not completly sure on how to achive this. What would be the best ...
Cyclonecode's user avatar
  • 3,382
2 votes
4 answers
3k views

What does maintenance mode do?

What does maintenance mode actually do? I'm not asking for a high level overview, nor am I asking for a code dump. I'm asking for a technical, functional definition. What does maintenance mode ...
Allen's user avatar
  • 161
2 votes
2 answers
2k views

Site offline notification

How to turn off the notification about the site being offline, when in maintenance mode? Operating in maintenance mode. Go online.
Cosmodrom's user avatar
  • 458
2 votes
3 answers
88 views

Is it possible to set up preferrential IPs when in maintainance mode?

I've previously worked on Prestashop and there I had the choice to set my site in offline/maintance mode and then edit one ore more IP addresses in order other people to view the sites but not the ...
drupal_stuff_alter's user avatar
2 votes
1 answer
146 views

Anonymous view while developing without quit maintenance mode

I have a live website with 200 active users per hour, I put the site in maintenance mode for make some changes. You know the admin view is pretty different than the anonymous view of my website or ...
svelandiag's user avatar
2 votes
2 answers
801 views

Take all sites in a multisite environment offline at the same time

Is there an easy way to take all sites in a multisite environment offline at the same time, in just one step? I really don't want to log in to each one and do it one at a time when I do something ...
DarkTygur's user avatar
2 votes
3 answers
118 views

Can I Run custom callback in site maitenance mode

In drupal site maintenance mode all custom menu callback is not working. it redirect into site maintenance page. But user/login is working. I need to create menu like user/login. please help me.
Leopathu's user avatar
  • 803
2 votes
1 answer
236 views

How to maintain and update a Drupal installation and its modules?

I'm looking for a comprehensive tutorial on best practices for updating and maintaining a Drupal installation and it's modules where there are multiple instances of the site, that is having a ...
Lester Peabody's user avatar
2 votes
1 answer
208 views

hook for maintenance mode

I would like to send an email to some users, when i put my Drupal-7 website in maintenance mode. Are there any hooks that allow me to do this? I could not figure it out for myself.
shasi kanth's user avatar
2 votes
1 answer
187 views

What happens when a site goes in maintenance mode while a user is editing an node content?

Let's imagine a user is editing a node content. In the mean time, a Drupal administrator puts the site in maintenance mode. Does the user have a chance to save his work (assuming it does not have the ...
Jérôme Verstrynge's user avatar
2 votes
3 answers
376 views

Maintenance page being rendered as an entire page load after the main page load

I've noticed that I've got a maintenance page being rendered in its entire HTML markup format after my pages. The site is not in maintenance mode, and this is not intentional behaviour. I'm trying to ...
ja_him's user avatar
  • 357
2 votes
1 answer
98 views

Should the maintenance template be used when the database API raises an exception?

I have created a maintenance-page.html.twig template for my site. The settings.php file says: This applies when the site is explicitly set to maintenance mode through the administration page or ...
nexus_6's user avatar
  • 461
2 votes
4 answers
3k views

Log in problem in maintenance mode

I have a maintenance site problem. I can't go to the login page. I tested in my localhost in maintenance and I could log in on /user. I copied file system and database online but here I can't access ...
Shyghar's user avatar
  • 1,074
2 votes
2 answers
626 views

Theme the login page for Maintenance mode

I've created my theme as subtheme of ZEN, and I have created my maintenance page template, which works when I enable the maintenance page. If I try to visit example.com/user, the login page is shown ...
Alex's user avatar
  • 173
2 votes
1 answer
472 views

Contact form on maintenance mode page

I'm using Drupal 7 and I wanted users to be able to contact me via email whilst I'm still working on the website. So my plan was to use 'create a contact form', as I don't want to expose my email ...
Andy's user avatar
  • 775
2 votes
1 answer
172 views

How to use AJAX form on custom maintenance page

I have been working to customize our maintenance page via custom template and hook_preprocess_maintenance_page(), the intent is to provide the maintenance message, some static text, as well as a basic ...
Lindsay Rose's user avatar
1 vote
3 answers
3k views

Where is the maintenance mode value in the database?

I know the maintenance mode value used to be in the variables table, but in D8 that table is replaced by (or joined with) the config table, but I couldn't find any row with that name. Where is it ...
JonathanSW's user avatar
1 vote
1 answer
2k views

"Maintenance mode" message is shown when the site isn't in maintenance

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 ...
Rosamunda's user avatar
  • 1,289
1 vote
1 answer
109 views

Display content during site maintenance

Is it possible to display a static version of a Drupal 6 website while it's in maintenance mode? Could something similar to Boost help?
Jane's user avatar
  • 1,805