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.
Along similar lines as #1776042: Undefined property: stdClass::$content_unwrapped in .... views-view-fields.tpl.php, I'm also getting this error on a fresh Aurora theme install:
Notice: Undefined index: sidebar_first in include() (line 131 of /var/aegir/platforms/panopoly-beta5/sites/all/themes/aurora/templates/system/page.tpl.php).
I've commented out the line in the page.tpl.php file for now. However this is odd that, while the region is declared in the mytheme.info file, it is not showing up on my blocks page (see attached), wonder why this would happen?
# Regions
regions[sidebar_first] = Primary Sidebar
regions[sidebar_second] = Secondary Sidebar
regions[content] = Content
Comment | File | Size | Author |
---|---|---|---|
aurora-sidebar_first-missing.png | 24.75 KB | RowboTony |
Comments
Comment #1
RowboTony CreditAttribution: RowboTony commentedI've figured out why this is happening. I created my theme with
compass create mytheme -r aurora --using aurora/susy
. I've noticed that the mytheme.info file that is created uses#
for php comments, when I changed those to use;
for comments everything worked fine, the error is gone and all regions show up in the blocks page.Change all
#
to;
and error is gone:Comment #2
Snugug CreditAttribution: Snugug commentedInteresting; I've never seen this and I've been using # for comments. If that fixes it though, I'll make the needed changes in the gems for new projects and in Aurora itself.
Comment #3
RowboTony CreditAttribution: RowboTony commentedYeah, I think this started with PHP 5.3 that
#
comments are now deprecated. Systems running PHP 5.2 or less wouldn't have noticed it. Though I thought it was just supposed to throw a PHP [warning] or [notice] not actually affect functionality.Comment #4
Snugug CreditAttribution: Snugug commentedHaha, well, clearly not. :P
I've not set up a Drupal 8 enviro yet so I'm still on <5.3, but once I get my real computer back I'll be doing that and fixing this.
Comment #5
micahgodbolt CreditAttribution: micahgodbolt commentedAh, glad to see this issue resolved. I was scratching my head for a while as well.
Comment #6
Snugug CreditAttribution: Snugug commentedBoth this and #1776042: Undefined property: stdClass::$content_unwrapped in .... views-view-fields.tpl.php should be solved for new Aurora themes with the fix you suggested. Please make sure to upgrade your gems before trying again.