Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot redeclare classes issue for more than one time #474

Open
rami-dabain opened this issue Jul 8, 2014 · 2 comments
Open

cannot redeclare classes issue for more than one time #474

rami-dabain opened this issue Jul 8, 2014 · 2 comments

Comments

@rami-dabain
Copy link

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
Copy link
Contributor

Goten87 commented Jul 8, 2014

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants