WordPress.org

Ready to get started?Download WordPress

Forums

Theme is irregularly reset to default theme (41 posts)

  1. raskall
    Member
    Posted 8 years ago #

    I am running my blog with WordPress version 2.0.2 and has come across a quite annoying problem. I have found a workaround, but I'd like to find out what the problem is:

    I have installed and adapted the Almost Spring 1.0 theme to my blog. Every 2, 3, 4 or x days, the active theme is being reset to the wordpress 1.5 default theme. I have tried stripping away everything I don't need and still it happens.

    I think this started when I installed a new, hidden blog in the same database as my regular blog, but with a different database prefix. This new blog has wordpress 1.5 default theme as selected theme.

    The workaround I have made is to remove the default theme and copy the Almost spring theme to the default directory and rename the theme in the .css-file. But I don't think this is a satisfactory solution and would like to get a clue of what's doing this.

  2. Nicki Faulk
    Member
    Posted 8 years ago #

    Hi raskall, what's the link to your blog? As long as your two WP installs are using separated database prefixes, they should be fine. I have two running out of the same database with different prefixes as you have, and have not had a problem yet.

  3. raskall
    Member
    Posted 8 years ago #

    the address for my blog is http://rolfas.net/. I also figured it would be fine to run two blogs in one mysql base, so I am not sure that is the problem either.

    I have removed the second blog, so that one is a bit hard to give you the address to. :)

  4. sndr
    Member
    Posted 8 years ago #

    Hi, I've the same problem! Tt's only one blog with one database and still reset to default within a day. It uses wp 2.0.2, what's the problem?

  5. vanner
    Member
    Posted 8 years ago #

    yes, this is happening to me as well. it is driving me nuts. any ideas?

    I am using WP 2.0.2

  6. raskall
    Member
    Posted 8 years ago #

    As mentioned, I removed the default theme and copied the theme I want to use to the "default" directory in the themes directory.

    But since we are now (at least) 3 persons having this problem, maybe a bug report is in its place?

    Are you guys also using the Almost Spring theme? I will post a bug report and link to this thread. Hopefully the guys creating poetry (aka code) will look into it and find out what is wrong.

  7. raskall
    Member
    Posted 8 years ago #

    I have posted a bug report on this. Keep track of this here:
    http://trac.wordpress.org/ticket/2664

  8. sndr
    Member
    Posted 8 years ago #

    Nope, Im using a modified Benevolence theme, with wp 2.0.2.

  9. ladydelaluna
    Member
    Posted 8 years ago #

    i wonder what would happen if you removed any and all themes except the one you're using... like, FTP in and delete them all but the current one.

    not that that's an acceptable solution either (especially for those using theme switchers) but it might help... ???

  10. vanner
    Member
    Posted 8 years ago #

    I'm using the kiwi theme. I copied the theme into the "default" directory, but some the of webpage functionality is still lost.

  11. ladydelaluna
    Member
    Posted 8 years ago #

    well i wouldn't recommend copying from one theme folder to the "default" because then you chance losing things...

    what i suggested was to remove ALL theme folders EXCEPT the one you're using... in other words, FTP in, and delete all the themes (including default and classic) except the one you're using.

  12. raskall
    Member
    Posted 8 years ago #

    What do I risk losing? I don't think there's anything in the default wordpress theme that is essential for other themes. What I have done is simply to set another default theme than the one in the installation tarball/zip-file.

    But as mentioned this is a workaround, not a fix. So I hope the wordpress ppl will come up with a fix.

  13. ladydelaluna
    Member
    Posted 8 years ago #

    raskall - i wasn't referring to you setting the theme the way you did - i was referring to what vanner did. please relax.

  14. sndr
    Member
    Posted 8 years ago #

    Well, I copied the theme files to the default folder as vanner did and it works so far, but I dont think this is the best solution. :/

  15. vanner
    Member
    Posted 8 years ago #

    I removed the "default" directory. I'm just crossing my fingers that the theme and stylesheet value in the wp_options table doesn't switch back to "default". This will load a blank webpage. :/

  16. southsou
    Member
    Posted 8 years ago #

    This problem is not confined to WP 2.0+. I'm using WP 1.5.2 and have the same problem.

  17. Mark (podz)
    Support Maven
    Posted 8 years ago #

    This happened a loooong time ago with 1.2.2 - or something very similar.

    If your site is
    http://example.com
    and someone goes to
    http://www.example.com
    does that cause the problem?
    Can you try and check?

  18. ringmaster
    Member
    Posted 8 years ago #

    This plugin will detect if something deliberately changes the theme using the update_option() call. The update_option() function is one of two functions that can alter the theme, the other being delete_option(), which has no plugin hook and so can't be watched.

    Anyway, if something on your site explicitly sets the template or stylesheet settings, you should receive an email at your admin email address with a listing of debug information. Install and activate the plugin, then switch themes to make sure it works (you get email from it).

    Then leave it active and wait for your theme to change without you having done it. If whatever is doing it calls update_option(), you will get email. Paste the debug info from that email here, and someone will be able to determine what's doing it.

    If you don't get email when the theme switches by itself, then whateer does it isn't using update_option() to do it, and it's going to take a little more doing to track it down. But you should still report that.

  19. southsou
    Member
    Posted 7 years ago #

    Tried themewatch plugin. It doesn't work. It is installed and activated but does not send me email when I switch themes. WP 1.5.2. Thanks anyway.

  20. splashier
    Member
    Posted 7 years ago #


  21. ringmaster
    Member
    Posted 7 years ago #

    The plugin will not work with WP 1.5.2. The original poster said 2.0.2, where it should work fine. The hook that the plugin uses does not exist in 1.5.2.

  22. southsou
    Member
    Posted 7 years ago #

    Regardless of whether the themewatch plugin will not work in WP 1.5.2, the fact that I'm getting the same problem as folks who use WP 2.0.2 indicates that the problem is not confined to WP 2.0.2. Perhaps it is due to different factors in 1.5.2 and 2.0.2, but perhaps it is something they have in common. Just a thought. Thanks.

  23. ringmaster
    Member
    Posted 7 years ago #

    Sure. But the implication from your last comment was that the plugin didn't work - it does, just on WP 2.0.2. Knowing that the offending code is likely the same betwen 1.5.2 and 2.0.2 isn't going to help as much in detecting it as verifying it.

  24. cleanairman
    Member
    Posted 7 years ago #

    I am having a similar problem, one blog, one database. I am using a custom theme and every day or two, it was resetting to the default theme, so I removed the default, now every day or two, it just shows a blank page. I have a few websites, all of which have blogs, all are on different servers/hosts/ips - is there a workaround or solution?

  25. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Please install the plugin ringmaster refers to:
    http://wordpress.org/support/topic/68876?replies=24#post-366699

    We need more information to work this out.

  26. cleanairman
    Member
    Posted 7 years ago #

    how do I go about installing that? I downloaded it locally.

  27. cleanairman
    Member
    Posted 7 years ago #

    nevermind, I found the page for how to instal plugins. I was wondering, since it keeps wanting to reset to default, and since I have no interest in changing themes, can I just name the folder of my custom theme to default? would that resolve the issue for me?

  28. penmig
    Member
    Posted 7 years ago #

    Hi guys, this is the debug I receive, but ONLY when I change the default theme to my theme (spectra):

    spectra
    Array
    (
    [0] => Array
    (
    [function] => theme_watch
    [args] => Array
    (
    [0] => spectra
    )

    )

    [1] => Array
    (
    [file] => /var/www/html/wp/wp-includes/functions.php
    [line] => 1279
    [function] => call_user_func_array
    [args] => Array
    (
    [0] => theme_watch
    [1] => Array
    (
    [0] => spectra
    )

    )

    )

    [2] => Array
    (
    [file] => /var/www/html/wp/wp-includes/functions.php
    [line] => 376
    [function] => do_action
    [args] => Array
    (
    [0] => update_option_stylesheet
    [1] => spectra
    [2] => default
    )

    )

    [3] => Array
    (
    [file] => /var/www/html/wp/wp-admin/themes.php
    [line] => 12
    [function] => update_option
    [args] => Array
    (
    [0] => stylesheet
    [1] => default
    )

    )

    )

  29. silfverduk
    Member
    Posted 7 years ago #

    Just an FYI, I tried solving this by deleting the default theme, and a few days later, my website came up blank. No theme was selected when I went into the presentation admin screen. It's happened several times since then.

    For now, I'm going to do what was suggested above, and copy my current theme into a folder labelled default, so that if it switches again, I won't have a loss of service for clients.

  30. rcasalis
    Member
    Posted 7 years ago #

    We had the problem of the theme reverting to default. The interval between changes was not fixed.
    In our case it appears to have occured due to an oversight on our behalf. We had left a copy of the files in a test folder mapped to a test URL where we had tested WordPress with default settings. We had changed URL General options (for WordPress and Blog) and copied our test files to a new folder and set up our new URL and added a new theme and everything seemed fine.
    Unfortunately a crawler (Yahoo in fact) found the old copy on the test URL and each time it requested the index.php the theme was changed to default (because on that URL there was no copy of the new theme and so the database wp_options table template value would have been found to be invalid).
    Clearly the solution in our case was to delete the test folder (which we should have done anyway once the new site was up).

Topic Closed

This topic has been closed to new replies.

About this Topic