Using Drupal version - 7.0
Layout Studio version - 7.x-1.x-dev

Testing Drupal 7 on my local host and Layout Studio works just fine.

I turned on the core "blog" module and went to devel generate to generate some content and got the following error -

Notice: Undefined offset: 1 in layoutstudio_preprocess_html() (line 54 of /Users/karensmallwood/Sites/testing/test/sites/all/themes/layoutstudio/template.php)

Prior to this I had already generated content with devel generate and Layout Studio turned on with no issues.

I tried narrowing down the problem and the error seemed to intermittently go away on page refreshes and I thought I had narrowed this down to a devel block being turned on but when I removed the block the error remained.

I did some dpm's on the variables on the line causing the error in the template.php in Layout Studio and found that nothing was being output in the $sub_section variable.

As a temporary measure I removed $sub_section from line 53 on Layout Studio's template.php and commented out line 56 on the same file and it seems to stop the error

Comments

rjay’s picture

Assigned: Unassigned » rjay
Status: Active » Fixed

Fix committed to 7.x-1.x-dev.

rhache’s picture

Status: Fixed » Closed (fixed)