I don't know what is happening because it's the third time it happens and I checked the Drupal's permissions and it's ok. But on the morning when I go to my web site it's completely defaced because there is no activated theme. It's like magic, when I go to sleep the site is perfect and in the morning after it appears defaced. I suspected that it could be Drupa'ls cron job that I scheduled to run every day on midnight, so I ran it manually to check and nothing went wrong. Is there somebody else that already had the same problem?

Comments

domesticat’s picture

What version of drupal are you running? There was a somewhat similar problem in 6.x that was fixed in version 6.9 -- see #305653: Themes disabled during update if you're curious.

lsrzj’s picture

I'm using version 6.9. I took a read on the issue you sent me but I couldn't reproduce in anyway the problem only visiting or running update.php like others could. With me is different because I leave the site working and hours later without I do anything it simply disable all the themes.

domesticat’s picture

It makes me wonder if something's happening during cron.

lsrzj’s picture

I can't understand because it doesn't happen every day it happens sometimes. My site was ok during 3 days since the last time it happened and now happened again. I don't know what could be. I couldn't repeat the problem executing update.php in anyway as suggested in another thread. The curious thing is that this time instead of simply enabling the theme I cleared all drupal caches and the theme was restored even with no theme checked in the themes list. But after clearing Drupal's caches I enabled the site's theme and it continued ok.

lsrzj’s picture

I ran cron from my terminal manually and these errors appeared. And I thought it wasn't a cron problem because it wasn't happening every cron run. Now I noticed that it has something about caching too, because when I clear all drupal caches my theme restores. I don't know why REMOTE_ADDR and REQUEST_METHOD is not being filled and maybe that's why my theme keeps disabling all the time at random times.

PHP Notice: Undefined index: REMOTE_ADDR in /var/www/www_drupal/includes/bootstrap.inc on line 1175
PHP Notice: Undefined index: REMOTE_ADDR in /var/www/www_drupal/includes/bootstrap.inc on line 1175
PHP Notice: Undefined index: REQUEST_METHOD in /var/www/www_drupal/includes/bootstrap.inc on line 554

Diegen’s picture

I think it happens when cron runs.

I keep getting the same problem, but mine is limited to the themekey module. I use it to assign Jake theme to certain logged in user pages such as workspace, profile and special faq section etc. Every now and again when I log into the site I see Themekey does not load Jake because the Jake theme has been disabled for some or other reason.

What should I do now ?

Ive been thinking of trying the admin theme module instead to load the admin theme while the user is using his workflow and profile pages.

wcraft’s picture

Did you ever find a root cause for this? I'm experiencing the same problem. It's on a multisite install, but only one of the sites has this problem. At first I was logging into the admin and re-enabling it, but later realized that it would re-enable on it's own if I simply pulled up pages in the admin.

Macronomicus’s picture

I cant seem to figure it out... seems that the theme is turned off at different times... im using the latest drupal core, well actually pressflow drupal. Im going to pay more attention and see if I cant make it happen or be more aware of whats going on when it happens. Its very annoying though, breaks all sorts of things when the theme is turned off. Strange thing though is it doesnt go back to garland or another theme and the site still shows in the proper theme, the radio for default stays on the theme in question.. re selecting the enabled checkbox brings things back to normal, until it eventually turns itself off again.

Did you guys figure what the prob was?

Diegen’s picture

I think it happens when cron runs.

I keep getting the same problem, but mine is limited to the themekey module. I use it to assign Jake theme to certain logged in user pages such as workspace, profile and special faq section etc. Every now and again when I log into the site I see Themekey does not load Jake because the Jake theme has been disabled for some or other reason.

What should I do now ?

Ive been thinking of trying the admin theme module instead to load the admin theme while the user is using his workflow and profile pages.

boazr’s picture

