• I have a blog that has been running for a while… and has always exhibited a particularly nasty problem: No matter what theme I pick, it inevitably resets back to the default theme. It never does it right away, but randomly.

    I have also disabled all plugins, and the only ones left are:

    akismet
    One-Click
    wp-security

    I have checked my server logs, and cannot find any error messages that seem to indicate it is dying (hence falling back to the original theme).

    When I upgrade, I remove all of the original files, and upload all the new ones, except for the custom content in wp-content, and the wp-config.php files.

    Any help would be much appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter robbart

    (@robbart)

    Some further information.

    Even though the public view drops the theme I chose, and shows the default theme for some reason, in the admin, it still shows the theme I have selected as the them that has been activated.

    Do you have the theme info comment at the start of your theme’s style.css? I had accidentally deleted mine and I got random resets back to the default theme until I restored it.

    Thread Starter robbart

    (@robbart)

    I am using themes that were downloaded from the theme gallery; I haven’t created my own.

    They appear to have the correct info at the top, like this one:

    /*
    Theme Name: Journalist
    Theme URI: http://lucianmarin.com/
    Description: Journalist is a smart, minimal theme designed for professional journalists.
    Version: 1.9
    Author: Lucian E. Marin
    Tags: white, two columns, fixed width, light, minimal
    For the WordPress community (GPL), enjoy it guys.
    by Lucian E. Marin – lucianmarin.com
    */

    Thread Starter robbart

    (@robbart)

    bump

    Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    Been an issue for a long, long time.

    http://ww.wp.xz.cn/support/topic/77582#post-570631

    No good fix for it.

    Thread Starter robbart

    (@robbart)

    Thanks Otto.

    It would be nice if WP logged these sort of events, so at least we could investigate the cause, instead of guessing and having nothing to research or go on.

    Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    Actually, the only way it can revert now is when you are on the admin screen.

    And when it happens, it will give you a message saying “The active theme is broken. Reverting to the default theme.”

    Now, if it’s only happening on certain pages and without you being on the admin screen, then it may just be a permissions issue. The system reverts to the default theme for some files automatically and transparently when it can’t find them in the active theme or they are otherwise inaccessible. The comments-popup.php file is an example of this. Several others as well.

    Thread Starter robbart

    (@robbart)

    Ah, ok, well that’s a start… That does describe what is happening. That is, it’s only resetting the theme sporadically, and NOT when I am in the admin area.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘WP 2.6 Site loses theme randomly’ is closed to new replies.