PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
mrrush101
New Member
New Member


Joined: Apr 21, 2009
Posts: 2

PostPosted: Tue Apr 21, 2009 9:59 am Reply with quote Back to top

I went to change the theme and I ended up with a blank page and now my Preference page in the Admin section is blank. I cant change to a different theme. Any ideas how to correct this issue?

Evil or Very Mad


Last edited by mrrush101 on Tue Apr 21, 2009 4:00 pm; edited 1 time in total
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Tue Apr 21, 2009 10:16 am Reply with quote Back to top

When that happens to me, I just upload a default theme that I rename as the theme that caused the issue and then you should be able to get into admin.
View user's profile Send private message Send e-mail Visit poster's website
mrrush101
New Member
New Member


Joined: Apr 21, 2009
Posts: 2

PostPosted: Tue Apr 21, 2009 10:32 am Reply with quote Back to top

Thanks it worked. You saved me a lot of time and a big headache. I then switched to another theme and renamed the them I changed, back to the original theme name
View user's profile Send private message
bluerace
Regular
Regular


Joined: Apr 04, 2009
Posts: 85
Location: Behind you

PostPosted: Tue Apr 21, 2009 10:55 am Reply with quote Back to top

Primarily, as an admin, go to your phpmysqladmin.
Open your DB first and find nuke_config.

Then, clik on sql and browse your nuke_config.
In there you will find default theme.
Type in the theme name (this theme name should be equal to your <nuke-root>/theme/YOUR-NEW THEME or old theme).

That's all.
Uploading default takes time and space.
When you got such trouble that previous themes are gone off, simple type in your theme name in your nuke_config --> theme field.
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Apr 21, 2009 11:37 am Reply with quote Back to top

@mrrush101 please change your title to a better description. "Help" is a great song but such a title doesn´t help peoples if they search for a solution.
Thanks!
View user's profile Send private message Visit poster's website
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Tue Apr 21, 2009 11:41 am Reply with quote Back to top

To avoid this problem in the first place: 1. Create a test user or use a spare username. Go into YA and change their theme to the one you are testing (which is NOT the default theme for the whole site). Test it thoroughly. If the theme fails it will only affect that test user id and you can phpmyadmin change it in the users table or just trash the userid.

2. I dunno ... if there is a one there should be a 2 I suppose but I can't think of anything else.
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Tue Apr 21, 2009 3:15 pm Reply with quote Back to top

The only reason I say replace the theme is a fair amount of users are not familiar with editing mysql database and can cause a lot more damage to their site than just a bad theme.
View user's profile Send private message Send e-mail Visit poster's website
grmm
New Member
New Member


Joined: Nov 15, 2008
Posts: 16
Location: Idaho, USA

PostPosted: Sat Jun 06, 2009 7:21 pm Reply with quote Back to top

nuken wrote:
When that happens to me, I just upload a default theme that I rename as the theme that caused the issue and then you should be able to get into admin.


I did exactly the same thing, I knew I should do that, but I did it anyway Embarassed I've been messing around all afternoon trying to get it back when I came across your post and had it fixed in about 5 minutes. So simple Wink

THANK YOU Exclamation
View user's profile Send private message Visit poster's website
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Sat Jun 06, 2009 9:52 pm Reply with quote Back to top

There is also a script our there that you can use, if anyone has a link to it?
View user's profile Send private message Visit poster's website MSN Messenger
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Jun 07, 2009 9:00 am Reply with quote Back to top

Copy the following code into a file and save it as fixtheme.php

Quote:

<?php
require("config.php");
$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;

$def_theme = "RavenIce";

mysql_connect($host, $username, $password);
mysql_select_db($database);
mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");
?>


If you don't have the RavenIce theme uploaded to your site then change the value for $def_theme in the code above so that it reflects one of your working themes, save it, upload it to where the config.php file is, then point your browser to
Only registered users can see links on this board!
Get registered or login to the forums!


DELETE WHEN FINISHED
View user's profile Send private message
grmm
New Member
New Member


Joined: Nov 15, 2008
Posts: 16
Location: Idaho, USA

PostPosted: Sun Jun 07, 2009 10:07 am Reply with quote Back to top

Great! Thanks Palbin. I've got it all uploaded and ready to try for the next time and there will be a next time know me. Wink
View user's profile Send private message Visit poster's website
sexycoder
Spammer and overall low life


Joined: Feb 02, 2009
Posts: 82

PostPosted: Sun Jun 07, 2009 7:12 pm Reply with quote Back to top

What about this fix?

Isnt this the same?

Code:
<?php
require_once("mainfile.php");
$theme= "DeepBlue";
$sql = "UPDATE ".$prefix."_config SET Default_Theme = '".$theme."'";
$result = $db->sql_query($sql);
echo "Thanks for using this fix! Your theme has been reset to ".$theme."";
?>
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Jun 07, 2009 7:34 pm Reply with quote Back to top

yes
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum