Hello. Just installed Drupal7 and I thought I'd have a try with customising a sub-theme from Adaptivethemes. I followed to the letter the instructions on creating a custom sub theme. But then my whole screen went pink!
Any ideas what the output below means? I know I should be asking the creators of Adaptivethemes, but I wonder if this is a problem to theming in general.
Notice: Undefined variable: linked_site_logo in include() (line 7 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 12 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 14 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: primary_navigation in include() (line 27 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: secondary_navigation in include() (line 28 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: primary_local_tasks in include() (line 54 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Undefined variable: secondary_local_tasks in include() (line 54 of /home/content/56/8816456/html/demo/d7/sites/all/themes/adaptivetheme/adaptivetheme/templates/page.tpl.php).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Undefined index: mtheme in drupal_theme_initialize() (line 98 of /home/content/56/8816456/html/demo/d7/includes/theme.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of /home/content/56/8816456/html/demo/d7/themes/engines/phptemplate/phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 996 of /home/content/56/8816456/html/demo/d7/includes/module.inc).
Comments
I have the same problem...
I have the same problem... did you solve it?
Undefined variables...
The undefined variable notices tells me there may be files missing from the theme - you might want try uploading the theme again, there should be a number of files in the adaptivetheme/adaptivetheme/inc/ directory - these files are critical for the correct operation of this theme and if even one of them is missing something will go horribly wrong at some stage.
If you have issues and need support in the future please post an issue in the queue: http://drupal.org/project/issues/adaptivetheme you will get much better and faster support there than anywhere else.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
I got this problem when I
I got this problem when I took the entire Seven core theme and placed it into my sites/all/themes folders. I renamed it to Seven_Admin, and made the appropriate changes to info file. I needed to do this because I like Seven for the admin theme, but needed to make some CSS changes to it.
Everything works except I get this notice:
"Notice: Undefined variable: secondary_local_tasks in include() (line 13 of /var/www/websites/mywebsite.com/httpdocs/sites/all/themes/seven_admin/page.tpl.php)."
Aha I forgot about renaming
Aha I forgot about renaming the functions in template.php
That seems to clear it up.
Thanks
@Cablestein , I had same problem and your help solved it. thanks.
I am having the same problem.
I am having the same problem. Could you include more detail as to what "that" was?
What would I need to rename? In template.php? I looked at it, but nothing jumped out at me. Granted, I am a php noob.
=-=
all functions that start with an incorrect theme name. However, I'd suggest generating a subtheme of seven rather than duplicating it.