Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you create a maintenance page using Bartik (like making a minimal login page) and it uses d_s_m() somehow, you get this.
Comment | File | Size | Author |
---|---|---|---|
#14 | withPatchFirefox3.6.13.png | 39.58 KB | Tor Arne Thune |
#14 | withPatchChromium8.0.552.237.png | 34.17 KB | Tor Arne Thune |
#13 | 1026654-bartik_maintanance_page_regression.patch | 864 bytes | amateescu |
#9 | 1026654-current-use.png | 35.09 KB | Dave Reid |
#4 | 1026654-bartik-maintenance-messages.patch | 1.69 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Dave ReidFor reference, here's what the same looks like in Garland
Comment #3
Dave ReidInitial patch to move messages to before content.
Comment #4
Dave ReidAnd with changes to messages CSS that appears to make everything better. Also attached screenshot of page with patch applied.
Comment #6
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commented#4: 1026654-bartik-maintenance-messages.patch queued for re-testing.
Comment #7
jensimmons CreditAttribution: jensimmons commentedWell, the maintenance page was designed for displaying messages when the site is in maintenance mode, and when something really bad goes wrong — like when the database server goes down. Dave Reid is doing some very creative things using maintenance-page.tpl.php for other purposes (instead of making his own custom tpl file for the login page).
For reference, the theming of the maintenance page was worked out here: #790556: Make the Maintenance Page Kick Ass
The order was changed to make this:
look like this:
Displaying the error message after the "This website encountered an unexpected error" text is not a bug. That's as designed. If you look at the above screenshots, you'll see why that makes for better UX.
I don't know what to say about this super-edge case Dave-Reid special. My recommendation Dave, would be for you to duplicate the maintenance page and put that custom tpl file in your distribution, with the changes you desire.
Changing the width CSS from 700px to auto might be a good change — if it doesn't affect the typical usecase. I could see where it might help with people who are overriding things with Bartik in other cases.
But in general, this is as-designed.
Comment #8
Dave ReidThis is from a module, so I'm not sure how exactly I can achieve this. I don't understand how having messages below content is acceptable for bartik, but not for garland's maintenance theme. No where else do we output messages after output. :/
Comment #9
Dave ReidAnd this is how the maintenance page looks currently in CVS (aside from the width: auto fix which I left in). Is something going wrong that it looks so odd?
Comment #10
jensimmons CreditAttribution: jensimmons commentedYeah that is messed. Up. :(
Something got changed, there should be no block box showing up. I bet when the last patch affecting the background color went in, there was no adjustment to the maintenance page styles to go with it.
#988026: Move background color from body to #page-wrapper
This needs to be fixed asap!!
Comment #11
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedSubscribing. It really looks horrible to have the site in maintenance mode and by default have this page as the greeting to the visitor, with the message explaining that the site is under maintenance.
Comment #12
jensimmons CreditAttribution: jensimmons commentedbumping
Comment #13
amateescu CreditAttribution: amateescu commentedHere is a patch that restores the maintaince page layout as in the second screenshot from #7.
Tested in FF 3.6, Chrome, IE8. In IE 6 and 7, there is no top margin for #page-wrapper, but I think that is out of scope for this issue.
Comment #14
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedAhh, much better. Tested on Firefox 3.6.13 and Chromium 8.0.552.237 on Linux.
Comment #15
tim.plunkettTo be clear, this fixed a regression introduced in #988026: Move background color from body to #page-wrapper.
This is only a fix, not a cosmetic overhaul.
Tested, with screenshots, reviewed, ready to go.
Comment #16
jensimmons CreditAttribution: jensimmons commentedI'm so glad we've got a fix ready, thanks Team Bartik!
Meanwhile, I'm going to bump this to critical. It's "only" a visual bug, but it's a really horrible one. Let's fix it immediately.
Comment #17
webchickPlease don't abuse the critical flag.
Comment #18
jensimmons CreditAttribution: jensimmons commentedThis just kills me. :( Gets me right in the heart.
Can we please commit this fix? Dries?
Comment #19
webchickCommitted to HEAD.
Comment #20
Dave ReidI would still like to re-consider #4.
Comment #21
Dave ReidComment #22
webchickComment #23
jacquesboucar CreditAttribution: jacquesboucar commentedI tested patch on 7.11-dev but here is failed at 5, 24 and 58