wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

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

Closed brianakidd closed 10 years ago

brianakidd commented 10 years ago

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 commented 10 years ago

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

brianakidd commented 10 years ago

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 https://github.com/kamisama/Cake-Resque/issues/70#issuecomment-52397124.

wa0x6e commented 10 years ago

The error is on you local, or on aws ?

Did you include the composer autoloader elsewhere ?

brianakidd commented 10 years ago

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 https://github.com/kamisama/Cake-Resque/issues/70#issuecomment-52399949.

wa0x6e commented 10 years ago

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 commented 10 years ago

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 https://github.com/kamisama/Cake-Resque/issues/70#issuecomment-52404035.

brianakidd commented 10 years ago

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.