Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
got this notice in a clean drupal after activating the mothership theme.
Comment | File | Size | Author |
---|---|---|---|
#5 | Screen Shot 2012-05-30 at 1.20.45 PM.png | 62.96 KB | adnasa |
template-fix.patch | 886 bytes | loominade |
Comments
Comment #1
mortendk CreditAttribution: mortendk commentedfoxed
Comment #2
adnasa CreditAttribution: adnasa commentedI just installed the theme on a fresh copy of drupal.
notice remains.
Comment #3
adnasa CreditAttribution: adnasa commentedchanged status
Comment #4
mortendk CreditAttribution: mortendk commentedwhich version & page
a screenshot or something ?
Comment #5
adnasa CreditAttribution: adnasa commentedLatest 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
Comment #6
mortendk CreditAttribution: mortendk commentedComment #7
RobW CreditAttribution: RobW commentedGetting the same.
Comment #8
konsumer CreditAttribution: konsumer commentedI 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:
Instead of
I recommend changing the issue title to "Notices on undefined indexes", as it is a larger, but easily fixable issue.
Comment #9
mortendk CreditAttribution: mortendk commentedcant reproduce this issue :/