errors in homepage after installing
Nx2UndU opened this issue · comments
I finished installing and the homepage is full of error lines and i can't click on anything no login no register nothing !!
when i go to login.php page it shows these errors
Notice: Constant SQL_SERVER already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 10
Notice: Constant SQL_USER already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 13
Notice: Constant SQL_PASS already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 16
Notice: Constant SQL_DB already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 19
Notice: Constant TB_PREFIX already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 22
Notice: Constant DB_TYPE already defined in C:\xampp5.4\htdocs\T1\GameEngine\Database\connection.php on line 28
Fatal error: Cannot redeclare class Config in C:\xampp5.4\php\pear\Config.php on line 44
Hi there,
This is because of newer php requirements, these were something I addressed here
https://github.com/dsteindo/TravianT4_PHP7
you can check the code if you want, it contains plenty of fixes