Werid problem with site?

Status
Not open for further replies.

slayer2746

New Member
Messages
23
Reaction score
0
Points
0
Well so far I have everything fixed except theres something wrong getting my index.php to work. www.eclipse.x10hosting.com check tell me if you guys know anything of what to do. It has something to do with Function include, but i dont get anyone else?
 
Last edited:

Flashgear

New Member
Messages
944
Reaction score
1
Points
0
It may be that the file doesn't exist. Check to see if its there or not, and check the chmod permissions of incs/headers/fireinc.php and public_html/index.php , what are they?

Also try putting a fireinc.php in the public html aswell as in incs/headers
 
Last edited:

slayer2746

New Member
Messages
23
Reaction score
0
Points
0
there defintaley there, but i tryed changing permmisions around nothing but there both set at 644
Edit:
my friend said it could have been written for a diff kind of php?
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Switch it to the absolute path instead of relative.

So in the include use /home/user/public_html/where/fileis/file.php instead of just location/file.php

-Corey
 

slayer2746

New Member
Messages
23
Reaction score
0
Points
0
im confused on where to put this sorry im bad at this.. Wait is that inside editing the file cause inside it says home/user/public_html/
Edit:
any more help?
Edit:
Ya not working any other solutions?
Edit:
yo can anyone help please.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
You have to edit the paths in the file to look for the absolute path like I said above. It is telling you it can't find the file because it is starting out looking in the same folder that the file is in. So you'll have to do what I said in my last post to get it to work.
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
The link works fine. No errors. So you sorted it?
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Use an absolute path
Warning: include(home/slayer45/public_html/incs/headers/fireinc.php) [function.include]: failed to open stream: No such file or directory in /home/slayer45/public_html/index.php on line 67

Warning: include() [function.include]: Failed opening 'home/slayer45/public_html/incs/headers/fireinc.php' for inclusion (include_path='.:/x10hosting/php2/lib/php') in /home/slayer45/public_html/index.php on line 67

You keyed in home when you should have keyed in /home
 

slayer2746

New Member
Messages
23
Reaction score
0
Points
0
nope still is not working.
i changed it back to what it orginally was btw..
i even tryed a new index.php....
Im running out of ideas anyone else got any>? Cause I really need this site up.

...

can i maybe give someone login and maybe fix it?

?:mad:
 
Last edited:

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
94
Points
48
Did you try putting "/home/slayer45/public_html/incs/headers/fireinc.php" in instead of "home/slayer45/public_html/incs/headers/fireinc.php"? Note the initial "/" before "home".
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
Post the code that these lines reffer to and maybe I can help:

PHP:
Warning: include(incs/headers/fire.php) [function.include]: failed to open stream: No such file or directory in /home/slayer45/public_html/index.php on line 67

Warning: include() [function.include]: Failed opening 'incs/headers/fire.php' for inclusion (include_path='.:/x10hosting/php2/lib/php') in /home/slayer45/public_html/index.php on line 67
 

slayer2746

New Member
Messages
23
Reaction score
0
Points
0
Here is the index.php itself

PHP:
include("incs/config.inc.php");

if($db_error == 1) { include("incs/db_problem.inc.php"); exit; }

$q = mysql_query("SELECT info FROM `information` WHERE type = 'layout';");
$r = mysql_fetch_array($q);
$columns = split(":",$r['info']);
$leftColumn = split(",",$columns[0]);
$rightColumn = split(",",$columns[1]);
$leftColumnMods = sizeof($leftColumn);
$rightColumnMods = sizeof($rightColumn);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
    <title><?=$clanname?> - <?=$title?></title>
    <meta http-equiv="Content-Language" content="en-us" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="description" content="<?=$clanname?>'s clan team website." />
    <meta name="author" content="<?=$clanname?>" />
    <link rel="stylesheet" type="text/css" href="css/<?=$theme?>/master.css" />
    <link rel="stylesheet" type="text/css" href="css/<?=$theme?>/other.css" />
<!--[if IE]>
<script type="text/javascript"
  src="js/fix_eolas.js"
  defer="defer"></script>
