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
Comment #1
krueschi CreditAttribution: krueschi as a volunteer commentedPlease add a copy of your template.php file here for inspection.
Comment #2
jithinantony CreditAttribution: jithinantony commentedThis may help.
https://www.drupal.org/node/922984
Comment #3
krueschi CreditAttribution: krueschi as a volunteer commentedYes, 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].
Comment #4
TimJFowler CreditAttribution: TimJFowler commentedArgh!
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
Comment #5
krueschi CreditAttribution: krueschi as a volunteer commented