Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The problem is in template.php
line 22, variable_set()
is called. In site off-line mode, db is not available and variable_set()
result in error.
Comments
Comment #1
Alan Cooney CreditAttribution: Alan Cooney commentedThis is general theme_settings code - http://drupal.org/node/177868
Moved to the theme settings module.
Alan
Comment #2
Alan Cooney CreditAttribution: Alan Cooney commentedTo add; personally I can't replicate this.
Alan
Comment #3
mattyoung CreditAttribution: mattyoung commented>I can't replicate this
I suspect you are not turn off the database to trigger the maintenance screen. You need to get the maintenance screen to say "Due to technical problem". Not the one that says "Site in maintenance"
To replicate this problem:
1) set "AD Blueprint" as maintenance_theme
2) Shut off you database. Don't just put the site in "Maintenance mode" because in that case, the database is still functioning. The easiest way to shut off database is go in settings.php and put a wrong password in '$db_url'.
Theme should never read/write to database directly. They should only use variables handed to them from preprocess functions.
I've changed the title to be precise about this error condition.
Comment #4
apadernoI am closing this issue, since Drupal 6 isn't supported anymore.