Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-21-2011, 12:20 PM   #1
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
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
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 01:11 PM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 01:22 PM   #3
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
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.
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 01:23 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 01:27 PM   #5
Agent 488
Registered User
 
Industry Role:
Join Date: Feb 2006
Posts: 22,511
happened to me before. can't remember what i did to fix it. maybe new install/template.
Agent 488 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 03:57 PM   #6
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
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
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 04:12 PM   #7
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 04:15 PM   #8
xec
Registered User
 
Join Date: Dec 2005
Posts: 37
or define your template and css in wp-config.php

define('TEMPLATEPATH', '/path/to/theme/directory');
define('STYLESHEETPATH', '/path/to/directory/containing/stylesheet');
xec is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 04:18 PM   #9
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
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
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2011, 04:20 PM   #10
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
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
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.