GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WP help... (https://gfy.com/showthread.php?t=1015158)

Deej 03-21-2011 12:20 PM

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...

fris 03-21-2011 01:11 PM

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.

baddog 03-21-2011 01:22 PM

Apparently, you are not alone. http://www.google.com/search?sourcei...+the+de fault

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

fris 03-21-2011 01:23 PM

what version you running? seems to be an issue with old vers

Agent 488 03-21-2011 01:27 PM

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

harvey 03-21-2011 03:57 PM

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

HomerSimpson 03-21-2011 04:12 PM

delete default theme folder :)

xec 03-21-2011 04:15 PM

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

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

Deej 03-21-2011 04:18 PM

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 :thumbsup

Deej 03-21-2011 04:20 PM

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.


All times are GMT -7. The time now is 12:05 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123