Solved

Maintenance Offline Page Not Working

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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

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 …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

624 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