Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I tried use Zen theme like maintenance theme for project of my own, but this theme isn't compatible with the Drupal maintenance mode. I created a two patch which hopefully can be commited to this theme to make it usable even when Drupal is in maintenance mode (no db access by install or update).
This two patches are my first, so i hope they are properly created and usable.
Comment | File | Size | Author |
---|---|---|---|
#1 | zen_793482_offline_mode.patch | 1.71 KB | seanburlington |
template.theme-registry.inc_.patch | 423 bytes | morf2009 | |
template.conditional-styles.inc_.patch | 705 bytes | morf2009 |
Comments
Comment #1
seanburlington CreditAttribution: seanburlington commentedI think that this is a bug really
setting a custom maintenance theme is core functionality of Drupal and it's pretty important for high profile sites.
The attached patch addresses the problem by checking db_is_active() before making database calls that otherwise fail when the database is offline
I've tested it and with these changes in place I can use my zen sub theme in offline mode with a nice friendly error message.
Comment #2
broncomania CreditAttribution: broncomania commentedYes I am looking for a solution with exactly the same problem discribed above.
This patch is working and absolutly usefull.
Include this please in the next release.
patch is working installed by copy and paste. patch not tested via commandline.
working with zen 2.x for me
thx this safe me a lot if time
Comment #3
ChrisRL CreditAttribution: ChrisRL commentedThis bug is a duplicate of #705264: Allow Zen (and subthemes) to be used without a database