Skip to main content

Timeline for Drupal 8 maintenance page theming

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Jan 6, 2021 at 20:16 comment added pmagunia @nexus_6 I know this is a late reply, but I found this page which may explain why the maintenance page doesn't kick in when the DB is offline. It look like it is an active bug that has persisted through Drupal 9: drupal.org/project/drupal/issues/2720109
Jan 9, 2019 at 10:14 comment added ZyDucksLover In addition, since maintenace page don't always want to respect the theme's HTML, I created a suggestion in "template_theme_suggestions_html_alter.php" by adding this piece of code in it : if(\Drupal::state()->get('system.maintenance_mode')){ $suggestions[] = 'html__maintenance'; }
Oct 9, 2018 at 15:36 comment added karolus Not sure if this became available in later versions, but when creating my own custom maintenance page, I found I didn't need to update settings.php to register it.
Oct 2, 2018 at 15:46 comment added mike_kc When doing doing this, the changes are displayed on the update page after installing a module. Is the process that creates the update page use the maintenance page twig? maintenance-page.html.twig
Jul 29, 2016 at 3:32 vote accept Shawn Conn
Jul 28, 2016 at 10:26 comment added nexus_6 The settings.php says "This applies when the site is explicitly set to maintenance mode through the administration page or when the database is inactive due to an error." However, on my site this only works if I turn on maintenance mode. If I intentionally break access to my database by changing the password I get a page with a PDO error, not my maintenance page
Mar 29, 2016 at 3:44 history answered Shawn Conn CC BY-SA 3.0