Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Starting worker logs error Cannot redeclare composerRequire... #70

Closed
brianakidd opened this issue Aug 16, 2014 · 7 comments
Closed

Starting worker logs error Cannot redeclare composerRequire... #70

brianakidd opened this issue Aug 16, 2014 · 7 comments

Comments

@brianakidd
Copy link

Starting worker fails and this error is being logged in resque-worker-error:

Fatal error: Cannot redeclare composerRequire1ffb0fd74e42d319f0dc6067468206a9() (previously declared in /Users/brian/Development/cakephp_example/app/Vendor/composer/autoload_real.php:47) in /Users/brian/development/cakephp_example/app/Vendor/composer/autoload_real.php on line 50

@wa0x6e
Copy link
Owner

wa0x6e commented Aug 16, 2014

Are you a new user, or upgrading from a previous version ?

@brianakidd
Copy link
Author

I started with a 2.4 version of cakephp and I'm trying to get a simple 2
table app up and running with CakeReque before implementing in my
production app.

I plan to move my app to aws eb so I followed the instructions in aws docs
for deploying to eb using the aws/eb cli. I simply wget the cakephp 2.4
from github so I don't think there is anything in the project that is
raising the issue.

I'm developing on Mac using MAMP.

Thanks
Brian
On Aug 16, 2014 12:05 PM, "Wan Qi Chen" notifications@github.com wrote:

Are you a new user, or upgrading from a previous version ?


Reply to this email directly or view it on GitHub
#70 (comment).

@wa0x6e
Copy link
Owner

wa0x6e commented Aug 16, 2014

The error is on you local, or on aws ?

Did you include the composer autoloader elsewhere ?

@brianakidd
Copy link
Author

It's on local. Yes I had it in my bootstrap file and realized it and it is
now commented out. This was in place when I first tried to start it. I
fixed it, saved, and started a new bash session but still getting this
error.

Thanks
Brian
On Aug 16, 2014 1:11 PM, "Wan Qi Chen" notifications@github.com wrote:

The error is on you local, or on aws ?

Did you include the composer autoloader elsewhere ?


Reply to this email directly or view it on GitHub
#70 (comment).

@wa0x6e
Copy link
Owner

wa0x6e commented Aug 16, 2014

So you commented out the line used to load the composer autoloader, but it's still complaining about the autoloader loaded twice ?

What's your Cakephp version ? Php ? Cake-Resque ?

What's your composer.json looks like ?

@brianakidd
Copy link
Author

Yes, I commented it out in boostrap but it is still complaining about the
autoloader loaded twice.

CakePHP 2.2.4

PHP 5.5.10

Cake-Resque 4.1.0

Thank you,
Brian

On Sat, Aug 16, 2014 at 3:50 PM, Wan Qi Chen notifications@github.com
wrote:

So you commented out the line used to load the composer autoloader, but
it's still complaining about the autoloader loaded twice ?

What's your Cakephp version ? Php ? Cake-Resque ?

What's your composer.json looks like ?


Reply to this email directly or view it on GitHub
#70 (comment).

@brianakidd
Copy link
Author

I changed to a different development environment and I no longer am experiencing this issue. Must have been relate to my MAMP and/or Composer installation.

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

No branches or pull requests

2 participants