Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Maintenance Offline Page Not Working

Posted on 2014-04-02
4
148 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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