Drupal 7.37
Database system MySQL
Database system version 5.1.47
PHP 5.3.15
Modules: only the Drupal core modules

I am getting the following error in my new Skeleton based subtheme:

Notice: Undefined variable: hide_site_name in include() (line 44 of .../sites/all/themes/subtheme/templates/page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 47 of .../sites/all/themes/subtheme/templates/page.tpl.php).

I have cleared the Drupal cache by /admin/config/development/performance [Clear All Caches], /admin/appearance/update [Update], and directly from the database, and the error re-occurs immediately.

BUT, if in /admin/appearance/settings/subtheme I turn off "Site name" the error disappears.

Am I missing something obvious in my subtheme or is this a bug?

Thanks,
Tim

Comments

krueschi’s picture

Please add a copy of your template.php file here for inspection.

jithinantony’s picture

krueschi’s picture

Yes, especially the comment #11 (https://www.drupal.org/node/922984#comment-8474027) describes your way to go.
In short words: rename the function using your subtheme name instead of [skeletontheme].

TimJFowler’s picture

Argh!

Yes, I was missing something obvious.

I kept missing that the theme name / directory is "skeletontheme" NOT "skeleton". As soon as I replaced "skeletontheme" with "subtheme" in template.php AND cleared all caches everything works!

Fixed,
Tim

krueschi’s picture

Status: Active » Closed (fixed)