Solved

Maintenance Offline Page Not Working

Posted on 2014-04-02
4
117 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now