I just started using this theme and I am unable to get anything to display in many of the theme region. The Preface, Sidebar and Post Content regions do not seem to work.

Also, when I specify content to be displayed in the Bottom 4 region, I receive the following error: Notice: Undefined variable: bottom in include() (line 148 of PATH_REMOVED/templates/page.tpl.php)

The design for this theme is wonderful and I would love to use it. Any help is greatly appreciated.

Comments

iub98’s picture

Same problem here. I receive the following when I enable the preface regions:

Notice: Undefined variable: preface in include() (line 68 of *******/sites/all/themes/UrbanSolice/templates/page.tpl.php).
Notice: Undefined variable: preface in include() (line 75 of *******/sites/all/themes/UrbanSolice/templates/page.tpl.php).
Notice: Undefined variable: preface in include() (line 82 of ********/sites/all/themes/UrbanSolice/templates/page.tpl.php).

devone’s picture

ok I think the fix for the three errors above is to replace the $preface vaiable on the three lines (68,75,82)
with $page['preface_one'], $page['preface_two'] and $page['preface_three'] respectively

hope it helps !

stdrupal’s picture

I am also getting the error:
Undefined variable: bottom in include() (line 148 of PATH_REMOVED/templates/page.tpl.php)
when trying to add any new content to the bottom regions - any fixes on this?

**update - if you make the same type of change as listed above, - changing $bottom to $page['bottom_one'], it removes the error as well.

FatherShawn’s picture

Status: Active » Needs review

This is a symptom of the same problem described in #1193374: Error message for drupal 7. The $preface and $bottom variables are defined in the template.php file, but the code isn't executed. The fix in the above issue also fixes this problem. Renaming these variables removes the error, but also removes the logic of the dynamic class name the theme author has created. Rather than edit the tpl.php file, use fix the file name as expained in the above issue.