Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [maintenance-mode]

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

0
votes
1answer
25 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
0answers
20 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
30 views

Maintenance mode theme doesn't work the same in D7 as it does in D8

Recently we needed to put a D8 site into maintenance mode to act as a sort of holding page whilst updates were made to content before a go-live. In order to entirely sandbox the theme, to stop any ...
3
votes
1answer
148 views

Is it normal that Drupal enters maintenance mode during a module update?

I have created a custom module with an .install file, which includes some hook_update_N() and hook_update_N(&$sandbox) update hooks. These are used to update a collection of existing nodes. ...
-2
votes
3answers
53 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
1answer
52 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 ...
0
votes
1answer
58 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 ...
0
votes
1answer
73 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
1answer
388 views

Where is the maintenance mode value in the database(Drupal 8)?

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 ...
2
votes
1answer
36 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
1answer
318 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 ...
2
votes
2answers
266 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 ...
1
vote
0answers
254 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
1answer
224 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 ...
3
votes
1answer
369 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()?
0
votes
1answer
59 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 ...
0
votes
1answer
26 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 ...
0
votes
2answers
54 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.
2
votes
1answer
567 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 ...
4
votes
2answers
439 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 ...
1
vote
2answers
265 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 ...
0
votes
0answers
164 views

What does Maintenance Mode actually do? Disconnect the database? [duplicate]

It's always recommended to put Drupal in maintenance mode, clear cache, etc. What does the maintenance mode actually do? Does it disconnect the database?
0
votes
1answer
40 views

URLs with trailing slash say site in maintainence mode, others don't, site isn't in maintenance mode

Something very strange has happened and I'm at a complete loss as to how to go about working out the cause. I used Backup / Migrate module to restore a backup of my live site's database (let's call ...
2
votes
1answer
78 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 ...
0
votes
1answer
69 views

Maintenance mode says it's on, but site is still available

Before attempting to do some module updates, I enabled maintenance mode on the site. I then noticed that the site was still available to all visitors, even though the Configuration->Development->...
0
votes
2answers
247 views

How to make custom login URL accessible in maintenance mode

I created a custom login page with custom path (www.example.com/customlogin) and blocked access to default login page via hook_menu_alter(). The requirement for default login page to return 403 is ...
6
votes
1answer
4k views

Drupal 8 maintenance page theming [closed]

I want to customize the maintenance page in Drupal 8. How do I theme it?
1
vote
2answers
677 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()...
1
vote
0answers
42 views

Maintenance page appears during login

I need your help : When any user logs into my website (admins too), the maintenance page is displayed with the url "/node?destination=node", while maintenance mode is surely off. Then, if the user ...
0
votes
1answer
494 views

maintenance-page--offline template not working

I am following this tutorial. https://www.drupal.org/node/195435. I have created maintenance page and its working with admin configuration site under maintenance setting. I want to create dboffline ...
0
votes
1answer
62 views

Theming Site off-line page

Is there any way to theme or override the Site off-line page? The page with below massage: The site is currently not available due to technical problems. Please try again later. Thank you for your ...
2
votes
1answer
300 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 ...
0
votes
1answer
64 views

Under what circumstances should a site be placed into maintenance mode

I was recently ask to deploy a set of changes to a production server. The changes included Drupal core and contrib module updates, as well as, updated custom theme related code. In preparation for ...
0
votes
1answer
79 views

drupal site crash and went to maintenance mode

While creating a huge volume of pages in drupal website, our live site went down after 5 hours. We investigated logs on Apache, PHP and MySQL thoroughly but couldn't identify any specific cause or ...
5
votes
7answers
9k 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 ...
3
votes
5answers
817 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 ...
2
votes
1answer
134 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 ...
0
votes
4answers
1k 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 ...
3
votes
1answer
315 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 ...
1
vote
1answer
515 views

How can I enter a custom maintenance mode message for a non-English D8 site?

I am playing around with a D8 site (8.0.0-beta6) and having trouble locating where some of the controls have gone. During the initial installation procedure I selected a non-English localization (...
1
vote
2answers
116 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 ...
1
vote
1answer
491 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 ...
1
vote
2answers
139 views

Cannot login to my Drupal site [duplicate]

A while back I made a site for our Operettic society in Holland, after a while I transferred the maintenance to another person who came just recently back at me with a problem. The site is stuck in ...
0
votes
1answer
55 views

Error message when deleting folders/files on Maintenance mode

I turn the site in maintenance mode for update Drupal Core from 7.30 to 7.32. I follow the step on Drupal docmentation to delete all folders and files, beside "site" folder(on step 5). However, I got ...
4
votes
1answer
1k 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 ...
3
votes
4answers
1k 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)?
1
vote
3answers
356 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 ...
2
votes
3answers
115 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.
2
votes
1answer
141 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 ...