WP help...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deej
    I make pixels work
    • Jun 2005
    • 24386

    #1

    WP help...

    So I have numerous blogs. None have done this before but this one.

    It used to be every half month... randomly... My blog would theme itself back to the default theme.

    Since it wasnt doing it very often I would just revert it to the theme I had chosen.

    It has kept doing this for a good half year or more. Now its doing it more often. This morning I found it in default theme. So i switched it back to my custom theme and looked at some code. Within an hour or two it was gone back to default.


    What can be doing this.. its boggling the shit out of me and no other blog of mine does this.

    Is it a code issue? A security issue?

    Also... I have tried multiple custom themes to see if it was the theme itself and no luck there. Just keeps doing it.

    Any help appreciated...

    Deej's Designs n' What Not
    Hit me up for Design, CSS & Photo Retouching


    Icq#30096880
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    what plugins do you have installed? also you using any mobile theme switcher? might be causing this.

    also check your functions.php file, see if its doing anything weird.

    would need more info to debug this situation.

    never ran into this myself.
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • baddog
      So Fucking Banned
      • Apr 2001
      • 107089

      #3
      Apparently, you are not alone. http://www.google.com/search?sourcei...to+the+default

      This seems to be a good solution though: Make your custom theme folder the default.

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        what version you running? seems to be an issue with old vers
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Agent 488
          Registered User
          • Feb 2006
          • 22511

          #5
          happened to me before. can't remember what i did to fix it. maybe new install/template.

          Comment

          • harvey
            Confirmed User
            • Jul 2001
            • 9266

            #6
            most usually it's the theme is lacking a style.css file (or is corrupted or it doesn't have the right permissions). Check that out to make sure that is not the case. Mobile plugins could be causing this as well, like Fris said.

            Anyway, the simple, easy solution is what baddog said: name your theme as default. Problem with this is every single time you upgrade WP, you'll replace that default theme, so you better have a backup copy for the theme

            So this is what I would do: open your wp-includes/theme.php file. Look for this:

            Code:
            function validate_current_theme() {
            	// Don't validate during an install/upgrade.
            	if ( defined('WP_INSTALLING') || !apply_filters( 'validate_current_theme', true ) )
            		return true;
            
            	if ( get_template() != WP_DEFAULT_THEME && !file_exists(get_template_directory() . '/index.php') ) {
            		switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
            		return false;
            	}
            
            	if ( get_stylesheet() != WP_DEFAULT_THEME && !file_exists(get_template_directory() . '/style.css') ) {
            		switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
            		return false;
            	}
            
            	return true;
            }
            and get rid of it.


            Now a warning: there's a reason why that function is there. Use this workaround only if you can't figure what's going on with your theme. And again, every time you upgrade this file will be replaced, so keep a copy or edit the new upgraded theme.php file
            This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

            Comment

            • HomerSimpson
              Too lazy to set a custom title
              • Sep 2005
              • 13826

              #7
              delete default theme folder
              Make a bank with Chaturbate - the best selling webcam program
              Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

              PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

              Comment

              • xec
                Registered User
                • Dec 2005
                • 37

                #8
                or define your template and css in wp-config.php

                define('TEMPLATEPATH', '/path/to/theme/directory');
                define('STYLESHEETPATH', '/path/to/directory/containing/stylesheet');

                Comment

                • Deej
                  I make pixels work
                  • Jun 2005
                  • 24386

                  #9
                  I have updated it numerous times. normally whenever I see the notification when I log in. I do need to updated this but its from the last update. Ill see if this new update fixes it but I dont have high hopes with that.

                  I have tried deleting all the other themes and then it just makes the page come up blank white.

                  Ill try the renaming of theme folders.

                  If none of that works Ill try the mor ein depth stuff you guys are posting.

                  Thank you for the time and ideas

                  Deej's Designs n' What Not
                  Hit me up for Design, CSS & Photo Retouching


                  Icq#30096880

                  Comment

                  • Deej
                    I make pixels work
                    • Jun 2005
                    • 24386

                    #10
                    also, no im not using any theme modifying plugins or anything really that fancy. A couple widgets but I do believe it was having this issue before implemented those in back a couple months ago.

                    Ill trouble shoot these things.

                    Deej's Designs n' What Not
                    Hit me up for Design, CSS & Photo Retouching


                    Icq#30096880

                    Comment

                    Working...