To reproduce the bug:
1. Go to admin -> themes
2. Mark a theme as "Default" -- but do not click its Enabled box.

When a theme is the Default, but has not been Enabled, it can cause random and unpredictable behavior. The theme registry can get corrupted, and the web site goes down. In the server log, you will find the dreaded "Premature termination of script headers" message.

I also note that the dtools emergency WSOD module fails to correct the problem. The only way to restore the website is to either manually clear out the theme registry (drupal_rebuild_theme_registry() function), or run the update.php script.

Comments

kenorb’s picture

Probably it's some server configuration issue.

Can you describe your configuration?
Windows/Linux
dedicated or shared hosting
which version of PHP and Apache

Have you tried if this problem exist on other machine?

kenorb’s picture

Component: base system » theme system
kenorb’s picture

kenorb’s picture

kenorb’s picture

kenorb’s picture

kenorb’s picture

Component: theme system » base system
kenorb’s picture

Component: theme system » base system
kenorb’s picture

kenorb’s picture

Sorry for duplicated posts, some Drupal.org caching issue.

heine’s picture

Priority: Critical » Normal

Are you able to reproduce this with a clean install of D 6.19 (or 6.x-dev)?

When I set a theme to default without checking the enabled checkbox, it's automatically enabled after submit. I also do not experience random errors.

Are you sure the "random and unpredictable" behaviour is caused by doing this (and not a post hoc ergo propter hoc fallacy)?

crifi’s picture

Status: Active » Closed (cannot reproduce)

I've tested this under Drupal 6.26. I've I activate a theme to default, the form automatically enables the theme. So this bug isn't reproduceable.