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

danpros’s picture

Category: bug » support

Hi,

Its because you do not adding the regions in sub-theme info file.

regions[search_box] = Search region
........

Dan,

Mo’s picture

Thanks! :)

Mo’s picture

Status: Active » Closed (fixed)
bjc5070’s picture

im getting the same errors in my danland install. all regions are present in my danland.info file. what do i do?

nscad_nathan’s picture

Same 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?

nscad_nathan’s picture

Version: 7.x-1.0-rc2 » 7.x-1.0
agerard’s picture

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

francescosciamanna’s picture

I followed your suggestion and this is the new error came

Warning: file_get_contents() [function.file-get-contents]: Unable to access sites/all/themes/danland/danland_sub/scripts/hoverIntent.js in drupal_build_js_cache() (line 4943 of /members/username/includes/common.inc).
Warning: file_get_contents(sites/all/themes/danland/danland_sub/scripts/hoverIntent.js) [function.file-get-contents]: failed to open stream: Success in drupal_build_js_cache() (line 4943 of /members/username/includes/common.inc).
Warning: file_get_contents() [function.file-get-contents]: Unable to access sites/all/themes/danland/danland_sub/scripts/superfish.js in drupal_build_js_cache() (line 4943 of /members/username/includes/common.inc).
Warning: file_get_contents(sites/all/themes/danland/danland_sub/scripts/superfish.js) [function.file-get-contents]: failed to open stream: Success in drupal_build_js_cache() (line 4943 of /members/username/includes/common.inc).

Any suggestion? Thank you for your kind support.