TravianZ icon indicating copy to clipboard operation
TravianZ copied to clipboard

cannot redeclare classes issue for more than one time

Open rami-dabain opened this issue 10 years ago • 2 comments

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

rami-dabain avatar Jul 08 '14 12:07 rami-dabain

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

Goten87 avatar Jul 08 '14 12:07 Goten87

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

rami-dabain avatar Jul 08 '14 12:07 rami-dabain