Problem/Motivation
- Fix an error: Cannot instantiate interface
Psr\Http\Client\ClientInterface<code>[error] Error: Cannot instantiate interface Psr\Http\Client\ClientInterface in ReflectionClass->newInstance() (line 1060 of /var/www/cloud_orchestrator/vendor/symfony/dependency-injection/ContainerBuilder.php) #0 /var/www/cloud_orchestrator/vendor/symfony/dependency-injection/ContainerBuilder.php(1060): ReflectionClass->newInstance() #1 /var/www/cloud_orchestrator/vendor/symfony/dependency-injection/ContainerBuilder.php(568): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'geocoder.http_a...') #2 /var/www/cloud_orchestrator/vendor/symfony/dependency-injection/ContainerBuilder.php(513): Symfony\Component\DependencyInjection\ContainerBuilder->doGet('geocoder.http_a...', 1) #3 /var/www/cloud_orchestrator/docroot/modules/contrib/geocoder/src/ConfigurableProviderUsingHandlerWithAdapterBase.php(88): Symfony\Component\DependencyInjection\ContainerBuilder->get('geocoder.http_a...') #4 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\geocoder\ConfigurableProviderUsingHandlerWithAdapterBase::create(Object(Drupal\Core\DependencyInjection\ContainerBuilder), Array, 'openstreetmap', Array) #5 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('openstreetmap', Array) #6 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance('openstreetmap', Array) #7 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('openstreetmap') #8 /var/www/cloud_orchestrator/docroot/modules/contrib/geocoder/src/Plugin/GeocoderProviderPluginCollection.php(22): Drupal\Component\Plugin\LazyPluginCollection->get('openstreetmap') #9 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\geocoder\Plugin\GeocoderProviderPluginCollection->get('openstreetmap') #10 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) #11 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('openstreetmap', Array) #12 /var/www/cloud_orchestrator/docroot/modules/contrib/geocoder/src/Entity/GeocoderProvider.php(103): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object(Drupal\geocoder\ProviderPluginManager), 'openstreetmap', Array) #13 /var/www/cloud_orchestrator/docroot/modules/contrib/geocoder/src/Entity/GeocoderProvider.php(112): Drupal\geocoder\Entity\GeocoderProvider->getPluginCollection() #14 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(162): Drupal\geocoder\Entity\GeocoderProvider->getPluginCollections() #15 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Service/CloudService.php(1008): Drupal\Core\Config\Entity\ConfigEntityBase->set('configuration', Array) #16 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/cloud.module(360): Drupal\cloud\Service\CloudService->initGeocoder() #17 [internal function]: cloud_modules_installed(Array, false) #18 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(409): call_user_func_array(Object(Closure), Array) #19 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object(Closure), 'cloud') #20 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(408): Drupal\Core\Extension\ModuleHandler->invokeAllWith('modules_install...', Object(Closure)) #21 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(373): Drupal\Core\Extension\ModuleHandler->invokeAll('modules_install...', Array) #22 /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, false) #23 /var/www/cloud_orchestrator/docroot/core/includes/install.core.inc(1893): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
Issue fork cloud-3356758
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3356758-fix-an-error-cannot-instantiate-ClientInterface-4.x
changes, plain diff MR !1756
- 3356758-fix-an-error-cannot-instantiate-ClientInterface-5.x
changes, plain diff MR !1755
- 3356758-fix-an-error-cannot-instantiate-ClientInterface-hotfix
changes, plain diff MR !1754
- 3356758-fix-an-error-cannot-instantiate-ClientInterface
changes, plain diff MR !1753
Comments
Comment #3
yasComment #10
yasComment #12
drumm(Updating resolve Drupal.org issue indexing issue, please disregard.)