same thing happening on drupal 6.16. Some mornings I find the site themeless (no active theme at all). Single site installation.
Here are the active modules I use, if anyone cares:
Addtofavorites Add to Favorites (addtofavorites) Module Enabled 6.x-2.1
Administration Administration menu (admin_menu) Module Enabled 6.x-1.5
Advertising OpenX Adserver Integration (openads) Module Enabled 6.x-1.0
Ajax Ajax (ajax) Module Enabled 6.x-1.14
Asset Asset (asset) Module Enabled 6.x-1.x-dev
CCK Content (content) Module Enabled 6.x-2.6
CCK Content Permissions (content_permissions) Module Enabled 6.x-2.6
CCK Fieldgroup (fieldgroup) Module Enabled 6.x-2.6
CCK FileField (filefield) Module Enabled 6.x-3.2
CCK FileField Meta (filefield_meta) Module Enabled 6.x-3.2
CCK ImageField (imagefield) Module Enabled 6.x-3.2
CCK Imagefield Import (imagefield_import) Module Enabled 6.x-1.9
CCK Node Reference (nodereference) Module Enabled 6.x-2.6
CCK Number (number) Module Enabled 6.x-2.6
CCK Option Widgets (optionwidgets) Module Enabled 6.x-2.6
CCK Text (text) Module Enabled 6.x-2.6
CCK User Reference (userreference) Module Enabled 6.x-2.6
Chaos tool suite Chaos tools (ctools) Module Enabled 6.x-1.3
Core - optional Color (color) Module Enabled 6.16
Core - optional Comment (comment) Module Enabled 6.16
Core - optional Database logging (dblog) Module Enabled 6.16
Core - optional Help (help) Module Enabled 6.16
Core - optional Locale (locale) Module Enabled 6.16
Core - optional Menu (menu) Module Enabled 6.16
Core - optional Path (path) Module Enabled 6.16
Core - optional Poll (poll) Module Enabled 6.16
Core - optional Profile (profile) Module Enabled 6.16
Core - optional Search (search) Module Enabled 6.16
Core - optional Statistics (statistics) Module Enabled 6.16
Core - optional Taxonomy (taxonomy) Module Enabled 6.16
Core - optional Throttle (throttle) Module Enabled 6.16
Core - optional Tracker (tracker) Module Enabled 6.16
Core - optional Trigger (trigger) Module Enabled 6.16
Core - optional Update status (update) Module Enabled 6.16
Core - optional Upload (upload) Module Enabled 6.16
Core - required Block (block) Module Enabled 6.16
Core - required Filter (filter) Module Enabled 6.16
Core - required Node (node) Module Enabled 6.16
Core - required System (system) Module Enabled 6.16
Core - required User (user) Module Enabled 6.16
Custom Breadcrumbs Custom Breadcrumbs (custom_breadcrumbs) Module Enabled 6.x-2.0-beta2
ImageCache ImageAPI (imageapi) Module Enabled 6.x-1.6
ImageCache ImageAPI GD2 (imageapi_gd) Module Enabled 6.x-1.6
ImageCache ImageCache (imagecache) Module Enabled 6.x-2.0-beta1
ImageCache ImageCache UI (imagecache_ui) Module Enabled 6.x-2.0-beta1
jQuery Galleria (galleria) Module Enabled 6.x-1.0
Menu Imagemenu (imagemenu) Module Enabled 6.x-1.1
Meta tags Nodewords (nodewords) Module Enabled 6.x-1.11
Meta tags Nodewords - basic meta tags (nodewords_basic) Module Enabled 6.x-1.11
Other Advanced help (advanced_help) Module Enabled 6.x-1.2
Other CKEditor (ckeditor) Module Enabled 6.x-1.1
Other Clone module (clone) Module Enabled 6.x-1.0
Other getID3() (getid3) Module Enabled 6.x-1.3
Other Menu Block (menu_block) Module Enabled 6.x-2.3
Other Page Title (page_title) Module Enabled 6.x-2.3
Other Pathauto (pathauto) Module Enabled 6.x-1.3
Other Search config (search_config) Module Enabled 6.x-1.5
Other Site map (site_map) Module Enabled 6.x-1.2
Other Strongarm (strongarm) Module Enabled 6.x-2.0-rc1
Other Textile (textile) Module Enabled 6.x-2.0
Other Token (token) Module Enabled 6.x-1.12
Other Webform (webform) Module Enabled 6.x-2.9
Taxonomy Cumulus (cumulus) Module Enabled 6.x-1.3
Taxonomy Tagadelic (tagadelic) Module Enabled 6.x-1.2
Views Views (views) Module Enabled 6.x-2.10
Views Views exporter (views_export) Module Enabled 6.x-2.10
Views Views UI (views_ui) Module Enabled 6.x-2.10
XML sitemap XML sitemap (xmlsitemap) Module Enabled 6.x-1.2
XML sitemap XML sitemap engines (xmlsitemap_engines) Module Enabled 6.x-1.2
XML sitemap XML sitemap node (xmlsitemap_node) Module Enabled 6.x-1.2
XML sitemap XML sitemap taxonomy (xmlsitemap_taxonomy) Module Enabled 6.x-1.2

boazr’s picture

I found out the problem was caused by an additional misconfigured site using the same db/pass.
My bad :)

inductor’s picture

Thanks a lot, it was my case as well!

yvesdc’s picture

Hi all, my themes also disable and I am using drupal 6.22 and Themekey. I have narrowed it down to something happening when the page is loaded as it occurs if I load the page many times. It does not seem to be linked to Cron or Update. If anyone has any workaround or tips, it would be very much appreciated.