Reputation: 4340
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.
Upvotes: 0
Views: 12416
Reputation: 4340
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
Upvotes: 0
Reputation: 3866
Try moving your whole GameEngine folder in the install folder.
OR modify your multihunter.php file and add an extra "../" in your include statements.
Upvotes: 1
Reputation: 4160
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
Upvotes: 1