Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Maintenance Offline Page Not Working

Posted on 2014-04-02
4
Medium Priority
?
192 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
[X]
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
  • 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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

719 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