TravianZ
TravianZ copied to clipboard
Cannot redeclare class Generator
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.
Creeria que es porque en la instalacion, estas seleccionando MYSQLi y debe ser MYSQL
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. :)
cual es la direccion de tu pagina?
use this travian version.
https://github.com/Shadowss/TravianZ
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.
Travian 4 mysqli?