Hello, I'm creating a maintenance/offline page for my genesis subtheme. Everything works fine with maintenance mode.
As for site offline mode drupal reports an error on line 24 of genesis main template.php file:

include_once $base_path . drupal_get_path('theme', 'genesis') . '/template.conditional-styles.inc';

The site offline page appears when the connection to the db is lost/broken, so this line does not work.
I replaced it with include_once '/template.conditional-styles.inc'; since both files exist on the same directory.

I leave it for the maintainers to decide if there is a better way of doing this.

Thanks!

CommentFileSizeAuthor
template.patch590 bytesjolidog

Comments

Jeff Burnz’s picture

Provisionally I have committed a slightly different fix to the 6.x-2.x branch, which does a check to see if the database is active and if not it doesnt run the conditional styles module. I'm thinking that most times an IE stylesheet won't be needed for the maintenance page.

I also took the opportunity to add maintenance-page.tpl.php files that really should have been there all along...

You'll have to grab the DEV version if you want to use this as I probably won't make a new release for Genesis for quite some time, perhaps around the time Drupal 7 comes out when we'll also have the D7 branch of Genesis ready.

jolidog’s picture

Version: 6.x-2.4 » 6.x-2.x-dev
Status: Needs review » Fixed

Thanks!

I'll mark the issue fixed for the dev branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.