iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 94 forks source link

Error in Install #557

Closed aez2022 closed 5 years ago

aez2022 commented 5 years ago

Hi, I can not install this script Because it shows me this error Please Help me

Parse error: syntax error, unexpected '(' in C:\AppServ\www\travian\GameEngine\Artifacts.php on line 286

iopietro commented 5 years ago

Hello, what version of PHP are you using?

aez2022 commented 5 years ago

Look at this picture

http://prntscr.com/kioh59

iopietro commented 5 years ago

In which page the error is showed?

aez2022 commented 5 years ago

After this page

http://prntscr.com/kitr4d

aez2022 commented 5 years ago

??

Shadowss commented 5 years ago

Will be fixed after refactoring. Its a long process

aez2022 commented 5 years ago

http://travian.shadowss.ro/login.php

How does this site work?

iopietro commented 5 years ago

Right now I cannot physically reproduce the error and I wouldn't know how to reproduce it.

velhbxtyrj commented 5 years ago

@iopietro @Shadowss This error is due to the fact that the version of PHP 5.6 is being used.

default

Installing from version of PHP 7.0 all is OK.

1

Using version of PHP 7.0 gave me an error at the end of the installation (after the account creation page, multihunter, support and admin)

2

Warning: include_once(../GameEngine/Artifacts.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 20

Warning: include_once(): Failed opening '../GameEngine/Artifacts.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 20

Warning: include_once(../GameEngine/Units.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 21

Warning: include_once(): Failed opening '../GameEngine/Units.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 21

Warning: include_once(../GameEngine/Generator.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 22

Warning: include_once(): Failed opening '../GameEngine/Generator.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php:20) in C:\OSPanel\domains\TravianZ-master\install\include\accounts.php on line 99
andrenunesjob commented 5 years ago

@velhbxtyrj I have the exact same errors with php7.0, is there any suggestion to solve this problem?

velhbxtyrj commented 5 years ago

@andrenunesjob Errors that the author of this issue indicated or those errors I indicated?

andrenunesjob commented 5 years ago

velhbxtyrj the errors that you indicated regarding the PHP 7.0

Warning: include_once(../GameEngine/Artifacts.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 20

Warning: include_once(): Failed opening '../GameEngine/Artifacts.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 20

Warning: include_once(../GameEngine/Units.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 21

Warning: include_once(): Failed opening '../GameEngine/Units.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 21

Warning: include_once(../GameEngine/Generator.php): failed to open stream: No such file or directory in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 22

Warning: include_once(): Failed opening '../GameEngine/Generator.php' for inclusion (include_path='.;c:/ospanel/modules/php/PHP-7.0-x64;c:/ospanel/modules/php/PHP-7.0-x64/PEAR/pear') in C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at C:\OSPanel\domains\TravianZ-master\GameEngine\Admin\function.php:20) in C:\OSPanel\domains\TravianZ-master\install\include\accounts.php on line 99
velhbxtyrj commented 5 years ago

So this should be addressed to the @iopietro for help.

@andrenunesjob But these are just warnings and you can get around them if you go to the next page of the installation. I looked in the database and all entered passwords for Multihunter and Support are created. It is also possible if you turn off the display of errors on the server, these warnings will not be displayed and everything will be installed as expected.

iopietro commented 5 years ago

It will be fixed in the refactored version and as @velhbxtyrj said, they're only warnings, the installation itself works fine.

delacdavid commented 5 years ago

Closing as this is not something that we are planning to fix in legacy version.