The offline maintenance page template uses a bunch of variables that don't exists.

Because there is no database connection we can't use database variables and things so this template pretty much has to be fully hard coded. To be honest it doesn't really lend itself to being in a base theme.

Either the template should be removed, or there needs to be documentation added to tell the user they have to hard code in paths to css etc.
If the latter option is chose we also need to remove all unnecessary variables and things that we don't ahve access to.

The errors I get are:

Notice: Undefined variable: mothership_poorthemers_helper in include() (line 8 of mothership/mothership/templates/maintenance-page--offline.tpl.php).
Notice: Undefined variable: appletouchicon in include() (line 12 of mothership/mothership/templates/maintenance-page--offline.tpl.php).
Notice: Undefined variable: path in include() (line 22 of mothership/mothership/templates/maintenance-page--offline.tpl.php).
Notice: Undefined variable: selectivizr in include() (line 30 of mothership/mothership/templates/maintenance-page--offline.tpl.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Elin Yordanov’s picture

I can confirm this bug.

mvc’s picture

Status: Active » Fixed
FileSize
643 bytes

mothership 7.x-2.x-dev has removed these variables from the maintenance page.

Here's an equivalent patch backported for 7.x-2.10 in case you're using the stable version.

Marking "fixed" as it's resolved in the dev branch (2.x & 3.x).

mvc’s picture

Status: Fixed » Needs work

Oops, sorry, this only deals with a few of the variables mentioned in OP.

Setting to "needs work" instead.

mvc’s picture

Title: Missing variables in maintenance-page--ofline.tpl.php » Missing variables in maintenance-page--offline.tpl.php