By annicole72 on
Hi, I would like to know where do I find the file/page that comes up when we do site maintenance? I want to use my own image for this instead of the marinneli theme.
Thanks,
Anna
Hi, I would like to know where do I find the file/page that comes up when we do site maintenance? I want to use my own image for this instead of the marinneli theme.
Thanks,
Anna
Comments
See
See http://drupal.org/node/195435
or my blog that details of how things work inside: http://www.hddigitalworks.com/custom-site-off-line-page
I did the changes in my
I did the changes in my settings.php but my theme (amity_island) won't allow it. I got an error.
Parse error: syntax error, unexpected $end, expecting ')' in /home/astro46/public_html/sites/default/settings.php on line 229
Must be syntax error in
Must be syntax error in your change to settings.php. What does it look like with the section you change? Cut and paste the relevant part here. Make sure you don't put <?php ?> around your change. Just this:
The <?php ?> is used to format the doc page here and it should not be entered in the actual code in settings.php.
The code is actually already in the comment there and you can just uncomment them but they are pretty hard to decipher and uncomment at the right place. Just ignore the comment and add you code at end of that file.
That's what I did first, I
That's what I did first, I un-commented the codes in my settings.php file and that's when I got those errors. Then, I tried typing in exactly what you had written on your blog ... the one you posted above.
I have these in my settings.php:
* Remove the leading hash signs to enable.
*/
#$conf = array(
#'site_name' => 'AstrologyLoveAdvice.com',
#'theme_default' => 'amity_island',
#'anonymous' => 'Visitor',
/**
* A custom theme can be set for the off-line page. This applies when the site
* is explicitly set to off-line mode through the administration page or when
* the database is inactive due to an error. It can be set through the
* 'maintenance_theme' key. The template file should also be copied into the
* theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
* Note: This setting does not apply to installation and update pages.
*/
#'maintenance_theme' => 'amity_island',
----
I removed the # sign
---
I just tried it with (I removed the other stuff underneath it):
$conf = array(
'maintenance_theme' => 'amity_island',
);
I didn't get an error, but how do I turn off my database? I created those pages that you suggested.. the maintenance-offline.tpl.php and the maintenance-page.tpl.php and maintenance.css ... the codes in the maintenance-page.tpl.php is the same as the offline one right? Or do I need to modify anything else?
I wonder..is it possible for me to use this:
www.astrologyloveadvice.com/themes/amity_island/images/maintenance_astro...
>That's what I did first, I
>That's what I did first, I un-commented the codes in my settings.php file and that's when I got those errors.
Hehe, most people would commit this mistake with the way things are commented in settings.php. You can't just uncomment one line in the middle. You need to uncomment line 172
$conf = array(, then line 184'maintenance_theme => 'minnelli',, then line 213);. They are pretty far apart.That's why I suggest you ignore the comment stuff and simply add the change to the end.
>how do I turn off my database?
It's very easy. In your settings.php file, find the $db_url= line at around line 92 and change the password to something bad and you will simulate a bad database connection. The maintenance-page-offline.tpl.php will be used. If this doesn't exist, maintenance-page.tpl.php is the fall back.
BTW, the maintenance page is also displayed when you put the site offline and visit as non-admin.