Warning: head(themes//theme.php): failed to open stream: No

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Warning: head(themes//theme.php): failed to open stream: No
Triksta
CZ Super Newbie
Triksta has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Oct 26, 2004
0.01 posts per day
Posts: 56
Points: 2,022
AIM Address Yahoo Messenger MSN Messenger 
Go to [ Register or login to view links on this board. ] to see my problem.

Here is my header.php file:

<?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;
    include("includes/ipban.php");
    $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=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
     include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
     include_once("includes/custom_files/custom_header.php");
    }
    themeheader();
}

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

?>


Does anyone have any idea what is causing this?

Thanks,
Tr!k



_________________
Back to top Reply with quote
#2   
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
   
Looks like the settings in your config.php are incorrect. Double check all of those.




_________________
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: Warning: head(themes//theme.php): failed to open stream:
Triksta
CZ Super Newbie
Triksta has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Oct 26, 2004
0.01 posts per day
Posts: 56
Points: 2,022
AIM Address Yahoo Messenger MSN Messenger 
Ok, besides the user and pass which i know are correct, here is my config.php:

<?php

######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
# http://phpnuke.org
#
# This module is to configure the main options for your site
#
# 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.
######################################################################

######################################################################
# Database & System Config
#
# dbhost:       SQL Database Hostname
# dbuname:      SQL Username
# dbpass:       SQL Password
# dbname:       SQL Database Name
# $prefix:      Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype:      Your Database Server type. Supported servers are:
#               MySQL, mysql4, postgres, mssql, oracle, msaccess,
#               db2 and mssql-odbc
#               Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey:   Security Key. CHANGE it to whatever you want, as long
#               as you want. Just don't use quotes.
# $gfx_chk:   Set the graphic security code on every login screen,
#      You need to have GD extension installed:
#      0: No check
#      1: Administrators login only
#      2: Users login only
#      3: New users registration only
#      4: Both, users login and new users registration only
#      5: Administrators and users login only
#      6: Administrators and new users registration only
#      7: Everywhere on all login options (Admins and Users)
#      NOTE: If you aren't sure set this value to 0
# $subscription_url: If you manage subscriptions on your site, you
#                    must write here the url of the subscription
#                    information/renewal page. This will send by
#                    email if set.
# $admin_file: Administration panel filename. "admin" by default for
#         "admin.php". To improve security please rename the file
#              "admin.php" and change the $admin_file value to the
#              new filename (without the extension .php)
######################################################################

$dbhost = "localhost";
$dbuname = "*******";
$dbpass = "******";
$dbname = "dieteam";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w66.3a2fDS+e9";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin.php";

/*********************************************************************/
/* You finished to configure the Database. Now you can change all    */
/* you want in the Administration Section.   To enter just launch    */
/* you web browser pointing to http://yourdomain.com/admin.php       */
/*                                                                   */
/* Remeber to go to Settings section where you can configure your    */
/* new site. In that menu you can change all you need to change.     */
/*                                                                   */
/* Congratulations! now you have an automated news portal!           */
/* Thanks for choose PHP-Nuke: The Future of the Web                 */
/*********************************************************************/

// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

$reasons = array("As Is",
          "Offtopic",
          "Flamebait",
          "Troll",
          "Redundant",
          "Insighful",
          "Interesting",
          "Informative",
          "Funny",
          "Overrated",
          "Underrated");
$badreasons = 4;
$AllowableHTML = array("b"=>1,
          "i"=>1,
          "a"=>2,
          "em"=>1,
          "br"=>1,
          "strong"=>1,
          "blockquote"=>1,
                    "tt"=>1,
                    "li"=>1,
                    "ol"=>1,
                    "ul"=>1);
$CensorList = array("kiss",
          "heather",
          "caroler",
          "very nice",
          "pussy",
          "huh",
          "c0ck",
          "cum",
          "twat",
          "clit",
          "nice lady",
          "fuk",
          "fuking",
          "motherfucker");
$tipath = "images/topics/";
if (eregi("config.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

?>




_________________
Back to top Reply with quote
#4   re: Warning: head(themes//theme.php): failed to open stream:
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Triksta, I would of jumped in here but your config file looks fine. Also I saw a similar post over at nuke fixes I believe from you posted in 2004. It looks like to me there isn't even a database setup, all I can suggest is back tracing and make sure step by step everything is in order...What version of Nuke is this? Patched? Is this an older Nuke install with a lot of modifcations by chance? What was the last thing you installed or altered? Have you tried re-uploading the entire site again?



Back to top Reply with quote
#5   re: Warning: head(themes//theme.php): failed to open stream:
Triksta
CZ Super Newbie
Triksta has been a member for over 20 year's 20 Year Member
usa.gif indiana.gif
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Oct 26, 2004
0.01 posts per day
Posts: 56
Points: 2,022
AIM Address Yahoo Messenger MSN Messenger 
Ok this is gonna take a while and hopefully all of my research and investigation will lead me to the answer.

Nuke Version: 7.6 (Not Sure Patched Or Not)

It was a fresh nuke install.

I ran the nuke.sql through the web browser. [ Register or login to view links on this board. ]

I made a database through Plesk, named it, created a user, and pass. Then entered that info in the config.php.

But now I have come across this:

If you go to [ Register or login to view links on this board. ] you will see this error:


Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/httpd/vhosts/momurdaclan.com/httpdocs/header.php on line 31



Now, I looked in the header.php file on Line 31 and came across this:


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


It seems that the $ThemeSel command isnt picking up in the file resulting in the (themes//theme.php) error.

Would anyone else think the same way or have any idea of why the $ThemeSel part of this line disappears when you go to the site?




_________________
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