Php – failed to open stream, include(), what is causing this

includePHP

I was installing a script and got the following errors

Warning: include() [function.include]: Unable to access
../GameEngine/config.php in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 20

Warning: include(../GameEngine/config.php) [function.include]: failed
to open stream: No such file or directory in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 20

Warning: include() [function.include]: Unable to access
../GameEngine/config.php in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 20

Warning: include(../GameEngine/config.php) [function.include]: failed
to open stream: No such file or directory in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 20

Warning: include() [function.include]: Failed opening
'../GameEngine/config.php' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 20

Warning: include() [function.include]: Unable to access
../GameEngine/Data/buidata.php in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 21

Warning: include(../GameEngine/Data/buidata.php) [function.include]:
failed to open stream: No such file or directory in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 21

Warning: include() [function.include]: Unable to access
../GameEngine/Data/buidata.php in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 21

Warning: include(../GameEngine/Data/buidata.php) [function.include]:
failed to open stream: No such file or directory in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 21

Warning: include() [function.include]: Failed opening
'../GameEngine/Data/buidata.php' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/freetrav/public_html/travian/GameEngine/Admin/database.php on
line 21

Warning: Cannot modify header information – headers already sent by
(output started at
/home/freetrav/public_html/travian/GameEngine/Admin/database.php:20)
in /home/freetrav/public_html/travian/install/include/multihunter.php
on line 29

this file is located in http://www.freetravian.com/travian/install/include/multihunter.php

what is causing these errors? could it be because I haven't set some folder permissions? the file config.php does infact exist.

Best Answer

The files doesn't exist on the given phat.

Here is what the error shows (check the double dots):

Warning: include() [function.include]: Unable to access ../GameEngine/config.php in /home/freetrav/public_html/travian/GameEngine/Admin/database.php on line 20

Warning: include(../GameEngine/config.php) [function.include]: failed to open stream: No such file or directory in /home/freetrav/public_html/travian/GameEngine/Admin/database.php on line 20

/home/freetrav/public_html/travian/GameEngine/Admin/database.php <- This is the file doing the include
/home/freetrav/public_html/travian/GameEngine/GameEngine/config.php <- This file doesn't exist
Related Topic