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

Fatal error before create (installation) #2

Closed
seniorpreacher opened this issue Oct 10, 2013 · 5 comments
Closed

Fatal error before create (installation) #2

seniorpreacher opened this issue Oct 10, 2013 · 5 comments

Comments

@seniorpreacher
Copy link

Hi,

I just wanted to try your promising Framework, but before I could "create" it, I've got the following error: "Fatal error: Cannot redeclare class Generator in ...\respond\libs\Generator.php on line 4"

@madoublet
Copy link
Owner

Thank you! I am not seeing that on my current installs. But, let me do a clean deploy over lunch and see if I can repeat your problem.

@seniorpreacher
Copy link
Author

I've got the same on 2 different devices:

  • Android + lighttpd
  • Windows 8 + Apache2 (PHP 5.5.3)

I just downloaded the whole repo as a ZIP, not cloned it, but there should be no difference.
And this is weird, I tried with "include_once" on the Generator class, but got the same error. I haven't looked deep into the code, but from it's name I guess this class helps to generate a project, right? Or if it does else, is it necessary for proper run?

@madoublet
Copy link
Owner

PHP 5.5 introduced a Generator class (http://php.net/manual/en/class.generator.php). This is conflicting with the Generator class in Respond. I will have to rename it and push out a new release. This will take a day or two. I will close the issue when this is complete.

Thanks for your help!

@seniorpreacher
Copy link
Author

I see, It's clear now. Thanks for the assistance ;)
I'll rename it for myself just for now, until you makes the change.

@madoublet
Copy link
Owner

Much easier change than I thought. I have pushed an update. The Generator code has been moved to Utilities.

@smaimon smaimon mentioned this issue Nov 26, 2017
madoublet added a commit that referenced this issue May 7, 2018
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