Closed (fixed)
Project:
Danland
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2010 at 02:41 UTC
Updated:
26 Jun 2011 at 01:19 UTC
Jump to comment: Most recent
I created a sub theme of Danland. This is what I have in my info file.
name = sub
description = Danland sub-theme
base theme = danland
core = "7.x"
engine = phptemplate
I am getting these notices on every page.
Notice: Undefined index: search_box in include() (line 30 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: preface in include() (line 74 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: preface_first in include() (line 89 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: preface_middle in include() (line 89 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: preface_last in include() (line 89 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: content_top in include() (line 121 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: content_bottom in include() (line 145 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_first in include() (line 159 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_middle in include() (line 159 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_last in include() (line 159 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_1 in include() (line 182 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_2 in include() (line 182 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_3 in include() (line 182 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
Notice: Undefined index: bottom_4 in include() (line 182 of /Users/dev/Sites/drupal/sites/all/themes/custom/sub/page.tpl.php).
I copied page.tpl.php to sub. Should I add anything else anywhere?
Comments
Comment #1
danpros commentedHi,
Its because you do not adding the regions in sub-theme info file.
Dan,
Comment #2
Mo commentedThanks! :)
Comment #3
Mo commentedComment #4
bjc5070 commentedim getting the same errors in my danland install. all regions are present in my danland.info file. what do i do?
Comment #5
nscad_nathan commentedSame errors here. I tried copying over the regions from the parent danland.info file, but it doesn't seem to work. Using latest version in Drupal 7.
EDIT: I needed to delete the "features[] = logo ..." lines as described on the "Creating Danland sub-theme" page @ http://www.danetsoft.com/creating-danland-subtheme. Seems to have fixed it.
You might want to update the Danesoft guide to reflect the new version?
Comment #6
nscad_nathan commentedComment #7
agerard commentedI'm also trying to use a subtheme of Danland for D7, but would like to put it in a parallel directory rather than a sub-folder. Not sure if it would work just modifying the instructions for 6 in that respect, but it definitely doesn't work to do what has been successful for other subthemes; to copy/rename the theme folder and modify its info file to declare the base theme, etc. If I do that with Danland, the whole site disappears! What am I missing?Never mind, this time it worked. Don't know why...Comment #8
francescosciamanna commentedI followed your suggestion and this is the new error came
Any suggestion? Thank you for your kind support.