drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

PHP Fatal error: Cannot use Drupal\Console\Core\Bootstrap\DrupalConsoleCore as DrupalConsoleCore because the name is already in use in /var/www/public_html/vendor/drupal/console/src/Bootstrap/Drupal.php on line 11

Open hatuhay opened this issue 9 years ago • 4 comments

I execute a composer update

After command completed, I run the drupal command and got following error:

PHP Fatal error: Cannot use Drupal\Console\Core\Bootstrap\DrupalConsoleCore as DrupalConsoleCore because the name is already in use in /var/www/public_html/vendor/drupal/console/src/Bootstrap/Drupal.php on line 11

Tried running directly vendor/bin/drupal and got this error:

Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "team" entity type does not exist." at /var/www/public_html/core/lib/Drupal/Core/Entity/EntityTypeManager.php line 133

hatuhay avatar Feb 15 '17 16:02 hatuhay

Reinstalling the global executable https://github.com/hechoendrupal/drupal-console#install-drupal-console-launcher, solved the problem.

hatuhay avatar Feb 16 '17 21:02 hatuhay

Thanks you, just hit the same problem and your solution did the trick.

aangelinsf avatar Feb 22 '17 00:02 aangelinsf

Same here, but for me this message is only happening on specific projects, cloned from a repo. (built somewhere else). In others projects, created on my local, console works.

artatum avatar Mar 02 '17 09:03 artatum

Make sure you have the latest DrupalConsole and Launcher version.

Closing this one. Feel free to comment if still happening after updating to the latest version.

jmolivas avatar Jun 07 '17 06:06 jmolivas