Povilas Brilius
3 min readFeb 7, 2021

--

Drupal ultimately returns a set of errors upon its drush command usage —

composer require --dev drush/drush

tail -f /var/log/apache2/drupal.err is this time exhaustive and generous with the backtrace information provided —

[Sun Feb 07 22:41:22.449538 2021] [php7:notice] [pid 77821] [client 127.0.0.1:42766] Error: Class 'Drush\\Log\\DrushLog' not found in /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php on line 257 #0 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\\Component\\DependencyInjection\\Container->createService(Array, 'logger.drupalto...')\n#1 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(432): Drupal\\Component\\DependencyInjection\\Container->get('logger.drupalto...', 1)\n#2 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(271): Drupal\\Component\\DependencyInjection\\Container->resolveServicesAndParameters(Array)\n#3 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\\Component\\DependencyInjection\\Container->createService(Array, 'logger.factory')\n#4 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(432): Drupal\\Component\\DependencyInjection\\Container->get('logger.factory', 1)\n#5 /var/www/vhosts/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(247): Drupal\\Component\\DependencyInjection\\Container->resolveServicesAndParameters(Array)\n#6…

--

--

Povilas Brilius

PHP Developer in e-commerce and e-loans industry fields.