- Issue created by @cYu
- πΊπΈUnited States japerry KVUO
It just sounds like the service container needs to be reloaded. its crashing when you run drush cr?
- πΊπΈUnited States cYu
Yeah, with drush cr I get:
Fatal error: Uncaught TypeError: Drupal\acquia_dam\AssetLibraryBuilder::__construct(): Argument #6 ($theme_manager) must be of type Drupal\Core\Theme\ThemeManager, Drupal\Core\Entity\EntityTypeManager given, called in /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and defined in /var/www/html/docroot/modules/contrib/acquia_dam/src/AssetLibraryBuilder.php:129 Stack trace: #0 /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\acquia_dam\AssetLibraryBuilder->__construct() #1 /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService() #2 /var/www/html/docroot/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(20): Drupal\Component\DependencyInjection\Container->get() #3 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityResolverManager.php(106): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() #4 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityResolverManager.php(219): Drupal\Core\Entity\EntityResolverManager->getControllerClass() #5 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php(48): Drupal\Core\Entity\EntityResolverManager->setRouteOptions() #6 [internal function]: Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber->onRoutingRouteAlterSetType() #7 /var/www/html/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func() #8 /var/www/html/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php(189): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() #9 /var/www/html/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild() #10 /var/www/html/docroot/core/includes/common.inc(485): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() #11 /var/www/html/docroot/core/includes/utility.inc(41): drupal_flush_all_caches() #12 /var/www/html/vendor/drush/drush/src/Commands/core/CacheRebuildCommands.php(66): drupal_rebuild() #13 [internal function]: Drush\Commands\core\CacheRebuildCommands->rebuild() #14 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array() #15 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() #16 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() #17 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process() #18 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute() #19 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run() #20 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand() #21 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun() #22 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run() #23 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun() #24 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run() #25 /var/www/html/vendor/drush/drush/drush(4): require('...') #26 /var/www/html/vendor/bin/drush(119): include('...') #27 {main} thrown in /var/www/html/docroot/modules/contrib/acquia_dam/src/AssetLibraryBuilder.php on line 129 [warning] Drush command terminated abnormally.
- Merge request !56Revert "Auxiliary commit to revert individual files from 43b16db9da0a9a4ab67b8b3f7c16af0ff4812f62" β (Merged) created by japerry
- Status changed to Fixed
8 months ago 9:02pm 7 June 2024 - πΊπΈUnited States japerry KVUO
Spent a little time on this today. While I could not reproduce the issue, there isn't really a reason to be injecting these services other than phpstan. Therefore I reverted the change and pushed to head in 1.0.x and 1.1
-
japerry β
committed 2f6e92f0 on 1.0.x
Issue #3453029: Error from fields with Media Library widget after...
-
japerry β
committed 2f6e92f0 on 1.0.x
-
japerry β
committed 2b6c2885 on 1.1.x
Issue #3453029: Error from fields with Media Library widget after...
-
japerry β
committed 2b6c2885 on 1.1.x
- πΊπΈUnited States cYu
Thank you for taking a look. I've patched our 1.0.11 version with the recent security fix and will test out a switch over to 1.0.x-dev (or 1.0.14 if it lands) in our next deploy cycle.
Automatically closed - issue fixed for 2 weeks with no activity.