By damd on
I get this message all the time:
"For easier theme development, the theme registry is being rebuilt on every page request. It is extremely important to turn off this feature on production websites."
This is strange, because I am using my own custom sub-theme of Zen and I can't find any checkbox to uncheck to disable this in the sub-theme configuration page. When I look at the Zen configuration page (not the one for my sub-theme) I do find this checkbox and it is unchecked.
Any ideas?
Comments
hey try to enable and disable
hey try to enable and disable it again and clear your cache.. then tell what u r seeing.. there will be no setting in your custom theme config page. you have to configure the zen itself. remember, your theme is a subtheme of ZEN. So it takes all the setting and styles from ZEN which is not present in your sub-theme.
thanks
I see a checkbox to rebuild
I see a checkbox to rebuild theme registry within my custom theme which is a sub-theme of zen.
as stated by amritbera try disabling and enabling your theme and clear your cached data.
@amritbera i dont think the settings for zen apply to your custom theme , especially your 'theme specific settings' and also when your custom theme is enabled the settings within zen will not be reflected as its is not enabled >
@CMS
Hi,
I don't agree with you. For example, if we dont have any template inside our zen-sub-theme's template folder, drupal will use the page and node templates from the the main zen theme, even it is not activated..
thanks
hi amritbera I agree with
hi amritbera
I agree with what u say , thank you for the input but however a question popped up in my mind.
if i do copy the template files into my subtheme template, wont these template settings override your zen theme settings ?
@damd
and also i did some digging in and found that your sub-theme's .info file contains default settings so try changing
settings[zen_rebuild_registry] = 1
to
settings[zen_rebuild_registry] = 0
and check if it works
hope it helps
@CMS
Yes of-course it will override :) Drupal first searches every required theming stuff in the sub-theme. then, if it can't find the required one, it goes to ZEN and find...
thanks
Zen subtheme info file
The same thing was happening to me, and it was confusing because when I went to my subtheme settings there was no checkbox for rebuilding the theme registry on every page. There was in Zen (the main theme), but it was unchecked.
So I took a look in my subtheme info file. It contained this line:
settings[zen_rebuild_registry] = 1
I changed the 1 to 0, cleared the cache, and... it made no difference. And why wasn't this setting showing up in my subtheme settings page? A puzzler.
Then I took a look in theme-settings.php and--oops--there were functions in there still prefaced with STARTERKIT. I knew that you had to replace STARTERKIT with the subtheme name in template.php, but I'd overlooked theme-settings.php.
So I did the search and replace in theme-settings.php, and the rebuild theme registry setting (and some others) appeared in my subtheme settings. For some odd reason, the checkbox was still checked even though I'd changed 1 to 0 in the info file. But I unchecked it, and now, AT LAST, I am no longer getting that pesky message.
So CMS, it looks like you're right. The rebuild registry setting is not inherited from the main theme. You have to have it set in the subtheme.
database hacking solution
Yeah, or you can just go into the database, in phpmyadmin search for %registry%
find the setting for your theme, which holds a serialized array that looks like this:
"zen_rebuild_registry";s:1:"1";
change to this
"zen_rebuild_registry";s:1:"0";
actually...
...you have to change it in the .info file for you zen theme.
Ah found it... I thought
I still have the same message. I have gone through the theme settings, database, the info file, even updated Zen. Then I uninstalled theme developer. I am still getting the message. I cannot get rid of it no matter what.
I found it.
I think there are too many places for this setting. The info file must be edited. I have even gone as far as to change it in the database but that doesn't work. Then I found that you have to go through home / admin / structure / domains. Along with that there is also the appearance / settings / themes. For some odd reason until you go through the admin / structure / domains setting it will continue to rebuild the registry no matter what. Why couldn't this just be in one spot and not three?