Solved

Maintenance Offline Page Not Working

Posted on 2014-04-02
4
138 Views
Last Modified: 2015-04-07
I followed the instructions on http://drupal.org/node/195435, created my maintenance-page.tpl.php  and  maintenance-page--offline.tpl.php and put it inside the templates folder of my custom theme.

1) Putting the site in maintenance mode works, so maintenance-page.tpl.php works.

2) But disconnecting my database to test maintenance-page--offline.tpl.php didn't work.

Here's the error I get.
sc-2.JPG
0
Comment
Question by:sandshakimi
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:Ryan Smith
ID: 39972567
Drupal needs that database to serve pages, even offline pages.  If your DB will be down you'll have to create your own page in html or php and serve it by editing the .htaccess file.

maybe something like this.

RewriteEngine on
RewriteRule $ /maintenance.php [R=302,L]
0
 

Author Comment

by:sandshakimi
ID: 39972660
My understanding is that maintenance-page--offline is used specifically for database disconnects. That was it's purpose. Am I wrong? Otherwise, what's the purpose?
0
 
LVL 6

Accepted Solution

by:
Ryan Smith earned 500 total points
ID: 39972724
Your right.  The theme name might not be picking up in the settings file.  Your getting an error message about openomega which I think is your custom theme?  Maybe try it in a different theme and see if it works.

<?php
  $conf['maintenance_theme'] = 'themeName';
?>
0
 

Author Comment

by:sandshakimi
ID: 39972760
Well, the fact that maintenance-page.tpl.php works, indicates that my $conf is correct.

I'm trying to figure out why maintenance-page--offline.tpl.php is not working.

For some reason, Drupal is not seeing it.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add body class to content types 6 262
Creating a Drupla ecommerce website. 4 194
Drupal 7 Feeds 1 126
How to change HTML website into Drupal?? 5 115
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question