TravianZ icon indicating copy to clipboard operation
TravianZ copied to clipboard

Cannot redeclare class Generator

Open kongu223 opened this issue 10 years ago • 6 comments

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.

kongu223 avatar Feb 12 '15 18:02 kongu223

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

MaxMad avatar Feb 21 '15 03:02 MaxMad

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. :)

kongu223 avatar Feb 21 '15 08:02 kongu223

cual es la direccion de tu pagina?

MaxMad avatar Feb 24 '15 01:02 MaxMad

use this travian version.

https://github.com/Shadowss/TravianZ

MaxMad avatar Feb 24 '15 01:02 MaxMad

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.

TomasVotruba avatar Mar 09 '15 10:03 TomasVotruba

Travian 4 mysqli?

Tommy-Traviline avatar Jan 20 '21 16:01 Tommy-Traviline