got this notice in a clean drupal after activating the mothership theme.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mortendk’s picture

Status: Needs review » Fixed

foxed

adnasa’s picture

I just installed the theme on a fresh copy of drupal.
notice remains.

adnasa’s picture

Status: Fixed » Needs work

changed status

mortendk’s picture

which version & page
a screenshot or something ?

adnasa’s picture

Latest stable version 7.x-2.6 I downloaded recently.
I don't think a screenshot is needed, since it is the exact same notice as discussed earlier.

but if you insist

mortendk’s picture

Version: 7.x-2.2 » 7.x-2.6
RobW’s picture

Getting the same.

konsumer’s picture

I am getting notices like this for everywhere that these sort of checks are not being used, for example:

Notice: Undefined index: header in include() (line 24 of SECRET_PATH/webroot/sites/all/themes/contrib/mothership/mothership/templates/page--404.tpl.php).

The solution is to use code like this:

if (empty($thing)){
}

Instead of

if ($thing){
}

I recommend changing the issue title to "Notices on undefined indexes", as it is a larger, but easily fixable issue.

mortendk’s picture

Status: Needs work » Postponed (maintainer needs more info)

cant reproduce this issue :/