A ton of php errors.

Wizet

New Member
Messages
644
Reaction score
0
Points
0
PHP:
Warning: include(ecko) [function.include]: failed to open stream: No such file or directory in /home/flownyx/public_html/lacydic/index.php on line 14

Warning: include(ecko) [function.include]: failed to open stream: No such file or directory in /home/flownyx/public_html/lacydic/index.php on line 14

Warning: include() [function.include]: Failed opening 'ecko' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flownyx/public_html/lacydic/index.php on line 14
ecko
Warning: include(ecko) [function.include]: failed to open stream: No such file or directory in /home/flownyx/public_html/lacydic/index.php on line 16

Warning: include(ecko) [function.include]: failed to open stream: No such file or directory in /home/flownyx/public_html/lacydic/index.php on line 16

Warning: include() [function.include]: Failed opening 'ecko' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flownyx/public_html/lacydic/index.php on line 16

Warning: include() [function.include]: Filename cannot be empty in /home/flownyx/public_html/lacydic/index.php on line 17

Warning: include() [function.include]: Filename cannot be empty in /home/flownyx/public_html/lacydic/index.php on line 17

Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flownyx/public_html/lacydic/index.php on line 17

Warning: include() [function.include]: Filename cannot be empty in /home/flownyx/public_html/lacydic/index.php on line 18

Warning: include() [function.include]: Filename cannot be empty in /home/flownyx/public_html/lacydic/index.php on line 18

Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/flownyx/public_html/lacydic/index.php on line 18

Fatal error: Cannot redeclare sha512() (previously declared in /home/flownyx/public_html/lacydic/config.php:8) in /home/flownyx/public_html/lacydic/config.php on line 11

Index.php:
PHP:
<?php
//////////////////////////////////////////////////
//         FlowUI CMS  Developer Edition        //        
//         Version 1.0 Alpha                    //
//////////////////////////////////////////////////

ob_start();

header('Content-Type: text/html; charset=utf-8');

include "config.php";
include "funct.php";

include $ecko; 
echo "ecko"; 
include $ecko; 
include $username;
include $password;

if(isset($_GET['action']) && !empty($_GET['action'])) {
        if($_GET['action'] == 'support') {
                include 'support.php';
        }
        elseif($_GET['action'] == 'contact') {
                include 'contact.php';
        }
        else {
                include '404.php';
        }
}
else {
        include 'index.php';
}
echo "<link href='./css.css' rel='stylesheet' type='text/css' />";
echo "<title>FlowUI Preview v<?=$ver?></title>";
echo "</head>";
echo "<body>";
echo "<br />";
echo "<div class='head'>";
echo "FlowUI v<?=$ver?>";
echo "<span id='headlinks'>";
echo "<a href='./'>Home</a> | <a href='#'>Forums</a>";
echo "</span>";
echo "<br />";
echo "<span id='sub'>Slogan goes here.</span>";
echo "</div>";
echo "<br />";
echo "<div class='announce'>";
echo "<div class='topmsgs'><img src='/img/05077000.png' alt='Megaphone' /></div>";
echo "<br />";
echo "<div id='message'>&nbsp;</div>";
echo "<script type='text/javascript'>";
echo "var messages = new Array('Ecko >> Welcome to FlowUI Developer Preview <?=$ver?> Updated as of <?=$update?>. If you are not a partner or part of staff please do leave this page immediately. ', 'Ecko >> Powered by Flownyx.NET', 'Ecko >> Testing new read from mechanism. <?=$ecko?>');";
echo "var interval = 3000;";
echo "";
echo "var index = 0;";
echo "document.getElementById('message').innerHTML = messages[index];";
echo "setTimeout('changeMessage()', interval);";
echo "";
echo "function changeMessage() {";
echo "if (index > messages.length - 2)";
echo "index = 0;";
echo "else";
echo "index++;";
echo "";
echo "document.getElementById('message').innerHTML = messages[index];";
echo "setTimeout('changeMessage()', interval);";
echo "}";
echo "</script>";
echo "</div>";
echo "<br />";
echo "<div class='mainui'>";
echo "<table class='maintiles'>";
echo "<tr class='r1'>";
echo "<td><a href='/passport.php'><img src='img/passport.png' width='173' height='173' hspace='26' border='0' /></a></td>";
echo "<td><a href='javascript: alert('Images gallery is under maintenance');'><img src='img/images.png' width='173' height='173' hspace='26' /></a></td>";
echo "<td><a href='javascript: alert('Videos gallery is under maintenance');'><img src='img/videos.png' width='173' height='173' hspace='26' /></a></td>";
echo "<td><a href='/?action=support'><img src='/img/support.png' width='173' height='173' hspace='26' /></a></td>";
echo "</tr>";
echo "<!--";
echo "<tr class='r2'>";
echo "<td><a href='javascript: alert('Passport is under maintenance. You can check the passport page so far in passport.php');'><img src='img/passport.png' width='173' height='173' hspace='26' border='0' /></a></td>";
echo "<td><a href='javascript: alert('Images gallery is under maintenance');'><img src='img/images.png' width='173' height='173' hspace='26' /></a></td>";
echo "<td><a href='javascript: alert('Videos gallery is under maintenance');'><img src='img/videos.png' width='173' height='173' hspace='26' /></a></td>";
echo "<td><a href='javascript: alert('The support center and forum will be online somewhere between version 1.1.5.0 or 1.2.0.0');'><img src='/img/support.png' width='173' height='173' hspace='26' /></a></td>";
echo "</tr>";
echo "-->";
echo "</table>";
echo "</div>";
echo "<p>&nbsp;</p>";
echo "<p>&nbsp;</p>";
echo "<p>&nbsp;</p>";
echo "<div class='footer'>";
echo "Copyright &copy; <?=date('Y')?> Flownyx.net";
echo "</div>";
echo "</body>";
echo "</html>";
echo "";
?>

Thank you in advance if you help me solve this problem.

Note: After finding out what was wrong...We are back to square one...
Fatal error: Cannot redeclare sha512() (previously declared in /home/flownyx/public_html/lacydic/config.php:8) in /home/flownyx/public_html/lacydic/config.php on line 11
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Note: After finding out what was wrong...We are back to square one...

Which means what? All the other error messages gone except the re-declaration one?

As to that, look at the files you are including:

inclue "funct.php"
include $ecko;
include $ecko;
include $username;
include $password;
include 'support.php';
include 'contact.php';
include '404.php';
include 'index.php';

My guess is that one of them includes config.php.
Suggestion: do not use include. use include_once or require_once.
 
Last edited:

Wizet

New Member
Messages
644
Reaction score
0
Points
0
Okay I'l see what your advice brings up. And yes all the other errors are gone except for the redeclaration one.
 

batman1

New Member
Messages
92
Reaction score
0
Points
0
It has something to do with the include or include_once path. The path seems to be wrong.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
It has something to do with the include or include_once path. The path seems to be wrong.

From the end of the OP's post:
Note: After finding out what was wrong...We are back to square one...
He was able to resolve the problem with variables not holding script names on his own.
 
Top