WordPress.org

Ready to get started?Download WordPress

Forums

Theme Options randomly reverts to default (23 posts)

  1. cableboy
    Member
    Posted 8 years ago #

    I'm using theme options for a theme in 2.0. I set up those options in the theme options screen when I created my blog. But twice in the past two months the options have reverted to default, obviously changing the look of my site. I've then had to go back into theme options and put them to the correct settings.

    Anyone know why this is happening? I'm thinking a solution is to disable theme options. But how do I put the options there into the template? Thanks

  2. nashife
    Member
    Posted 8 years ago #

    I had the same problems and tried searching for a solution a lot. No one seemed to know what was happening.

    Finally, I went into my installation and tried to see if there was ANYTHING not standard about how it was installed. I realized that I had a directory in my wordpress root directory that was chmoded to 777. It was leftover from the way I installed an earlier version of wordpress.

    I have no idea why this would have an effect on the theme, but basically after I removed that leftover directory (it had been empty, btw), I stopped experiencing the strange "theme reverts to default" bug.

    Additionally, I do have other directories in my root directory side-by-side with my wordpress installation (for example, a files directory for my own use, and directories I have for friends to see notes to themselves), but none of that causes this bug (or seems to conflict). It was only the directory that was chmodded to 777 that seemed to cause it to happen.

    As a test, I would like to restore that 'wordpress' directory chmodded to -777 and see if the theme starts to revert back to the default theme or not.

    If I do this, I'll blog about it on pennyhero.net and hopefully google will index it and it will help others.

    If you help me spread the word, or if people with questions about what I did want to, I can be contacted at emily [at] pennyhero [do] net or at http://www.pennyhero.net through comments.

  3. frankpereiro
    Member
    Posted 8 years ago #

    I don't if the chmod is the problem, though. I have everything chmod'ed to 755 and have the exact same problem.

  4. PozHonks
    Member
    Posted 8 years ago #

    Your theme may need to update a function in the MySQL database for some reasons.
    If your theme gets an Option page (a functions.php file), or in a template file, you call directly the database (not by using a template tag or a plug-in tag, but a MySQL command), something may be badly coded. Then, WordPress may think your theme is broken and then, go back to the by default theme.
    With this explanation, you may find what is wrong. If you downloaded the theme, try to speak to the developper if he faced the same problem.

  5. drawab
    Member
    Posted 7 years ago #

    Well I seem to be having this problem with 2.0.5 and just checked to see all directories properly set to CHMOD 755.

    My problem is that the theme reverts to default every few hours and its becoming a nagging problem

  6. drawab
    Member
    Posted 7 years ago #

    I have probably come up with a solution, it seems that WP-Mobile plug-in designed by Alex King somehow conflicts with the installation, simply disabling the plug-in makes all the headaches go away.

    Credit for the solution Scott Burkett - http://www.scottburkett.com/index.php/misc/2006-11-15/wordpress-theme-resetting-problem-solved.html

  7. Joni
    Member
    Posted 7 years ago #

    In all fairness to Alex, it's not a problem with his plugin, but as Scott Burkett himself explains, HE didn't follow Alex's instructions and that's why the problem occurred. :)

    So you see, it does pay to RTFM! :)

  8. Michael Bishop

    Posted 7 years ago #

    And for the third time drawab, as joni stated, it's not a matter of disabling the plugin, it's a matter of reading the directions and installing the mobile theme in your theme directory rather than leaving it in the plugin folder.

  9. drawab
    Member
    Posted 7 years ago #

    I must agree to the mistake, apologies to even hinting of accusing Alex King's plug in. I had no such intentions, its just that there was something wrong in the way I had installed the plug-in that was the root cause of all my problems. will get down to accurately installing it next time

    Thank you yet again.

    I just posted this in for the sake of any FYI for other blogger who might be having similar problems.

  10. C++
    Member
    Posted 7 years ago #

    The same bug with my Kissfendi theme. It keeps reverting to Kubrick Default theme. :(

    Any fix yet?

    Kiss
    Fendi

  11. hiredgoon
    Member
    Posted 7 years ago #

    I have been having this issue for months and months.

    I have deactivated all plugins except for Akismet, Spotmilk and WordPress Backup.
    I have never installed the WP-Mobile plug-in.
    I do not know what a chmod777 is or how to fix it.
    I have three wordpress blogs running off 3 different db's but only one of them has this reset problem.

    If anyone has a simple fix to this issue i'd greatly appreciate it.

  12. mike3
    Member
    Posted 7 years ago #

    I'm not using WP-Mobile but I still have that problem.

    update ... but I am using David Harper's Ultimate Gamer's Pack, which reformats the site for Wii, PSP, and DS-lite. I found that I had it installed incorrectly - it needs to have the plugin folders in the themes folder, not the plugins folder.

  13. solarcrash
    Member
    Posted 7 years ago #

    I'm not using wp-mobile, and I'm having the same issue - randomly occurs every few hours.

    i'm also having issues with not being emailed when someone comments even though I have the 'email me whenever' option selected.

    And these issues were with both v2.1 and the new 2.2 release.

  14. nicobet
    Member
    Posted 7 years ago #

    I've had this problem since I changed themes several months ago. I'm beginning to suspect that it's .php problem. I modified the theme that I wanted to use, and changed some of the php coding -- nothing major, I thought at the time -- but one of them was the functions.php file. Since then I've had the revert-to-default-theme problem on a regular basis, no matter what theme I load.

    I run very few plugins, and certainly none of the ones that have been identified as causing this problem. I think that it's a coding problem, but have no idea how to fix it.

  15. jabecker
    Member
    Posted 7 years ago #

    I wrote my own theme and have used it for a long time. I have no folders chmoded to 777. I have not touched function.php. I do not use WP-Mobile or any other such plugin.

    I started having this problem after upgrading to 2.2.

    Does anybody have any idea what's happening?

  16. justkristin
    Member
    Posted 7 years ago #

    I am also having this problem. After upgrading to 2.2, the theme reverts to default no matter how many times I seemingly successfully change it to my chosen theme. It shows up as that theme for a while, and then, next time I look hours later - it is back to default. Any ideas about this?

  17. tmuka
    Member
    Posted 7 years ago #

    I am having this issue too. I have since disabled the functions.php file in my theme to see if that helps...

  18. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    This has been an issue with many revisions of WordPress, but there's no sign of a fix yet.

    The root cause is that WordPress reverts to default in certain cases where it cannot find the theme. A lot of conditions are known to cause this to happen falsely. For example, if the filesystem is slightly flaky, then there are instances where it may return an error incorrectly, causing WordPress to reset to default. Another case is where somebody accesses the site at the exact moment you're uploading a modified version of the theme.

    In general, on a normal setup, this problem does not occur. If it is occurring without provocation, then it's most likely a symptom of other things going wrong on your server. You may want to examine the server in more detail, or warn your host that there may be a bad disk or something along those lines.

    Currently, there is no fix for this problem from the WordPress side of things, because it's not necessarily an issue with the WordPress code. WordPress is doing what it was designed to do. What's happening is that WordPress is getting false error codes and responding to them in unexpected ways.

  19. justkristin
    Member
    Posted 7 years ago #

    I am not necessarily disagreeing with you, Otto, but it only started happening immediately upon my upgrade. This seems a bit more than coincidence. Can you tell me what I might look for on the server side? None of the other WP installs on my box (all still 2.1x and 2.0x, since I don't want to upgrade while this is a possible issue) are having this problem...

  20. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I can't tell you much about the cause, however I can point you to the known bug ticket about it:

    http://trac.wordpress.org/ticket/3907

    The short of it is that if the file_exists call fails, it reverts. Whatever you can think of that might cause that call to fail temporarily, I'd look at that.

  21. tmuka
    Member
    Posted 7 years ago #

    Just wanted to post back to say that I have found a workaround for this problem. I have renamed my custom theme & folder "default". Now when wordpress reverts, it at least it reverts to my custom theme!

  22. justkristin
    Member
    Posted 7 years ago #

    Tmuka - good idea! I may have to do that, because no matter what I do, server-side or plugin-wise or anything, it hasn't fixed the problem.

    Otto42 - thank you for the input. I haven't the time or resources to completely overhaul my server, however. I have to say that, while I will continue to use WordPress because it is superior to everything else out there, I cannot help but be confused by the assertion that it is not WordPress' problem. If I drove a car which, whenever I was in an accident, forcibly changed the clothes I was wearing, I would find that to be a problem with the car no matter who caused the accident. How can the resetting to default of a theme be a proper reaction to any server error?

    Kristin

  23. justkristin
    Member
    Posted 7 years ago #

    I guess what I am trying to say is, is not the theme you pick in your "Presentation" area your default? Why should it revert to anything but that default? Certainly the server is not telling WP explicitly to change its theme...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags