wa0x6e/Cake-Resque

Starting worker logs error Cannot redeclare composerRequire...

Closed this issue · 7 comments

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

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

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).

The error is on you local, or on aws ?

Did you include the composer autoloader elsewhere ?

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).

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 ?

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).

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.