<![endif]-->
<script language="javascript" type="text/javascript">
<!--
<?$q = mysql_query("SELECT DISTINCT `team` FROM `roster` ORDER BY id DESC");?>
teams = <?=mysql_num_rows($q)?>;
function updateRoster(team,dteam) {
    for(i=0;i<teams;i++) {
        document.getElementById('t'+i.toString()).style.display = "none";
    }
    document.getElementById("currentRoster").innerHTML = dteam;
    document.getElementById(team).style.display = "block";
}

-->
</script>
</head>
<body>

<div id="container">
    <? include("incs/headers/".$theme.".inc.php"); ?>
    <div id="content">
        <?
        if($leftColumn[0] != "") {
        ?>
        <div id="left">
<?

    if($leftColumn[0] != "") {
        if(is_numeric($leftColumn[0])) {
            $mod = $leftColumn[0];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$leftColumn[0].".inc.php");
        }
    }
    /* copyright 2007 proclancms.com */
    if($leftColumn[1] != "") {
        if(is_numeric($leftColumn[1])) {
            $mod = $leftColumn[1];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$leftColumn[1].".inc.php");
        }
    }

    if($leftColumn[2] != "") {
        if(is_numeric($leftColumn[2])) {
            $mod = $leftColumn[2];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$leftColumn[2].".inc.php");
        }
    }

    if($leftColumn[3] != "") {
        if(is_numeric($leftColumn[3])) {
            $mod = $leftColumn[3];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$leftColumn[3].".inc.php");
        }
    }


?>
        </div>
        <? }
if($leftColumn[0] == "" && $rightColumn[0] == "") {
    $mid = "bigmid";
} else if($leftColumn[0] != "" && $rightColumn[0] != "") {
    $mid = "mid";
} else if($leftColumn[0] == "" && $rightColumn[0] != "") {
    $mid = "leftmid";
} else if($leftColumn[0] != "" && $rightColumn[0] == "") {
    $mid = "rightmid";
}
?>
        <div id="<?=$mid?>">
        <?
        if(file_exists("incs/".$_GET['p'].".inc.php")) {
            include("incs/".$_GET['p'].".inc.php");
        } else { 
            
            $_GET['p'] = "news";
            $q = @mysql_query("SELECT info FROM `information` WHERE type = 'hidewelcom';");
            $r = @mysql_fetch_array($q);
            if($r['info'] == 0) {
                include("incs/welcome.inc.php");
            }
            include("incs/".$_GET['p'].".inc.php");
        }
        ?>
        </div>
        <?
        if($rightColumn[0] != "") {
        ?>
        <div id="right">
<?
    if($rightColumn[0] != "") {
        if(is_numeric($rightColumn[0])) {
            $mod = $rightColumn[0];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$rightColumn[0].".inc.php");
        }
    }
    if($rightColumn[1] != "") {
        if(is_numeric($rightColumn[1])) {
            $mod = $rightColumn[1];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$rightColumn[1].".inc.php");
        }
    }

    if($rightColumn[2] != "") {
        if(is_numeric($rightColumn[2])) {
            $mod = $rightColumn[2];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$rightColumn[2].".inc.php");
        }
    }

    if($rightColumn[3] != "") {
        if(is_numeric($rightColumn[3])) {
            $mod = $rightColumn[3];
            require("incs/mods/custom.inc.php");
        } else {
            require("incs/mods/".$rightColumn[3].".inc.php");
        }
    }
/* copyright 2007 proclancms.com */
?>
        </div>
        <? } ?>
    </div>
    <div id="footer"><a href="index.php?p=contact">Contact Us</a> | <a href="index.php?p=admin">Admin</a> | Powered by <a href="http://proclancms.com">Pro Clan CMS</a></div>
</div>

</body>
</html>
LINE 67 i belive
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
Ok from a cut and paste line 67 has no relevance. What catches my eye is the difference between the error and the line that it is giving it.
PHP:
// The error
Warning: include(incs/headers/fire.php) [function.include]: failed to open stream: No such file or directory in /home/slayer45/public_html/index.php on line 67

PHP:
// The line that is causing it
<? include("incs/headers/".$theme.".inc.php"); ?>

Where does the ".inc." come in the error? have you tried changing this on the file name or in the index file?
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Try getting help from whoever created the script, I'm really not sure what the issue is.
 
Status
Not open for further replies.
Top