yi12345 / TravianT4

Travian T4 version by ebda with many fixes and translates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install Problem

Gintoki98 opened this issue · comments

I know this is an old post but I need someone to help me with this issue. I'm trying to install this Travian T4 server on a LAN network but it gives me this error:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\TravianT4\install\include\constant.php:2 Stack trace: #0 C:\xampp\htdocs\TravianT4\install\include\database.php(5): include() #1 C:\xampp\htdocs\TravianT4\install\process.php(4): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\TravianT4\install\include\constant.php on line 2

Has someone had this error before but solved it and didn't post it. I'm a noob regarding PHP, but if someone is able to help me I'd be very grateful.

Hi,

this is most probably because you are using php7+. mysql_connect() is removed in php 7 and marked depricated in php5.5 so I would recommend php5.4.

Best,
Marius

Hi there,

I did not consider downgrading as an option, so I fixed it for php7+
https://github.com/dsteindo/TravianT4_PHP7

you can check the code if you want, it contains plenty of fixes