| Author |
Message |
mrrush101 New Member


Joined: Apr 21, 2009 Posts: 2
|
Posted:
Tue Apr 21, 2009 9:59 am |
|
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?
 |
Last edited by mrrush101 on Tue Apr 21, 2009 4:00 pm; edited 1 time in total |
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Tue Apr 21, 2009 10:16 am |
|
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. |
|
|
|
 |
mrrush101 New Member


Joined: Apr 21, 2009 Posts: 2
|
Posted:
Tue Apr 21, 2009 10:32 am |
|
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 |
|
|
|
 |
bluerace Regular


Joined: Apr 04, 2009 Posts: 85 Location: Behind you
|
Posted:
Tue Apr 21, 2009 10:55 am |
|
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. |
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Tue Apr 21, 2009 11:37 am |
|
@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! |
|
|
|
 |
fkelly Moderator

Joined: Aug 30, 2005 Posts: 3137 Location: near Albany NY
|
Posted:
Tue Apr 21, 2009 11:41 am |
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Tue Apr 21, 2009 3:15 pm |
|
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. |
|
|
|
 |
grmm New Member


Joined: Nov 15, 2008 Posts: 16 Location: Idaho, USA
|
Posted:
Sat Jun 06, 2009 7:21 pm |
|
| 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 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
THANK YOU  |
|
|
|
 |
horrorcode Involved


Joined: Jan 17, 2009 Posts: 268 Location: Missouri
|
Posted:
Sat Jun 06, 2009 9:52 pm |
|
There is also a script our there that you can use, if anyone has a link to it? |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2404 Location: Pennsylvania
|
Posted:
Sun Jun 07, 2009 9:00 am |
|
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
DELETE WHEN FINISHED |
|
|
|
 |
grmm New Member


Joined: Nov 15, 2008 Posts: 16 Location: Idaho, USA
|
Posted:
Sun Jun 07, 2009 10:07 am |
|
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.  |
|
|
|
 |
sexycoder Spammer and overall low life

Joined: Feb 02, 2009 Posts: 82
|
Posted:
Sun Jun 07, 2009 7:12 pm |
|
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."";
?> |
|
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2404 Location: Pennsylvania
|
Posted:
Sun Jun 07, 2009 7:34 pm |
|
|
|
 |
|
|
|
|