yi12345 / TravianZ

travian t3.6 project (based on travianx v6.0.0)
183 stars 190 forks source link

Cannot redeclare class Generator #478

Open kongu223 opened 9 years ago

kongu223 commented 9 years ago

Hey guys, i need help. I created my own travian server with this Z version last autumn. It worked fine, but for some reason I deleted it. Now i want to create new one but with some reason I can't. I'm doing same steps but when I or my frieds wants to register it wrotes this:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u406555507/public_html/GameEngine/Database/db_MYSQL.php on line 23

Fatal error: Cannot redeclare class Generator in /home/u406555507/public_html/GameEngine/Generator.php on line 12

Please help. TY.

MaxMad commented 9 years ago

Creeria que es porque en la instalacion, estas seleccionando MYSQLi y debe ser MYSQL

kongu223 commented 9 years ago

I always select MYSQL. Still dont know what to do. Support of free hosting told me that this travian is outdated. Please help and next time in english IF you can. :)

MaxMad commented 9 years ago

cual es la direccion de tu pagina?

MaxMad commented 9 years ago

use this travian version.

https://github.com/Shadowss/TravianZ

TomasVotruba commented 9 years ago

This is because of PHP 5.5+ feature generators, that added Generator class. You need to rename it to e.g. GameEngine_Generator or similar.

Exiliord commented 3 years ago

Travian 4 mysqli?