Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By 30ml on
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
Clear system cache
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.
Clearing cache is a only temporary solution.
Clearing cache is a only temporary solution. It also comes back for me whenever I revisit Appearance section.
Visit Goldlilys Media
Thanks it worked!
Thank you for the solution provided and shared among all of us.
Same warnings over here, only
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.
Same problem here
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
You need to change
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
Is that documented anywhere?
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
...
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.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Worked for me
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!
thanks a lot.
thanks a lot for a moment, but my error still persist.
Thank you for the solution;
Thank you for the solution; it worked for me.
thanks !
Thanks for the tips ! I had the same problem and now it's solved :)
Hmmm....news to me too
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.
Thanks
Worked for me. Thanks.
thanks...
thank you so much :)
Thanks
Thanks fro the help, its works fine..
SOLVED! This was the
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!
Solved!
Thanks a lot men :)
Replace bartik with your theme name in template.php
Yes, replacing bartik with your theme name in template.php does the trick.
Replacing theme_name with my_theme_name does not work
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
You have to Change the name =
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.
solved
Thanks, this worked for me...
template.php - Thanks!
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!
Search first, it always works
Search first, it always works better that way!
And changing the bartik to my new theme name worked like a charm.
that just helped me too
thanks - that got rid of my errors too
You probably didn't replace ALL the strings
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.
i ha this problem, upgrading
i ha this problem, upgrading the core and all the modules made the message to dissapear.
Hello
Thank u.. it very useful for me.
Replacing Files Worked For Me
I did a global search and replace for Bartik with the new theme name and it worked.
Thanks
Thanks
Oh and don't forget to change the name of the actual info file too!
themes
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).
go to templet.php and change
go to templet.php and change all bartik_ with your Nametheme_
and flush all caches
Thanks
It works to all sub-theme, thanks
hi adnane
Thanks for your help