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

HTTP ERROR 500 Help #563

Closed K9CTec closed 5 years ago

K9CTec commented 5 years ago

This page isn’t working xxxxx is currently unable to handle this request. HTTP ERROR 500

PHP version on the server : 7.0.31 MySQL / MariaDB version on the server : 5.7.23

velhbxtyrj commented 5 years ago

where exactly does this happen? give a link to what page this happens?

K9CTec commented 5 years ago

where exactly does this happen? give a link to what page this happens?

page error html 500 install/process.php

Step 3 from 6

velhbxtyrj commented 5 years ago

What version of PHP are you using? Most likely you are using PHP version 5.6. And it is necessary that there should be a version 7.0+

CruelAlpha commented 5 years ago
velhbxtyrj commented 5 years ago

It is necessary to use the PHP 7.0+, otherwise there will be errors.

CruelAlpha commented 5 years ago

Sorry* I am using Php 7** not 5. Anything i can check why this is happening? Screenshot of php -v https://gyazo.com/974e278dbee56787d5486277efc5c328

CruelAlpha commented 5 years ago

I see these errors on the apache error log @velhbxtyrj image

iopietro commented 5 years ago

This is the problematic line of code: https://github.com/Shadowss/TravianZ/blob/3b167c64bee70053abe6a9a31133f3e8f0c5fc40/GameEngine/Database.php#L490

Are you sure that you have an up-to-date PHP version? The "..." token exists since PHP 5.6, so you could have a lesser version than the 5.6

CruelAlpha commented 5 years ago

Yes, i am fairly sure, as i mentioned above here is a screenshot of php -v https://gyazo.com/974e278dbee56787d5486277efc5c328 Anything you'd like me to try? Cheers

CruelAlpha commented 5 years ago

Nevermind, I had to physically set PHP 7 on the server, Works now!

NikolarnTV commented 5 years ago

Nevermind, I had to physically set PHP 7 on the server, Works now!

I get the same HTTP ERROR 500 and i'm running PHP 7.2.10 on digitalocean.

Any tips?

NikolarnTV commented 5 years ago

This is what i get after php -v on the server :)

image