The error:
Notice: Undefined variable: site_name in include() (line 32 of /Users/jbeach/code/acquia/repos/engineering/gardens/trunk/docroot/themes/bartik/templates/maintenance-page.tpl.php).
Steps to reproduce.
1. Run update.php on a site or install.php
2. On the site configuration page, a DSM error will appearing complaining that $site_name is undefined.
3. Check the dblog after installation and note that a watchdog error exists for the undefined variable $site_name in maintenance-page.tpl.php
In bartik_preprocess_maintenance_page, $site_name is unset on site install:
https://skitch.com/jesse.beach/ggwpi/acquia-gardens-trunk-netbeans-ide-7...
Comment | File | Size | Author |
---|---|---|---|
#23 | bartik_maintenance_page-1334344-23.patch | 797 bytes | Devin Carlson |
#21 | bartik_maintenance_page-1334344-21-d7.patch | 797 bytes | jessebeach |
#17 | bartik_maintenance_page-1334344-16.patch | 797 bytes | mstef |
#9 | bartik_maintenance_page-1334344-9.patch | 1.25 KB | jessebeach |
#5 | bartik_maintenance_page-1334344-5.patch | 979 bytes | jessebeach |
Comments
Comment #1
webchickPosting on behalf of Jesse since she is behind some sort of evil anti-Drupal.org force-field atm:
The regression was introduced in http://drupalcode.org/project/drupal.git/commitdiff/ea1bd8becea0a4b214cb... (#790556: Make the Maintenance Page Kick Ass)
Comment #2
webchickAnd reviewing that issue, this was introduced at #790556-65: Make the Maintenance Page Kick Ass. Quoting:
So I think we need to set this to an empty string, rather than unsetting it, and a comment that explains why the heck we are doing that would be wonderful.
Comment #3
webchickThis should be pretty straight-forward.
Comment #4
jessebeach CreditAttribution: jessebeach commentedSetting to 8.x dev. The patch will need to be ported to 7.x
Comment #5
jessebeach CreditAttribution: jessebeach commentedchanged
to
$variables['site_name'] is still set, but it now empty, so the check for it in maintenance-page.tpl.php returns FALSE instead of failing and throwing an error.
Comment #6
jessebeach CreditAttribution: jessebeach commentedmarking as need review
Comment #7
webchickYep, that looks right. can you toss a one-liner comment in there too above
if (!$variables['db_is_active']) {
about why we're doing that?Comment #8
aspilicious CreditAttribution: aspilicious commentedAdding tag, see #1334342: During update, Bartik throws an error that $site_name is not defined
Comment #9
jessebeach CreditAttribution: jessebeach commentedComments added. I think this is why this code exists, but tim plunkett would be the person to ask for sure.
Comment #10
Kisugi Ai CreditAttribution: Kisugi Ai commentedThanks Works for me
but i have a anothe question. i have two drupal installations the one use bartik as maintenece and the other uses seven as maintenance page where is this settet?
Comment #12
webchick#9: bartik_maintenance_page-1334344-9.patch queued for re-testing.
Comment #13
jessebeach CreditAttribution: jessebeach commentedShould I just load the 7.x version of the patch here?
Comment #14
jessebeach CreditAttribution: jessebeach commentedAlyx Vance, this patch only affects Bartik, not Seven.
Comment #15
Kisugi Ai CreditAttribution: Kisugi Ai commentedthats i know its has not to do with seven.
my confusion is thats two Drupal7 installationen use two diffrent maintanance themes.
thats only an question why. i have found nothing to setup this.
eg. the xy.com use bartik and the yx.com use seven.
Comment #16
jessebeach CreditAttribution: jessebeach commentedLet's make sure we don't hijack this issue with unrelated questions.
But just to answer this one, you can set your admin theme at the bottom of the Appearance tab form:
https://skitch.com/jesse.beach/gedhf/rockmelt-appearance-d8.drupal.dev
Comment #17
mstef CreditAttribution: mstef commentedRerolled patch #9 to apply from a standard Drupal installation root - needed for drush make. (7.x)
Comment #19
aspilicious CreditAttribution: aspilicious commented#9 still needs review for D8.
#17 is for D7
Comment #20
tim.plunkettHeh, I remember rerolling that original patch to unset it. Good catch.
Comment #21
jessebeach CreditAttribution: jessebeach commentedRolled for D7. I just added '-d7.patch' to the patch in 17 to befuddle Testbot.
Comment #22
catchWorks for me and doesn't look testable. Committed/pushed to 8.x, moving back to 7.x
Comment #23
Devin Carlson CreditAttribution: Devin Carlson commentedThe patch in #21 applied cleanly and made the same change as the original patch in #9.
I've uploaded the same patch as in #21 but with a different file name in order to trigger the test bot.
Comment #24
Devin Carlson CreditAttribution: Devin Carlson commentedComment #25
webchickCommitted and pushed to 7.x. Thanks!
Comment #27
cweagansUpdating tags per http://drupal.org/node/1517250