Can not turn off rebuilding theme registry on every page request
| Project: | Zen |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
as instructed in 307309, I'm opening a new issue.
My customized Zen-based sub-theme, based on 6.x-2.x-dev, says on almost every page:
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.
However, I can't find a place to disable rebuilding the theme registry. In the message above, "turn off this feature" is linked to ./admin/build/themes/settings/toxim; there I have no option to relating to the theme registry (there I have three fieldsets: "Toggle display", "Logo image settings", and "Shortcut icon settings"),
In my theme's info file I've set settings[zen_rebuild_registry] = 0; however, I can also set this to "1", I'm still getting the message above. Also, I double checked that theme-settings.php does not contain any references to STARTERKIT.
Is there any (other) way to disable rebuilding the theme registry, or what is happening here?
Thanks & greetings, -asb

#1
go to administer -> themes
click on configure for the ZEN theme (not your subtheme)
disable theme registry
#2
#3
> go to administer -> themes
> click on configure for the ZEN theme (not your subtheme)
> disable theme registry
The "Zen" theme is disabled on this site since I'm not using it. Does it have to be enabled even if using a sub-theme? That would be quite different to zen 6.x-1.0...
However, when enabling and going to ./admin/build/themes/settings/zen, "Rebuild theme registry on every page" is unchecked. If I check it and save, then uncheck it and save again, I'm still getting the nessage
"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".In my sub-theme there's no setting like "Rebuild theme registry on every page", there I have "Toggle display", "Logo image settings", and "Shortcut icon settings" (thus re-opening the issue).
Greetings, -asb
#4
No, Zen theme does not have to be enabled for a sub theme to work.
To disable the Rebuild registry setting of your _sub_ theme you have to go to admin/build/themes/settings/my_sub_theme_name
If you have no Rebuild registry setting on this page, you have to follow the instructions. Copy theme-setttings.php from STARTERKIT to you subtheme directory and replace all occurences of STARTERKIT in this file with my_sub_theme_name.
#5
Hi Sutharsan,
I think I followed the instructions precisely (I've done some Zen 6.x-1.x subthemes without these problems). Just double-checked - In MY-SUB-THEME/theme-setttings.php, MY-SUB-THEME/template.php, and MY-SUB-THEME/MY-SUB-THEME.info are no referenctes to STARTERKIT.
Any other ideas?
#6
If you followed the directions precisely (or as precisely as could be expected given that the instructions haven't been updated for the 2.0 branch yet), there won't be any references to STARTERKIT, because you replaced them with the name of your module.
In the .info file, do you see a line which looks like this?
settings[zen_rebuild_registry] = 1Try setting it to zero, then flushing your site's cache.
#7
> In the .info file, do you see a line which looks like this?
> settings[zen_rebuild_registry] = 1
> Try setting it to zero, then flushing your site's cache.
I tried that already, without success (please cf. with initial issue above).
Greetings, -asb
#8
@asb: What Sutharsan was referring to was when you first downloaded Zen there was a folder called STARTER_KIT -- inside this folder you will find a file called theme-settings.php which you need to copy into your subtheme folder. This file will enable your subtheme to have the same settings as the Zen theme to which people are referring you to.
Having said that, it seems ike you already have copied the theme-settings.php file into your subfolder and, if so, all I can suggest is that you copy it again from the STARTER_KIT folder and see if that fixes it (note any custom changes you made to theme-settings.php so you can re-add them after confirming the required settings are being displayed for your subtheme).
I recall having similar problems to this when I tried Zen a while ago, and I couldn't stop the message from appearing even after disabling the option to rebuild the theme registry. I didn't use it enough to warrant taking more time to solve it but I hope you can find a solution.
Regards.
#9
I have this problem as well, and stumbled on a solution quite by accident.
Go to your list of themes and enable "Zen Themer's Starter Kit" them (Not the normal Zen them).
Go to the configuration tab, and then select "Zen Themer's Starter Kit" to configure.
Scroll down and uncheck the "Rebuild theme registry on every page" checkbox.
Click Save Configuration.
NOW go to your subtheme configuration tab.
Click Save Configuration (even though you didn't change anything here).
Theme Registry rebuilds should now be turned off.
Let me know if this helps.
#10
This worked for me! thanks jpdaley
#11
#12
@jpdaley (#9): Sorry, that's exactly what is not not working for me. Setting the issue back to "active".
#13
2.x-dev was updated on 9/7 are you using the latest -dev?
#14
Jupp, I'm updating daily through Drush. Last installed version:
# drush info zenProject Release Date
------- ------- ----
zen 6.x-2.x-dev 2009-Sep-07
Greetings, -asb
#15
Have the STARTERKIT references all been replaced by the properly spelled name of your subtheme? Do you have the same problem when you spawn a fresh subtheme from scratch? Care to post the contents of your subtheme's template.php and theme-settings.php here, so we can take a look with you?
Cheers
#16
@jpdaley (#9): Worked perfectly for me. Thank you.
#17
I see this didn't work for @asd, but since this thread is most relevant when searching the error message, I wanted to put down that the above did work for me.
*I am using the 'camp' subtheme* from http://drupal.org/node/519100. 'settings[zen_rebuild_registry] = 1' does appear in camp.info
Cheers!
Justin
#18
To make things more clear.. and since I've had the same problem, let me properly explain this method of turning this feature off.
You must go to your themes list and 'Enable' Zen theme.
Then 'configure' Zen theme. Check to see if the feature is enabled or not, and if it is, 'uncheck' it.
Then 'save' the settings.
Then go to configure your sites theme, and save the settings, without making any actual changes.
You must leave the Zen theme enabled. The setting will now remain off.
#19
Having the Zen theme enabled (even if you are not using it) is the best approach to solve this issue?
#20
This is not the best solution at all. And forgive me, it also doesn't turn off the theme re-build permanently.
#21
And then what it would be the proper way to stop this and not having this permanent re-build…?
(I agree: on my system, having the Zen theme enabled and unchecking the “Rebuild theme registry on every page.” option didn't change a thing and I am still having this alert messages…)
#22
I found where my problem was: on theme-settings.php the function mytheme_settings() had the wrong name. Therefore, it was never called and that's why I haven't got the Theme registry checkbox in admin/themes/settings/mytheme.
Maybe this is useful to someone else: check that your theme-settings.php is having the proper functions (with the correct names) and that they are called!
#23
I was also having this problem and @tomgf #22 solution fixed it. Thank you.