yi12345 / TravianZ

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

cannot redeclare classes issue for more than one time #474

Open rami-dabain opened 10 years ago

rami-dabain commented 10 years ago

PHP Fatal error: Cannot redeclare class Generator in /home/rami/w/travian/GameEngine/Generator.php on line 12, referer: http://travian/ PHP Stack trace:, referer: http://travian/ PHP 1. {main}() /home/rami/w/travian/anmelden.php:0, referer: http://travian/ PHP 2. include_once() /home/rami/w/travian/anmelden.php:2, referer: http://travian/ PHP 3. include() /home/rami/w/travian/GameEngine/Account.php:3, referer: http://travian/ ^C

Goten87 commented 10 years ago

you have your link to connect set to http://travian/ so it cannot find the generator i think if u make the url where it needs to go set it to the root folder of your travian

rami-dabain commented 10 years ago

actually Generator is an internal class as of PHP 5.5, you shouldn't be using this name http://travian is my root folder onlocal dev machine no worries about that you have to rename the Generator class name