hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
940 stars 560 forks source link

PHP Fatal error: Cannot redeclare class Drupal\Console\Composer\Plugin\ExtenderManager #3513

Closed webfaqtory closed 5 years ago

webfaqtory commented 7 years ago

On step 2 of installation "Download using DrupalComposer project template" issuing the command: composer create-project \ drupal-composer/drupal-project:8.x-dev \ drupal8.dev \ --prefer-dist \ --no-progress \ --no-interaction

I get: PHP Fatal error: Cannot redeclare class Drupal\Console\Composer\Plugin\ExtenderManager in /var/www/drupal8/drupal8.dev/vendor/drupal/console-extend-plugin/src/ExtenderManager.php on line 9 Tried installing as well on a clean Drupal 8.3 install and had the same results.

drupal

weitzman commented 6 years ago

I am seeing this as well.

jmolivas commented 6 years ago

@webfaqtory @weitzman which OS and DrupalConsole version are you using?

webfaqtory commented 6 years ago

Ubuntu 14.04 and the latest download of DrupalConsole

weitzman commented 6 years ago

I'm on OSX. Just did a vanilla composer create-project drupal-composer/drupal-project

jmolivas commented 6 years ago

@weitzman how about the Launcher?

jmolivas commented 6 years ago

The error is just by executing composer create-project drupal-composer/drupal-project

clausbruun commented 6 years ago

I get this too

jmolivas commented 6 years ago

@clausbruun which PHP version do you have?

clausbruun commented 6 years ago

@jmolivas PHP 7.1.7

christophe-natale commented 6 years ago

same problem on php 7.1

jmolivas commented 6 years ago

I was not been able to replicate this. Did any of you would like to share your php.ini?

christophe-natale commented 6 years ago

I launched the console from the root of drupal, but it works when I launch the console outside (level -1)...

Adwitiya012 commented 6 years ago

I have faced the same issue in Windows (PHP 5.6). This is because of another vendor which was created by first Command "composer require drupal/console:~1.0". I have fixed the issue in two ways-

  1. Change directory to drupal installation folder
  2. Run "composer update" command again.
kporras07 commented 6 years ago

Hi there, I'm getting the same issue. Linux Mint, php 7.1 If I run composer install and the vendor folder doesn't exist, I get the error. If I run the same command again it works as expected.

Any ideas?

hjuarez20 commented 5 years ago

I couldn't reproduce it using DC v1.9.1 and php v7.1.23.