- Issue created by @Kgaut
- Status changed to Needs review
5 months ago 12:56pm 31 January 2024
When enabling this module on a Drupal 10 site I got this error :
Error: Class "Http\Adapter\Guzzle6\Client" not found in /var/www/html/web/modules/contrib/media_opengraph/src/Plugin/media/Source/LinkPreview.php on line 96 #0 /var/www/html/web/modules/contrib/media_opengraph/src/Plugin/media/Source/LinkPreview.php(239): Drupal\media_opengraph\Plugin\media\Source\LinkPreview->__construct()
#1 /var/www/html/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\media_opengraph\Plugin\media\Source\LinkPreview::create()
#2 /var/www/html/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#3 /var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(62): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#4 /var/www/html/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin()
#5 /var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\Component\Plugin\LazyPluginCollection->get()
#6 /var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration()
#7 /var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId()
#8 /var/www/html/web/core/modules/media/src/Entity/MediaType.php(203): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct()
#9 /var/www/html/web/core/modules/media/src/Entity/MediaType.php(156): Drupal\media\Entity\MediaType->sourcePluginCollection()
#10 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(294): Drupal\media\Entity\MediaType->getPluginCollections()
#11 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php(83): Drupal\Core\Config\Entity\ConfigEntityBase->preSave()
#12 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(528): Drupal\Core\Config\Entity\ConfigEntityBundleBase->preSave()
#13 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\EntityStorageBase->doPreSave()
#14 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(257): Drupal\Core\Entity\EntityStorageBase->save()
#15 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php(352): Drupal\Core\Config\Entity\ConfigEntityStorage->save()
#16 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(609): Drupal\Core\Entity\EntityBase->save()
#17 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(389): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#18 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(149): Drupal\Core\Config\ConfigInstaller->createConfiguration()
#19 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\Core\Config\ConfigInstaller->installDefaultConfig()
#20 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(334): Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig()
#21 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install()
#22 /var/www/html/vendor/drush/drush/src/Commands/pm/PmCommands.php(102): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install()
#23 [internal function]: Drush\Commands\pm\PmCommands->install()
Needs review
1.0
Code