When setting theme_default in default.settings.php the documentation does not indicate that once this setting is made active that you cannot change the theme from 'admin/build/themes'. The unexpected behavior of setting this setting and not realizing the results may seem like a bug to a user when they browse to 'admin/build/themes' and try to change the theme. The user can even deactivate the current default theme and hit submit and the theme is no longer showed as active but is still shown as default and it is visible that the theme is still the active theme though no error or other indication is visible. I've been informed that this happens at a "very low level" and that "the UI won't be able to change it." If this were not the case it would be nice for the options in the theme table to be set to '#disabled' to indicate that something else, in this case settings.php, is prohibiting the desired action. Since I have been informed that this is not possible I have attached a patch to default.settings.php. I've marked this as 'patch (code needs work)' as I am uncertain that my explanation is fully ready and would enjoy getting additional input to the subject.

Thanks,
-mpare

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

keith.smith’s picture

Status: Needs work » Postponed (maintainer needs more info)

Was this the file you intended to attach? I ask because diff says it is identical to the existing default.settings.php. But perhaps I misunderstand....

Gábor Hojtsy’s picture

Actually this not only applies to the default_theme but any setting overridden here. As the code says:

* To override specific entries in the 'variable' table for this site,
* set them here.

Emphasis from me. Admittedly this might not be clear enough. But it applies to any setting, so there is no generic way to disable stuff on settings forms when other values are set here.

Gábor Hojtsy’s picture

Title: theme_default documentation in default.settings.php and its unexpected behavior in UI » Document better that $conf overrides any db setting

Retitled.

mpare’s picture

Status: Postponed (maintainer needs more info) » Needs work
FileSize
801 bytes

Err... Sorry, rerolled patch from root. Wasn't getting email notifications in regards to this issue.

mpare’s picture

I've made additional changes to the "Variable overrides:" paragraph indicating that these changes cannot be changed form the drupal admin interface. My text in regards to theme_default may be redundant now but I think that the additional text I added to the theme_default is still useful however. Please let me know your opinions.

Thanks,
-mpare

Gábor Hojtsy’s picture

- "any changes made to this document" sounds quite inappropriate. We are concerned about the values in the array not the changes in the document :)
- I am not sure we need a specific note about this at the theme... the site name cannot be modified if it is set in the setting.php file as well

mpare’s picture

FileSize
898 bytes

Yes, I agree that "any changes made to this document" sounds inappropriate after I reviewed the text a little later. I have changed this to say "Note that any changes made to the variable overrides cannot be changed from the drupal administration interface." In addition I removed the statement about the theme_default.

Thanks,
-mpare

Gábor Hojtsy’s picture

Status: Needs work » Fixed
FileSize
979 bytes

I made some edits to the text, and committed this one. Thanks!

keith.smith’s picture

Status: Fixed » Reviewed & tested by the community
FileSize
978 bytes

Small typo, so I'm marking RTBC.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Committed, good catch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.