WordPress.org

Ready to get started?Download WordPress

Forums

WordPress "forgets" selected theme, frequently falls back to default. (38 posts)

  1. pastafari
    Member
    Posted 7 years ago #

    We recently moved our website, with two different WordPress (2.0.6) based blogs, to a different server. Everything went fine, without any obvious problems.
    Except for one: One of the blogs frequently "forgets" the selected theme and after a few hours simply shows the default theme instead.
    This strikes me as very odd and I cannot find any reason for this behavior.
    The custom theme is based on k2 and worked fine on the old server and seems to work fine on the new server, except that after an hour or two, the default theme is shown instead. The admin-panel then shows the default theme as currently selected theme, too. Everything looks normal and the way it is supposed to be, except that it's just not the theme we wanted.
    The current solution to this problem is to simply rename the default theme and put the custom theme in the default folder. That works fine, but isn't really elegant and I hope it doesn't have to be a permanent solution.

    Does anyone else experience this weird behavior and might know what causes it?
    Every other setting, every other part of both blogs (with different databases and settings) works perfectly normal.

  2. msadventures
    Member
    Posted 7 years ago #

    I was having this problem last night, with WordPress switching back to the default theme, while I was working on a new theme for my website. I had the new theme up, I would make some changes, upload whatever page I had changed, and the theme would just randomly switch back to default.

    I don't have the new theme up now so I don't know if that had anything to do with it but I hadn't had that problem until last night while working on the theme.

    I'm also running on 2.0.6.

  3. pastafari
    Member
    Posted 7 years ago #

    This problem also occurred before the upgrade to 2.0.6, so if this is indeed a bug in WordPress it was already present in 2.0.5. WordPress 2.0.5 however seemed to work fine on the old server.
    I just don't understand how this could happen and why it happens seemingly randomly and after some hours only. What triggers the switch back to the default theme?
    I just noticed that at least with the current setup (default theme replaced by our modified k2-theme) the Lightbox-Plugin doesn't work anymore either, but I'm not sure if or how this might be related.
    Everything else seems to work normally.

  4. Miercat
    Member
    Posted 7 years ago #

    I'm having this same exact issue as well. Please give us a fix, it's quite annoying. :(

  5. vkaryl
    Member
    Posted 7 years ago #

    Only time I've had this happen was when I had wp installed in root with another instance in a subfolder, both using the same database (I do this occasionally for clients while testing). It quit as soon as I deleted the subfolder instance of wp at site launch.

    [And the only version this has EVER occurred with is 2.0.5+.]

  6. Miercat
    Member
    Posted 7 years ago #

    I personally don't have WP installed anywhere else. I do have it installed on the root (/public_html) folder though. But that shouldn't affect it should it?

  7. vkaryl
    Member
    Posted 7 years ago #

    Nope. Only time it does that (for me, YMMV!) is if the setup is as I detailed. I've other installs in root where it's never been a problem.

  8. PozHonks
    Member
    Posted 7 years ago #

    A definitive solution would be: 1) delete the "Default" theme, 2) rename your theme folder as "Default" (only the folder name).

  9. Root
    Member
    Posted 7 years ago #

    Deleting the default theme can have unpredictable consequences. Prinipally there is no guarantee that the new theme has all the templates necessary.

  10. pastafari
    Member
    Posted 7 years ago #

    @PozHonks

    I already wrote above that that's exactly the ugly workaround we are currently using. I hardly think that it is a very good "solution" to the problem though. I would be really much more interested in a real fix to the problem or at least a reason why this might be happening.

    @varkyl
    I'm not sure if that is what causes the behavior in my case. There are two completely separate wordpress installations with different databases, themes, content etc. on the server, both in different folders (one in /wordpress the other in /subfolder/wordpress). Only the older blog in /wordpress shows this odd behavior and only after moving from a shared server to a dedicated one (both with almost the same setup however).

  11. pastafari
    Member
    Posted 7 years ago #

    @Root

    That's what might be causing some new problems (with lightbox etc.) since we had to use this workaround and that's why I'm desperately looking for a fix for the initial problem.

  12. PozHonks
    Member
    Posted 7 years ago #

    @Root
    The minimum theme file required is an index.php
    The Default theme (named as Kubrick) is just a theme. It doesn't have any hidden functionality that are needed by WordPress.

  13. Root
    Member
    Posted 7 years ago #

    Plenty of very experienced WP users are not going to agree wth that. Without the default installed the whole thing can become very unstable.

  14. Miercat
    Member
    Posted 7 years ago #

    Deleting the default theme was a VERY bad solution for me when I tried it last week. What happened was, when it tried to go back to default it couldn't find it obviously, so it kept serving blank pages.

  15. MichaelH
    Member
    Posted 7 years ago #

    WordPress will revert back to the default theme if the theme currently active tries some illegal function.

    In theory, if your theme is acting correctly, you would not need to have the default theme installed on your site.

  16. jennmiller
    Member
    Posted 7 years ago #

    I never upload the default theme, and I've never had a problem. On all but one of my sites, I use only an index, stylesheet, and comments file. In the nearly three years of using WP, I've never had a theme reversion problem, so I think MichaelH is correct--check the content of the theme.

  17. Miercat
    Member
    Posted 7 years ago #

    But I use "K2", isn't that supposed to be some officially sponsored theme or theme creator? I would think it's using legal functions or whatever.

  18. vkaryl
    Member
    Posted 7 years ago #

    It's just another theme, with some extraneous bloated "fancies". If it's any consolation, I know someone who has the problem occasionally with a custom theme.

  19. msadventures
    Member
    Posted 7 years ago #

    As I mentioned earlier in the thread, it happened to me when I was customizing a theme and had some errors, and it did it again this evening again while I was customizing, so try double checking your code, you never know:

    http://validator.w3.org/

  20. oslersr17
    Member
    Posted 7 years ago #

    I'm having the same issue with my K2 theme. http://www.hearya.com.

    I'll go to bed with my new theme and wake up with the default. I deleted all the themes except for the one I want displayed and my site was gone. I logged into WordPress and even that them disappeared. Not sure how it was removed.

    Has anyone figured out if this is a wordpress bug or an issue with the theme itself?

  21. oslersr17
    Member
    Posted 7 years ago #

    Out of curiousity, assuming someone reads this, could it have something to do with installing the google xml sitemap plug-in? I installed that right before experiencing this issue. My theme is 3k2 redux klein (http://www.headsetoptions.org/2006/08/06/3k2-redux-klein-theme-released/)

  22. msadventures
    Member
    Posted 7 years ago #

    For me, it doesn't have anything to do with that plugin because I don't use it.

    I think the issue with my theme reverting to default was because of what vkaryl mentioned above - having two WP installations, one in a subfolder and one in the root.

    Anyway, so my fix for the time being is to delete every theme except the one I currently wish to use from both installs of WP. That's my fix until I become un-lazy enough to figure out how to get down to using just the one WP install, heh.

    So far it would seem that there isn't one common factor that's causing the theme switching.

  23. oslersr17
    Member
    Posted 7 years ago #

    Interesting. I also have one in the sub-folder and one in the root directory, but when I deleted my other two themes, my one theme disappeared and I had a blank page. Bad times...

    So did you delete the wordpress from your subfolder also? Maybe I'll try that. I haven't had a problem since deactivating the google plugin so my fingers are crossed.

  24. Miercat
    Member
    Posted 7 years ago #

    I've tried to delete all themes except my main theme as well and I also get a blank website and all themes gone from the Admin center. But it should be noted that theme isn't physically removed, it's just not in the Admin center anymore until I re-upload the default theme.

    This is SO weird.

  25. vkaryl
    Member
    Posted 7 years ago #

    It's not specifically a wp install in root and one in a subfolder - it's specifically when you use the SAME DATABASE for more than one wp install (at least in my experience, that is).

    I have numerous wp installs, in fact I've got a couple of sites with half a dozen each - one in root each and the rest in subfolders. But both those sites have a database for EACH install.

    The sites where I've had trouble this way are sites where I'm doing background tweaking for clients, and the main root install of wp is the "real deal" - so I've set up a tweaker install using the same database for convenience. What I note about these is that the root install theme never "fails" - only the subfolder one.

    So your situations may not fall into this black hole at all.... and sorry to be slow about getting back. I've had client messes to clear....

  26. Miercat
    Member
    Posted 7 years ago #

    OK here's my list of things I've got going...

    1. I've only got one WordPress install.
    2. I've only got one DB with one WordPress install.
    3. I can't delete default, because I get a blank website.
    4. I'm using K2.
    5. No template errors that I know of that would make it change.
    6. I'm getting ready to go back to MT if I can't get this fixed, which I DON'T want to do.

    I just have a basic single install so it's obviously an issue with WordPress and not how or what you've got installed. Even when I try the classic theme it still does the same thing.

  27. Chris_K
    Member
    Posted 7 years ago #

    And what plugins are we running?

  28. Miercat
    Member
    Posted 7 years ago #

    Here's the list of plugins I use, but before you say it, I've already tried disabling them all to see if that fixes it and it does not.

    1. Akismet
    2. Blue-k2 QuickTags
    3. Extended Live Archives
    4. Feedburner Feed Replacement
    5. Quoter
    6. Related Posts (Though I can't get it to work so I will be removing this one.)
    7. WordPress Database Backup
    8. WordPress Mobile Edition
    9. WP-ContactForm

  29. Chris_K
    Member
    Posted 7 years ago #

    8. WordPress Mobile Edition

    Bingo.

    Search here for that one. There's a known issue directly related to this thread. If the installation directions are not completely followed, your theme will reset to default when mobile users show up...

    [update] here's one from a quick search: http://wordpress.org/support/topic/77582?replies=9#post-490045

    Hope that helps!

  30. Miercat
    Member
    Posted 7 years ago #

    Hrm, well like I said I tried disabling them all before with the same result, but I will try disabling it again (because as far as I know I followed the directions) and see if it happens again. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic