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.
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
Comment #1
iub98 CreditAttribution: iub98 commentedSame 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).
Comment #2
devone CreditAttribution: devone commentedok 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 !
Comment #3
stdrupal CreditAttribution: stdrupal commentedI 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.
Comment #4
FatherShawnThis 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.