Stream Error with blackened theme on 7.0 nuke

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Stream Error with blackened theme on 7.0 nuke
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Site: [url] [ Register or login to view links on this board. ]

I installed the blackened theme on my site (phpnuke 7.0) , and set my preferences to use it as the theme. Here is a copy of the error I received:

Warning: head(themes/Blackened-Pack/theme.php): failed to open stream: No such file or directory in /home/virtual/site64/fst/var/www/html/header.php on line 31

Warning: head(): Failed opening 'themes/Blackened-Pack/theme.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site64/fst/var/www/html/header.php on line 31

Fatal error: Unknown function: themeheader() in /home/virtual/site64/fst/var/www/html/header.php on line 47

Here is a copy of the header.php:


<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
   echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }

    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    include("includes/my_header.php");
    echo "\n\n\n</head>\n\n";
    themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}

?>


I would like to know what is causing this error as well as how to fix it if anyone can help. Appreciate any help anyone can offer!

sabastina


Back to top Reply with quote
#2   re: Stream Error with blackened theme on 7.0 nuke
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,440
   
You dont upload the Blackened-Pack you just upload the theme folder.

Use this to fix it:
[ Register or login to view links on this board. ]




_________________
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   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Thanks Telli.

I had originally installed the entire folder by accident. I then deleted it entirely and replaced it with the correct file. It still showed the same error.

I have run the themefix.php and it told me this:

Thanks for using this fix! Your theme has been reset to 3D-Fantasy

however, when I went back to my main page I received the following:

Warning: head(themes/3D-Fantasy/theme.php): failed to open stream: Permission denied in /home/virtual/site64/fst/var/www/html/header.php on line 31

Warning: head(): Failed opening 'themes/3D-Fantasy/theme.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site64/fst/var/www/html/header.php on line 31

Fatal error: Unknown function: themeheader() in /home/virtual/site64/fst/var/www/html/header.php on line 47

I'm not sure what is going on.

Sabastina



Back to top Reply with quote
#4   
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,440
   
Do you have that theme? Try running the fixtheme after you reupload just the Blackened theme folder. Change the default theme to Blackened.




_________________
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
#5   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Ok, I managed to get the theme to work, but I can't get any access to the other theme to delete it! But, my theme works! thanks telli!

Sabastina



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