0

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.

nickb
  • 59,313
  • 13
  • 108
  • 143
Web Master
  • 4,240
  • 6
  • 20
  • 28

3 Answers3

1

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
Lakatos Gyula
  • 3,949
  • 7
  • 35
  • 56
  • okay so.. the double dots are directory up.. so remove double dots? wait no, the double dots take it out of the admin folder and point towards config folder – Web Master Jun 19 '12 at 19:59
1

Try moving your whole GameEngine folder in the install folder.

OR modify your multihunter.php file and add an extra "../" in your include statements.

NaturalBornCamper
  • 3,675
  • 5
  • 39
  • 58
0

thanks guys, fixed it. the problem was that the file calling all other files, was inside two folders and not one, so you would have to call up-directory(..) twice. so i added another set of dots with a slash and it worked.

include("../../GameEngine/config.php");
include("../../GameEngine/Data/buidata.php");

ty +1 for everyone

Web Master
  • 4,240
  • 6
  • 20
  • 28