- Issue created by @lathan
- Status changed to Postponed: needs info
almost 2 years ago 1:17pm 8 May 2023 - πΊπΈUnited States mglaman WI, USA
Need more steps to reproduce.
https://git.drupalcode.org/project/acquia_dam/-/blob/1.0.x/src/Client/Ac... the file is here.
The tests aren't failing.
What version of Drupal core?
- πΊπΈUnited States mglaman WI, USA
Can you try rebuilding caches, or at least the container cache (
drush cc container
)? Or did you do this? This seems like an error caused by a hiccup during install. Did anything happen during install? - π¨π±Chile lathan Chile
drush cc container fails for me.
'container' cache is not a valid cache type
install goes to white screen but the module is enabled for me...
it has the same error
Error: Class "Drupal\acquia_dam\Client\AcquiaDamClientFactory" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php) #0 /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService() #1 /var/www/html/docroot/modules/contrib/acquia_dam/src/Plugin/media/Source/Asset.php(93): Drupal\Component\DependencyInjection\Container->get() #2 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\acquia_dam\Plugin\media\Source\Asset::create() #3 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() #4 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance() #5 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin() #6 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\Component\Plugin\LazyPluginCollection->get() #7 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration() #8 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId() #9 /var/www/html/docroot/core/modules/media/src/Entity/MediaType.php(200): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct() #10 /var/www/html/docroot/core/modules/media/src/Entity/MediaType.php(153): Drupal\media\Entity\MediaType->sourcePluginCollection() #11 /var/www/html/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(293): Drupal\media\Entity\MediaType->getPluginCollections() #12 /var/www/html/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php(83): Drupal\Core\Config\Entity\ConfigEntityBase->preSave() #13 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(562): Drupal\Core\Config\Entity\ConfigEntityBundleBase->preSave() #14 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(517): Drupal\Core\Entity\EntityStorageBase->doPreSave() #15 /var/www/html/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save() #16 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save() #17 /var/www/html/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(608): Drupal\Core\Entity\EntityBase->save() #18 /var/www/html/docroot/core/lib/Drupal/Core/Config/ConfigInstaller.php(392): Drupal\Core\Config\Entity\ConfigEntityBase->save() #19 /var/www/html/docroot/core/lib/Drupal/Core/Config/ConfigInstaller.php(152): Drupal\Core\Config\ConfigInstaller->createConfiguration() #20 /var/www/html/docroot/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\Core\Config\ConfigInstaller->installDefaultConfig() #21 /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(327): Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig() #22 /var/www/html/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install() #23 /var/www/html/docroot/core/modules/system/src/Form/ModulesListConfirmForm.php(175): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() #24 [internal function]: Drupal\system\Form\ModulesListConfirmForm->submitForm() #25 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array() #26 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() #27 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(595): Drupal\Core\Form\FormSubmitter->doSubmitForm() #28 /var/www/html/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(323): Drupal\Core\Form\FormBuilder->processForm() #29 /var/www/html/docroot/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm() #30 [internal function]: Drupal\Core\Controller\FormController->getContentResult() #31 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array() #32 /var/www/html/docroot/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #33 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext() #34 /var/www/html/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() #35 /var/www/html/docroot/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #36 /var/www/html/docroot/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #37 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle() #38 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #39 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #40 /var/www/html/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass() #41 /var/www/html/docroot/vendor/asm89/stack-cors/src/Asm89/Stack/Cors.php(49): Drupal\page_cache\StackMiddleware\PageCache->handle() #42 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle() #43 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #44 /var/www/html/docroot/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #45 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle() #46 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle() #47 {main}
- πΊπΈUnited States mglaman WI, USA
Did you try just clearing all caches instead? Type "container" was added in newer versions of Drush. Can you verify the file exists in your system?
The class is here: https://git.drupalcode.org/project/acquia_dam/-/blob/1.0.x/src/Client/Ac...
- π¨π±Chile lathan Chile
Yes I have tried clearing all cache as well.
Have that file you keep referencing, the issue is not that it's missing. Have tried installing this module both through the UI and via drush both instances fail with the same issue.
- πΊπΈUnited States mglaman WI, USA
Unfortunately I do not understand why this is happening.
- The class would be considered not found if it could not be autoloaded β such as file is missing
- Your Drupal instance could be corrupt and it's assuming the wrong namespace for the acquia_dam module