Sometimes, at least 1 time a month +-, when I visit my site, there is no theme selected and I get a lot of error code.

Notice: Undefined index: highlighted em include() (linha 120 de /var/www/novoportal.faccat.br/htdocs/portal/modules/system/page.tpl.php).
    Notice: Undefined index: sidebar_first em include() (linha 132 de /var/www/novoportal.faccat.br/htdocs/portal/modules/system/page.tpl.php).
    Notice: Undefined index: sidebar_second em include() (linha 138 de /var/www/novoportal.faccat.br/htdocs/portal/modules/system/page.tpl.php).
    Notice: Undefined index: genesis em drupal_theme_initialize() (linha 100 de /var/www/novoportal.faccat.br/htdocs/portal/includes/theme.inc).
    Notice: Trying to get property of non-object em _drupal_theme_initialize() (linha 145 de /var/www/novoportal.faccat.br/htdocs/portal/includes/theme.inc).
    Notice: Trying to get property of non-object em _theme_load_registry() (linha 321 de /var/www/novoportal.faccat.br/htdocs/portal/includes/theme.inc).
    Notice: Undefined index: genesis em theme_get_setting() (linha 1316 de /var/www/novoportal.faccat.br/htdocs/portal/includes/theme.inc).

I always need to select the theme again and clean the cachê.

Also I used the Devel theme rebuild tool, but I keep getting these errors.

Any Ideas?

Comments

joao sausen’s picture

help?
i cant find anything about this...

lukus’s picture

Same is happening to me with one site in particular. I'll work out what the problem is and post back here.

christopher james francis rodgers’s picture

forum "Theme Development"
http://drupal.org/forum/3


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *

joao sausen’s picture

i dont think this is a theme problem, but a core problem...

anyway, i updated to the 7.14 version, i will wait and see if this wil happen again.

lukus’s picture

I found that the problem was that I was reusing a starter theme as a base for my new theme which was incompatible with the (later version of the) parent theme.

I recreated the starter theme from scratch and it worked. Having said that, it might have been a permissions problem .. but it didn't seem to be from the brief time I spend altering permissions.

joao sausen’s picture

the starter theme was genesis?

ashishdalvi’s picture

I am facing the same issue of theme getting unselected .

But after the research i found it happens only after the drupal cron Run.
By making the cron run option disable you can temporary resolve this issue.