Hello ! Dud.

I am totally new with this drupal. I am web designer. Here, I am testing with drupal themes "bartik". Here, I have copy paste bartik folder in same folder and had change folder name with hira and change in bartick.info to hira.info and change content on it's respectively but I am getting error while I log in . I saw such error message . Do any body know what was wrong with me. I am using using Drual 7.

Notice: Undefined variable: hide_site_name in include() (line 99 of D:\project\drupal\themes\hira\templates\page.tpl.php).

Comments

alxshell’s picture

Hiho,

i had exactly the same problem here and complete system chache clearing helped me out.

Configuration -> Development -> Performance -> Clear all caches.

That solved the problem for me.

goldlilys’s picture

Clearing cache is a only temporary solution. It also comes back for me whenever I revisit Appearance section.

velandrupaldev’s picture

Thank you for the solution provided and shared among all of us.

hexabinaer’s picture

Same warnings over here, only I moved the copied + renamed folder to /sites/all/themes.
Right after clearing caches, the warning went away but reappeared on any subsequent page calls.

tgeller’s picture

I'm having the same problem, with a fresh Drupal installation (and new DB). The warning reappears when I go to the Appearance admin page.

---
Tom Geller * tomgeller.com * Oberlin, Ohio
See my lynda.com videos about Drupal

aimless’s picture

You need to change template.php
Replace bartik (previous theme name which you copied) with the new theme name
e.g.
bartik_preprocess_html should look like [new_theme_name]_preprocess_html

tgeller’s picture

Wow, this is the first I've heard of that. Is it documented anywhere? It absolutely should be.

And do I change *all* occurrences of "bartik" in that file with the theme's name?

Thanks for the tip!

---
Tom Geller * tomgeller.com * Oberlin, Ohio
See my lynda.com videos about Drupal

Jeff Burnz’s picture

Yes its documented in the upgrade notes and guide - in Drupal 7 you can no longer use phptemplate prefix for process or themeable functions, you must use the theme name. Someone was writing a subtheming guide for Bartik but I forget where it is, could be added there for clarity.

jackokorn’s picture

I was having the same exact error. Editing template.php to swap out "bartik" with my theme name worked. Oh, also flush your cache (Config->Performance). Thanks aimless!

Ionut Adrian Luchian’s picture

thanks a lot for a moment, but my error still persist.

idesign’s picture

Thank you for the solution; it worked for me.

ximizu’s picture

Thanks for the tips ! I had the same problem and now it's solved :)

markosaurus’s picture

I got this error after copying Bartik to sites/all/themes and then starting to back-hack it into a new theme for myself. Never seen this before, but this is my first D7 build (although about 50+ D6 builds). To be fair, I haven't read any D7 documentation though, so I wasn't likely to have run into it.

This solved it for me;

Open your template.php in dreamweaver, or an editor of your choice,
Select "find all" and type in bartik,
In the "replace all" box put in your new theme name as per your .info file,
Hit "Replace All" (the editor will replace "bartik" with "themename" when it encounters it),
save template.php back to your server,
configuration > performance > clear all caches

Et voila, that did the trick for me.

Hope this helps someone in the future.

Anonymous’s picture

Worked for me. Thanks.

gurpreet2000’s picture

thank you so much :)

ashoktcr’s picture

Thanks fro the help, its works fine..

Chimos’s picture

SOLVED! This was the problem.
On Bartik (not sure if other D7 themes work this way): I changed the site name (bartik -> 'new name') in the theme folder name, in the .info file, BUT is necessary to check template.php file in the theme folder to change 'bartik' for the 'new name' in all strings where it appears.

Thanks!

AlejoPuche’s picture

Thanks a lot men :)

ashraf.hussain’s picture

Yes, replacing bartik with your theme name in template.php does the trick.

khurshedmemon’s picture

I have cleared cache and replaced bartik with my_theme_name in template.php, but still i am facing the same problem/warning.
Notice: Undefined variable: hide_site_name() in include()(line 99 of ...sites/all/themes/my_theme_name/template/page.tpl.php

trackleft’s picture

You have to Change the
name = Bartik
in the .info file and rename it, and make sure you don't have any other .info files in that folder too.

khurshedmemon’s picture

Thanks, this worked for me...

arby’s picture

I have GOT to remember to check here before losing hours on a problem. I gave up on my new theme for a few days because of this, then went back and tried it again, still no luck - until I simply searched for this error message here. I didn't know to change the template.php references to Bartik (and then clear cache again). Thank you!

joewp’s picture

Search first, it always works better that way!

And changing the bartik to my new theme name worked like a charm.

CD’s picture

thanks - that got rid of my errors too

qlmhuge’s picture

I had the same problem after using Notepad++'s Find and Replace in Files function. I tracked down all the occurences of "Bartik" and "bartik" and replaced them with my theme's name, but I only did the "Match whole word" search. You need to find the "bartik_" strings too.

And of course you need to rename your theme directory AND the .info file.

alexmoreno’s picture

i ha this problem, upgrading the core and all the modules made the message to dissapear.

sudarsan ramamoorthy’s picture

Thank u.. it very useful for me.

leekei’s picture

I did a global search and replace for Bartik with the new theme name and it worked.

Thanks

klidifia’s picture

Oh and don't forget to change the name of the actual info file too!

ajitsandip’s picture

This is errore in drupal 7
HTTP error -10060 occurred when trying to fetch http://ftp.drupal.org/files/projects/openchurch_theme-7.x-2.1-beta3.zip.
Unable to retrieve Drupal project from http://ftp.drupal.org/files/projects/openchurch_theme-7.x-2.1-beta3.zip.

Notice: Undefined variable: hide_site_name in include() (line 120 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 123 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined variable: hide_site_slogan in include() (line 129 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined index: #primary in include() (line 185 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Undefined index: responsive_bartik in drupal_theme_initialize() (line 98 of C:\xampp\htdocs\drupal\includes\theme.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of C:\xampp\htdocs\drupal\themes\engines\phptemplate\phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Undefined index: responsive_bartik in drupal_theme_initialize() (line 98 of C:\xampp\htdocs\drupal\includes\theme.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of C:\xampp\htdocs\drupal\themes\engines\phptemplate\phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Undefined variable: hide_site_name in include() (line 120 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 123 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined variable: hide_site_slogan in include() (line 129 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Undefined index: #primary in include() (line 185 of C:\xampp\htdocs\drupal\sites\all\themes\openchurch_theme\templates\page.tpl.php).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Undefined index: responsive_bartik in drupal_theme_initialize() (line 98 of C:\xampp\htdocs\drupal\includes\theme.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of C:\xampp\htdocs\drupal\themes\engines\phptemplate\phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Failed to get available update data for 12 projects.
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Undefined index: responsive_bartik in drupal_theme_initialize() (line 98 of C:\xampp\htdocs\drupal\includes\theme.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of C:\xampp\htdocs\drupal\themes\engines\phptemplate\phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of C:\xampp\htdocs\drupal\includes\module.inc).

adnane’s picture

go to templet.php and change all bartik_ with your Nametheme_
and flush all caches

gamy’s picture

It works to all sub-theme, thanks

thietkelogocongty’s picture

Thanks for your help