WordPress.org

Ready to get started?Download WordPress

Forums

Site keeps switching back to default theme (23 posts)

  1. I have a client who's blog keeps switching back to the default theme. They report that it happens after they make a new post, but I don't know if that's really the case or not or if they only notice it then.

    Does anyone have any clue why this would happen?

    Site URL: http://www.bookluxuryvacation.com/

  2. vkaryl
    Member
    Posted 7 years ago #

    Some posts a while back indicate this may be variously a "mobile" plugin, or cache. Try a search for - ah, nev' mind I see search can't be bothered to work worth a shit as usual. Give me a few I'll find something for you.

    [Edit: okay, look through this one, there were some others, but can't find them right now and search is NOT working, returns nothing even when I KNOW it should find the term *sigh*....]

    http://wordpress.org/support/topic/100229?replies=32

  3. Akismet v1.8.1 is the only plugin that's enabled.

  4. vkaryl
    Member
    Posted 7 years ago #

    Well, I haven't installed 2.1 so I haven't a clue - does 2.1 have a cache table? Or is this not 2.1?

  5. mstegink
    Member
    Posted 7 years ago #

    Could be a permission problem on the theme also. Check the permissions compared to the default theme.

    Another option: try removing the themes (except the default) and then re-upload them.

  6. They're running v2.0.7. Should I tell them to upgrade?

    And you'd think permissions are fine as it's on the wanted theme right now.

  7. vkaryl
    Member
    Posted 7 years ago #

    Well.... try 2.0.8 first. I wouldn't necessarily advise anyone to go to 2.1....

  8. Pfft, I run it on both my sites and works great. :P

    Forgot about 2.0.8 though. I'll upgrade that ASAP, but I don't think any changes were made in the theme department between those two releases, but I could be wrong.

    Regardless, an upgrade to 2.0.8 is a good thing. ;)

  9. olivers
    Member
    Posted 7 years ago #

    I see the same thing happening on our blog. It usually (not always, perhaps 40% of the time) happens after uploading a modified style.css file. WP (2.1) switches to another theme, in case there is no alternative theme it returns a blank page - no content whatsoever.

    An indeed interesting behavior. I looks like it has to do with the cached content of a file not matching the new content on the file system...not sure if this is far fetched or makes sense at all - just a wild guess.

    If it was only the servers filesystem, one would think WP returns the content except the file that can't be accessed.

    Weird.

    Oliver
    delicious:days

  10. olivers
    Member
    Posted 7 years ago #

    I found a reference in some other post about this issue, explaining that it indeed has to do with style.css (or index.php). If WP "thinks" something is wrong with either one, it switches to "default".

    Now if only one knew what WP's "thoughts" are...even uploading one of these files on a heavily hit server should not really be an issue, or?

    deliciousdays.com

  11. olivers
    Member
    Posted 7 years ago #

    Got to love those monologues. Anyway, this function seems to be the "culprit":

    validate_current_theme()

    It checks for existence of both mentioned files, if for whatever reason PHP file_exists() returns a "false" the default theme is activated.

    So this does come down to a file system issue...

    deliciousdays.com

  12. vkaryl
    Member
    Posted 7 years ago #

    Good detective work, olivers!

  13. Yeah, that's what I figured. I knew most of that (if you delete the active theme, it'll auto-revert to the default theme rather than freaking out), but I wasn't sure if this was just a crap webserver (which wouldn't surprise me) or something else. :)

    Thanks.

  14. nicobet
    Member
    Posted 7 years ago #

    Two questions, because I've been having this problem with my site since I switched themes.

    One, where is that function located?

    Two, I'm not running 2.1 right now, but 2.0.7, and I don't have any major plugin that has been thought to be a problem (just widgets & akismet & event calendar for now). I've never had the problem before this theme. Obviously it's something about my modified code, but what?

  15. dpyoung1
    Member
    Posted 7 years ago #

    Has there been any news on this one? I'm having the same problem in 2.1.2

  16. LeTh
    Member
    Posted 7 years ago #

    I found a work-around for this very annoying problem. I simply took the description comment from default/style.css and pasted it into my own theme's css. Then completey removed the default directory from the server, and renamed my own theme's directory to "default". Kind of a dirty trick, but it works. WordPress is happy to use what it thinks is the default theme, and I'm happy to fool it.

    But honestly, this isn't a good way doing it... It's quite a bad bug to work on!

  17. vkaryl
    Member
    Posted 7 years ago #

    Oh wow. WHAT a creative solution! You go.... doesn't matter if it's an ugly kludge workaround as long as it keeps the whole system gurgling along!

  18. crookdimwit
    Member
    Posted 7 years ago #

    So is the header trickery the best solution.... or has anyone found a better fix for this?

  19. SGTMattyW
    Member
    Posted 7 years ago #

    Not that it has anything to do with me, but in response to vkaryl's reply I say: So what, it works doesn't it? Personally I think that's a pretty good thought.

  20. crookdimwit
    Member
    Posted 7 years ago #

    All I know is I just moved my site to a new server, and since moving, that default template has hijacked my site six or more times in the last day. I'm happy with a kludge if it works, unless theres a better fix anyone can offer...

  21. blawrimore
    Member
    Posted 7 years ago #

    LeTh says "I simply took the description comment from default/style.css and pasted it into my own theme's css." But when I look at the Kubrick css file, I see many references to "kubrickbgcolor.jpg" etc. So how many items in the Kubrick css file must actually be changed for this workaround?

  22. vkaryl
    Member
    Posted 7 years ago #

    Not that it has anything to do with me, but in response to vkaryl's reply I say: So what, it works doesn't it? Personally I think that's a pretty good thought.

    Er.... yes, I thought that was what I meant when I posted. Not sure why you'd be offended....

  23. ad1
    Member
    Posted 6 years ago #

    I have this problem with my blog.

    http://www.riceblogger.com

    I will try to disable my mobile plugin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags