I get the following errors on the maintenance page using a theme based off of Aurora:

Notice: Undefined variable: page_top in include() (line 30 of /themes/contrib/aurora/templates/system/maintenance-page.tpl.php).
    Notice: Undefined variable: page_bottom in include() (line 72 of /themes/contrib/aurora/templates/system/maintenance-page.tpl.php).

I'm guessing that for whatever reason the page_top and page_bottom regions aren't defined in the maintenance page html (or 404 or 403 pages possibly)?

I'm not sure if the best way is to wrap the calls to page_top and page_bottom in an isset like this:

isset($page_top) ? print $page_top : ''; 

This is basically the solution implemented here: https://drupal.org/node/1884270

or to add a couple lines to the preprocess_html function like this:

$vars['page_top'] = isset($vars['page_top']) ? $vars['page_top'] : '';

What do you think?

Comments

iamcarrico’s picture

Assigned: Unassigned » iamcarrico
Priority: Normal » Major

I am going to take a look at this today, the maintenance page needs some lovin' today--- .

mariacha1’s picture

Issue summary: View changes

  • Commit 2bbd3b8 on 7.x-3.x by iamcarrico:
    #2283669: Change up the base maintenance page template
    
iamcarrico’s picture

Status: Active » Fixed

Mixed up the template, shouldn't error out now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

coozila’s picture

subscribe