Closed (fixed)
Project:
Genesis
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2009 at 15:56 UTC
Updated:
7 Jan 2010 at 13:10 UTC
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!
| Comment | File | Size | Author |
|---|---|---|---|
| template.patch | 590 bytes | jolidog |
Comments
Comment #1
Jeff Burnz commentedProvisionally 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.
Comment #2
jolidog commentedThanks!
I'll mark the issue fixed for the dev branch.