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
CommentFileSizeAuthor
aurora-sidebar_first-missing.png24.75 KBRowboTony
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RowboTony’s picture

I'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:

# Regions
regions[sidebar_first]  = Primary Sidebar
regions[sidebar_second] = Secondary Sidebar
regions[content]        = Content
; Regions
regions[sidebar_first]  = Primary Sidebar
regions[sidebar_second] = Secondary Sidebar
regions[content]        = Content
Snugug’s picture

Interesting; 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.

RowboTony’s picture

Yeah, 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.

Snugug’s picture

Haha, 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.

micahgodbolt’s picture

Ah, glad to see this issue resolved. I was scratching my head for a while as well.

Snugug’s picture

Status: Active » Closed (fixed)

Both 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.