WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme disappeared - no longer appears under Appearance tab (13 posts)

  1. TrishaM
    Member
    Posted 3 years ago #

    I know there have been numerous old posts with a similar problem, but none were exactly what I'm experiencing, and no solutions have helped.

    I created a custom theme (called MyTheme) which has been working fine. Today for no reason the site had reverted to the TwentyTen theme, and when I went to Appearance to put it back to my custom theme, my Theme was not showing up. I checked via FTP and it's still there in the /themes folder, and the stylesheet is fine - no corruption, but to be safe I re-uploaded all the themes's files. This made no difference.

    So I created a new folder called /default and uploaded all of my custom theme's files to that one, went to Appearance, and chose it.

    This worked and now my site is back looking correct again, but I'm concerned about the original custom theme, still located in the themes folder, that isn't showing up, and concerned that this might happen again.

    Does anyone know how this might have happened, how to fix it, and/or how to prevent it happening again?

  2. TrishaM
    Member
    Posted 3 years ago #

    Bump.....Still hoping someone can help with this please.....

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    The style.css file in the custom theme - especially the comment block at the top of the file - may have become corrupted in the original version. I've known this cause a theme to "fail" before now.

  4. TrishaM
    Member
    Posted 3 years ago #

    Thanks esmi - I checked that, but I'm actually using the very same CSS stylesheet (styles.css) - I'm just uploading it to both the /default folder (currently in use as the chosen theme) and also to the custom folder to keep that folder current with the hopes that this problem can get fixed and I can go back to using it.....

    So since it (and all the other theme files) works in one folder I have eliminated any file corruption as a possible source of the problem...

    My best guess is something else in the WP core files may have gotten corrupted? But I am not sure what admin file controls the appearance of available Themes under the Appearance preference pane....

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    There's a mixture of file & functions involved. The easiest option would be to re-upload a fresh copy of the complete wp-includes and wp-admin folders.

  6. TrishaM
    Member
    Posted 3 years ago #

    Well, now I'm worse off - I re-uploaded a fresh copy of both the wp-admin and wp-includes folders, and now I'm getting two fatal errors from wp-includes/load.php on line 337 - have searched for a fix for that but none of the offered solutions are working....

    So now the site is not coming up at all, just the error, and I can't get into the backend admin......aaarrrrgh....

  7. TrishaM
    Member
    Posted 3 years ago #

    I just tried a complete, fresh reinstall of WP (was at 3.0.1 before, now at 3/0/4).....

    The error message is gone, but I get a completely blank page for both front end (site) and backend (admin)......

    Does anyone have any suggestions, please?

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    Did you run the upgrade?

  9. TrishaM
    Member
    Posted 3 years ago #

    Hi Esmi

    Yes - I did a manual upgrade - but I was still getting a fatal error:
    Call to undefined function: wp_embed_register_handler() in .../wp-includes/default-embeds.php on line 33

    I have it back working (just now) but it was a real struggle - here's what I wound up having to do - which meant modifying a couple of core files and the functions.php in the WP default Theme, TwentyTen (which for the record I hate)....

    I had to comment out the lines in both /wp-includes/default-embeds.php (line 33) and /wp-includes/load.php (line 337) - that got rid of the fatal errors but still left me with a blank white screen - so I went into my phpMyAdmin and deactivated all the active plugins per instructions I found in the Codex....

    Then I got a fatal error in the functions.php file of the /themes/twentyten theme so I commented out the offending line there (line 16 - had to do with set_post_thumbnail).

    THEN I was able to login and go to Appearance to activate a different theme (my own) and VOILA my original custom theme showed up and let me activate it.....to be on the safe side, I am also keeping a duplicate set of all current theme files in a folder called /themes/default, and I modified the /wp-includes/default-constants.php file to specify "default" as the default theme, not twentyten.....

    TOTAL PITA but now it's back working, at least for now - the changes I had to make to some core files worries me.....and it also greatly bothers me that WP only comes with that hideous TwentyTen theme which apparently has a flaw in the functions.php.....

    I don't think I'll upgrade for a while...

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    which apparently has a flaw in the functions.php

    What flaw?

  11. TrishaM
    Member
    Posted 3 years ago #

    Once I was able to deactivate all the plugins via phpMyAdmin, then I believe WP was trying to load normally, but since (at that point) it was set to use TwentyTen as the default theme (since I did a fresh install and twentyten is specified as the default them in the default-constants.php file) it wouldn't load because it was getting a fatal error in the /twentyten/functions.php file

    The error was something about a call to an undefined function on line 16, the one dealing with show_post_thumbnail (sorry I can be more clear, I didn't copy that one to save)......but since I don't use WP's thumbnail function, I just commented out that line.

    Once I commented out that line WP loaded normally (although it wasn't using my theme) but I was able to see the site and get logged in, at which point I went to Appearance and chose the correct theme.

    So it seems to me that if a fresh install of WP 3.0.4 can't load TwentyTen without a fatal error, it stands to reason that there is still a conflict somewhere.

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    There are no errors in Twenty Ten. I can only guess that your copy was corrupted or customised.

  13. TrishaM
    Member
    Posted 3 years ago #

    It was from a fresh download and install......and I did not customize it, but it's possible it was corrupted.....although I don't know how.....

    In any case I'm grateful for your help as always......

Topic Closed

This topic has been closed to new replies.

About this Topic