} } if ($externalId) { $msg[] = \sprintf('the container inside "%s" is a smaller service locator that %s', $externalId, $this->formatAlternatives()); } else { $msg[] = \sprintf('the current service locator %s', $this->formatAlternatives()); } if (!$class) { // no-op } elseif (\is_subclass_of($class, \YoastSEO_Vendor\Symfony\Contracts\Service\ServiceSubscriberInterface::class)) { $msg[] = \sprintf('Unless you need extra laziness, try using dependency injection instead. Otherwise, you need to declare it using "%s::getSubscribedServices()".', \preg_replace('/([^\\\\]++\\\\)++/', '', $class)); } else { $msg[] = 'Try using dependency injection instead.'; } return new \YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException($id, \end($this->loading) ?: null, null, [], \implode(' ', $msg)); } private function createCircularReferenceException(string $id, array $path) : \YoastSEO_Vendor\Psr\Container\ContainerExceptionInterface { return new \YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException($id, $path); } private function formatAlternatives(?array $alternatives = null, string $separator = 'and') : string { $format = '"%s"%s'; if (null === $alternatives) { if (!($alternatives = \array_keys($this->factories))) { return 'is empty...'; } $format = \sprintf('only knows about the %s service%s.', $format, 1 < \count($alternatives) ? 's' : ''); } $last = \array_pop($alternatives); return \sprintf($format, $alternatives ? \implode('", "', $alternatives) : $last, $alternatives ? \sprintf(' %s "%s"', $separator, $last) : ''); } }
Fatal error: Uncaught Error: Class "YoastSEO_Vendor\Symfony\Component\DependencyInjection\ServiceLocator" not found in /htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Argument/ServiceLocator.php:19 Stack trace: #0 /htdocs/wp-content/plugins/auto-post-thumbnail/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/auto-post-thumbnail/vendor/composer/ClassLoader.php(427): {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}('/htdocs/wp-cont...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('YoastSEO_Vendor...') #3 /htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(27): class_exists('YoastSEO_Vendor...') #4 /htdocs/wp-content/plugins/auto-post-thumbnail/vendor/composer/ClassLoader.php(576): include('/htdocs/wp-cont...') #5 /htdocs/wp-content/plugins/auto-post-thumbnail/vendor/composer/ClassLoader.php(427): {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}('/htdocs/wp-cont...') #6 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(17): Composer\Autoload\ClassLoader->loadClass('YoastSEO_Vendor...') #7 /htdocs/wp-content/plugins/wordpress-seo/src/main.php(57): require_once('/htdocs/wp-cont...') #8 /htdocs/wp-content/plugins/wordpress-seo/lib/abstract-main.php(44): Yoast\WP\SEO\Main->get_container() #9 /htdocs/wp-content/plugins/wordpress-seo/src/functions.php(34): Yoast\WP\Lib\Abstract_Main->load() #10 /htdocs/wp-content/plugins/wordpress-seo/wp-seo-main.php(447): YoastSEO() #11 /htdocs/wp-content/plugins/wordpress-seo/wp-seo.php(50): require_once('/htdocs/wp-cont...') #12 /htdocs/wp-settings.php(589): include_once('/htdocs/wp-cont...') #13 /htdocs/wp-config.php(116): require_once('/htdocs/wp-sett...') #14 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #15 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #16 /htdocs/index.php(17): require('/htdocs/wp-blog...') #17 {main} thrown in /htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Argument/ServiceLocator.php on line 19