PHP Nuke Help needed

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
I just insatlled phpNuke 7.0, and I'm getting an error when I goto my admin.php.

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/deltafwww/swnuke/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/deltaf/www/swnuke/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/deltaf/www/swnuke/header.php on line 48

If anyone can help me out that woul be great



Back to top Reply with quote
#2   re: PHP Nuke Help needed
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Did you install the databse?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
Yes the database installed just fine



Back to top Reply with quote
#4   re: PHP Nuke Help needed
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
Save the following file as fixtheme.php
Where it says Jagged, change and choose a theme from your theme folder that you know works like the default theme
Upload that to your server where your Nuke config.php resides then point your browser to [ Register or login to view links on this board. ]


<?php

#####################################################
#####################################################

require("config.php");

$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
$def_theme = "Jagged";
mysql_connect($host, $username, $password);
@mysql_select_db($database);

# Change the value of $def_theme to a theme available on your site that works
# Just upload this file to nuke's main dir (where config.php is) and point your browser to
# http://your_nuke_url/fixtheme.php
# [ Register or login to view links on this board. ]
################### BEGIN THE FIX ###################

mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");
echo "Go back to your <a href=\"index.php\">website</a>.";
?>



see if that fixes it


taut


Back to top Reply with quote
#5   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
no Still the samething

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/deltaforcesc/www/swnuke/header.php on line 31

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/deltaforcesc/www/swnuke/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /home/deltaforcesc/www/swnuke/header.php on line 48



Back to top Reply with quote
#6   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
here are the lines from header.php that are getting the error

line 31 = include("themes/$ThemeSel/theme.php");

line 48 = themeheader();

if that helps at all



Back to top Reply with quote
#7   re: PHP Nuke Help needed
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Warning: head(themes//theme.php): failed to open stream: No such file or directory

Means that the theme is not there. Do you have the themes folder present in the main root folder of Nuke?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
Yes the folder is there



Back to top Reply with quote
#9   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
here is what my directory structure looks like




dir_struct.jpg
 Description:
N/A
 Filesize:  18.34 KB
 Viewed:  13292 Time(s)

dir_struct.jpg




Back to top Reply with quote
#10   re: PHP Nuke Help needed
MeSmashU
CZ Newbie
MeSmashU has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 04, 2004
0.00 posts per day
Posts: 9
Points: 384
   
Ok I changed line 31 in header.php

from this include("themes/$ThemeSel/theme.php");
to this include("themes/GreenRock/theme.php");

Now I get this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/deltaforcesc/www/swnuke/includes/sql_layer.php on line 286



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum