I was updating a Drupal site and faced this issue :

I created a simple maintenance-page.tpl.php page, with company logo and message. Put the site in offline mode so that it shows the message from maintenance-page.tpl.php

...all task required for updates...

When I visited the update.php and it shows the same maintenance page, and no update option. After few hours of debugging, figured out that update.php uses the site theme and need to print the $content variable in the maintenance-page.tpl.php

:)

Comments

devin carlson’s picture

Status: Active » Closed (works as designed)

The content variable is used in the stock maintenance.tpl.php file and as you mentioned, should not be removed.
See (http://api.drupal.org/api/drupal/modules--system--maintenance-page.tpl.p...).

victoriachan’s picture

Ah, this has saved me hours of debugging. Thanks for sharing!