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
1 vote
1 answer
2k views

Unable to run update.php or update modules from web interface

I would really like to be able to install module updates through the web interface or run update.php when needed without changing settings.php, but something seems to be broken in my setup because it ...
1 vote
5 answers
1k views

How do I set the title tag for the maintenance page?

I need to change the default title tag for the maintenance page, which currently is "Site under maintenance | [sitename]". I tried to set $variables['head_title'] in hook_preprocess_maintenance_page()...
0 votes
2 answers
316 views

How can I render a specific node as the content for the maintenance page?

Given a nid X, how do I have Drupal render it as the content for the maintenance page?
0 votes
0 answers
113 views

Getting " Specified URL cannot be found" error while clearing cache

I am working on Maintenance mode screen. I have added outage message in the field, ticked "Put site into maintenance mode" button and save the configuration. Once i clear the cache i am ...
1 vote
3 answers
347 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 ...
5 votes
8 answers
14k 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 ...
10 votes
7 answers
44k 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 ...
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)?
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 ...
-2 votes
1 answer
78 views

Not allowing the user to access the website within the given time period [closed]

My client want to offline the site for 12:00 AM to 06:00 AM and show this message to users. How can I achieve this in drupal8
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 ...
3 votes
2 answers
788 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()?
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 ...
0 votes
4 answers
1k views

How do I avoid the maintenance screen on database errors?

As I'm working on a D7 site, I'll occasionally hit a database-related bug in my code. When this happens, I get thrown to a version of my site's maintenance page; the error information doesn't show up ...
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 ...
3 votes
0 answers
91 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 ...
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/...
4 votes
1 answer
593 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 ...
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 ...
4 votes
2 answers
904 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 ...
0 votes
1 answer
98 views

Can't log in to back end

I have been trying to upgrade to 8.8.3 from 8.4.4 for some time. My 8.4.4 site was holding but after repairing a database malfulnction in which the watchdog file went mad with assert errors, now I can'...
0 votes
0 answers
427 views

How to automatically put your site into maintenance mode if at least a critical security update is available?

I think I'm craving for this functionality. What I want is, if after a CRON run, Drupal detects that such a security update is available, the site would be taken down for maintenance mode to avoid ...
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 ...
0 votes
1 answer
235 views

Disable "Operating in maintenance mode. Go online."

The solution for Drupal 7 is using the following code, as per answer of How can I disable the message “Operating in maintenance mode. Go online.” in maintenance mode? function mytheme_preprocess_page(...
0 votes
2 answers
2k views

Is there a way to run drush updb without going to maintenance mode

I have a live site which runs on drupal 8. I am using drush 8.5.3 with the installation. Whenever I run drush updb the site automatically goes to maintenance mode. Is there a way to do this without ...
-1 votes
1 answer
55 views

Drupal maintenance over several environments [closed]

I have a production environment for a Drupal 7 site. This environment is replicated to a staging environment, which we use for testing updates to modules and drupal core (same major version). We ...
4 votes
2 answers
1k 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..
1 vote
1 answer
335 views

Maintenance mode and user session

When I put site in maintenance mode and after turn site back all users sessions are not active (is need to log in account), but I put session to work 2 month and it work. How to prevent users logout ...
0 votes
1 answer
659 views

Get out of maintenance mode using database query (without using drush or admin area)

I understand there are very many stackoverflow questions on this very topic. How can get my site out of maintenance mode? for example. However I've never seen one that explains how to turn off ...
0 votes
0 answers
41 views

Maintenance Mode Screen Does Not Display

I'm using Drupal 8 with a purchased theme. I'm not 100% tech literate so apologies in advance if my question sounds dumb. After Drupal and the theme were initially installed I had no problems. After ...
1 vote
1 answer
653 views

Site stuck on maintenance mode only for a single page [closed]

On a live, multilingual (fr/en) client site, I've just update Drupal 7 to its latest version (along with a few modules). Everything went fine, except that, even though the maintenance mode has been ...
0 votes
2 answers
65 views

How can I login to my local drupal site 8.3.1 which was under maintence mode [duplicate]

I just logout to see what will the home page look like. Now, I can't login into my local site.
0 votes
1 answer
208 views

Is it necessary to clear site caches after putting site into maintenance mode?

I enabled maintenance mode on a Drupal 7 site; however, when I checked the homepage as an anonymous user, I noticed that the original homepage was still being displayed rather than the maintenance ...
-2 votes
3 answers
95 views

My Site goes to Maintenance spontaneously

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)
0 votes
1 answer
744 views

What makes a maintenance mode message display, when a site is not in maintenance mode?

What makes a maintenance mode message display, when a site is not in maintenance mode? In this instance, it appears that it was because a contrib module was throwing a recoverable fatal error. So ...
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 ...
2 votes
1 answer
186 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.
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 ...
3 votes
1 answer
795 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 ...
1 vote
0 answers
518 views

maintenance-page--offline

In Drupal 7, we could create maintenance-page--offline.tpl.php to be shown during database failures. I want to create this page for D8 as well, however maintenance-page--offline.html.twig does not get ...
0 votes
1 answer
450 views

error 500 when D8 site placed in maintenance

Unless connected to admin , putting site in maintenance generate a 500 error. I have followed Drupal 8 maintenance page theming instructions, modifying the settings.php and adding the template to the ...
0 votes
1 answer
84 views

Migration after server crash: maintenance mode and/or cache problem

I had a crash of my previous server and I tried to rise my website from the dead. I had backups of all the files & of the database (PostgreSQL). I was not the one who set up the website and my ...
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?
1 vote
2 answers
250 views

How to enable maintenance mode only when there are no active users?

When there are updates available for Drupal, I enable the maintenance mode, update, and disable the maintenance mode again. As far as I understand it, users that were right in the middle of editing ...
0 votes
1 answer
44 views

Redirecting to "old" site

I copied files and database of a Drupal 7 site to another domain. When I put the site in maintenance mode, and I login, I am redirected and logged in to the old site. I cleared the cache, also in the ...
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 ...
1 vote
1 answer
5k views

Undefined variable: _SESSION in template.php

I use this code (not mine, I do not know how to code) to disable Maintenance mode message on front-page while developing a site, it's really annoying when it's flashing all the time in the middle of ...
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 ...
1 vote
2 answers
521 views

Updated to Drupal 7.51 and website is now stuck in maintenance mode

I just went to update Drupal 7.5 to 7.51 and fortunately the update worked. Unfortunately our site is now locked in maintenance mode and I was logged out of the system and cannot get back in as an ...
3 votes
2 answers
708 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 ...