Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

No valid UUID

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#3488
  -statusCode: 404
  -headers: []
}
  1.     }
  2.     public function getBlogPost($postIdSalesChannelContext $salesChannelContextContext $context)
  3.     {
  4.         if( ! Uuid::isValid($postId)) {
  5.             throw new NotFoundHttpException('No valid UUID');
  6.         }
  7.         $repo $this->container->get('s_plugin_netzp_blog.repository');
  8.         $criteria = new Criteria();
BlogHelper->getBlogPost('cargo-rent.html', object(SalesChannelContext), object(Context)) in custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/BlogPostRoute.php (line 25)
  1.     }
  2.     #[Route(path'/store-api/blogpost/{postId}'name'store-api.s_plugin_netzp_blog.load'methods: ['GET''POST'], defaults: ['_routeScope' => ['store-api']])]
  3.     public function load(string $postIdCriteria $criteriaSalesChannelContext $salesChannelContext): BlogPostRouteResponse
  4.     {
  5.         $post $this->helper->getBlogPost($postId$salesChannelContext$salesChannelContext->getContext());
  6.         return new BlogPostRouteResponse($post);
  7.     }
  8. }
BlogPostRoute->load('cargo-rent.html', object(Criteria), object(SalesChannelContext)) in custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/CachedBlogPostRoute.php (line 53)
  1.         catch (\Throwable $e) {
  2.             $this->logger->error($e->getMessage());
  3.         }
  4.         $name self::buildName($postId);
  5.         $response $this->tracer->trace($name, fn() => $this->getDecorated()->load($postId$criteria$context));
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag(array_merge(
  8.             $this->tracer->get(self::buildName($postId)),
in vendor/shopware/core/System/SystemConfig/SystemConfigService.php -> NetzpBlog6\Controller\StoreApi\BlogPost\{closure} (line 411)
  1.     public function trace(string $key\Closure $param)
  2.     {
  3.         $this->traces[$key] = [];
  4.         $this->keys[$key] = true;
  5.         $result $param();
  6.         unset($this->keys[$key]);
  7.         return $result;
  8.     }
  1.     /**
  2.      * @return mixed|null All kind of data could be cached
  3.      */
  4.     public function trace(string $key\Closure $param)
  5.     {
  6.         return $this->collection->trace($key, fn () => $this->translator->trace($key, fn () => $this->config->trace($key$param)));
  7.     }
  8.     public function get(string $key): array
  9.     {
  10.         return array_merge(
in vendor/shopware/core/Framework/Adapter/Translation/Translator.php -> Shopware\Core\Framework\Adapter\Cache\{closure} (line 98)
  1.     public function trace(string $key\Closure $param)
  2.     {
  3.         $this->traces[$key] = [];
  4.         $this->keys[$key] = true;
  5.         $result $param();
  6.         unset($this->keys[$key]);
  7.         return $result;
  8.     }
  1.     /**
  2.      * @return mixed|null All kind of data could be cached
  3.      */
  4.     public function trace(string $key\Closure $param)
  5.     {
  6.         return $this->collection->trace($key, fn () => $this->translator->trace($key, fn () => $this->config->trace($key$param)));
  7.     }
  8.     public function get(string $key): array
  9.     {
  10.         return array_merge(
in vendor/shopware/core/Framework/Adapter/Cache/CacheTagCollection.php -> Shopware\Core\Framework\Adapter\Cache\{closure} (line 43)
  1.     public function trace(string $key\Closure $param)
  2.     {
  3.         $this->traces[$key] = [];
  4.         $this->keys[$key] = true;
  5.         $result $param();
  6.         unset($this->keys[$key]);
  7.         return $result;
  8.     }
  1.     /**
  2.      * @return mixed|null All kind of data could be cached
  3.      */
  4.     public function trace(string $key\Closure $param)
  5.     {
  6.         return $this->collection->trace($key, fn () => $this->translator->trace($key, fn () => $this->config->trace($key$param)));
  7.     }
  8.     public function get(string $key): array
  9.     {
  10.         return array_merge(
  1.         return $this->decorated;
  2.     }
  3.     public function trace(string $key\Closure $param)
  4.     {
  5.         return $this->themeConfigAccessor->trace($key, fn () => $this->getDecorated()->trace($key$param));
  6.     }
  7.     public function get(string $key): array
  8.     {
  9.         return array_unique(array_merge(
in vendor/shopware/storefront/Theme/ThemeConfigValueAccessor.php -> Shopware\Storefront\Framework\Cache\{closure} (line 72)
  1.     public function trace(string $key\Closure $param)
  2.     {
  3.         $this->traces[$key] = [];
  4.         $this->keys[$key] = true;
  5.         $result $param();
  6.         unset($this->keys[$key]);
  7.         return $result;
  8.     }
  1.         return $this->decorated;
  2.     }
  3.     public function trace(string $key\Closure $param)
  4.     {
  5.         return $this->themeConfigAccessor->trace($key, fn () => $this->getDecorated()->trace($key$param));
  6.     }
  7.     public function get(string $key): array
  8.     {
  9.         return array_unique(array_merge(
CacheTracer->trace('blog-post-route-cargo-rent.html', object(Closure)) in custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/CachedBlogPostRoute.php (line 53)
  1.         catch (\Throwable $e) {
  2.             $this->logger->error($e->getMessage());
  3.         }
  4.         $name self::buildName($postId);
  5.         $response $this->tracer->trace($name, fn() => $this->getDecorated()->load($postId$criteria$context));
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag(array_merge(
  8.             $this->tracer->get(self::buildName($postId)),
CachedBlogPostRoute->load('cargo-rent.html', object(Criteria), object(SalesChannelContext)) in custom/plugins/NetzpBlog6/src/Storefront/Page/BlogPageLoader.php (line 31)
  1.     }
  2.     public function load(Request $requestSalesChannelContext $contextstring $postId): BlogPage
  3.     {
  4.         $criteria = new Criteria([$postId]);
  5.         $post $this->blogRoute->load($postId$criteria$context)->getBlogPost();
  6.         if(! $post) {
  7.             throw new NotFoundHttpException('Blog post not found');
  8.         }
  9.         $config $this->config->get('NetzpBlog6.config'$context->getSalesChannelId());
BlogPageLoader->load(object(Request), object(SalesChannelContext), 'cargo-rent.html') in custom/plugins/NetzpBlog6/src/Controller/BlogController.php (line 41)
  1.     public function getPost(Request $requestSalesChannelContext $salesChannelContextContext $context$postId)
  2.     {
  3.         $shariffIsActive $this->helper->isPluginActive('NetzpShariff6'$context);
  4.         $config $this->config->get('NetzpBlog6.config'$salesChannelContext->getSalesChannel()->getId());
  5.         $page $this->blogPageLoader->load($request$salesChannelContext$postId);
  6.         $template $page->isCmsPage() ? 'storefront/page/content/index.html.twig' 'storefront/page/blog/post.html.twig';
  7.         return $this->renderStorefront($template, [
  8.             'page'               => $page,
  9.             'post'               => $page->getPost(),
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null)
  2.     {
  3.         $this->surrogate?->addSurrogateCapability($request);
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
in vendor/shopware/core/HttpKernel.php -> doHandle (line 65)
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request$type$catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
HttpKernel->handle(object(Request), 1, true) in public/index.php (line 71)
  1.             $this->httpKernel $httpKernel;
  2.         }
  3.         public function handle(Request $requestint $type self::MAIN_REQUESTbool $catch true): Response
  4.         {
  5.             return $this->httpKernel->handle($request$type$catch)->getResponse();
  6.         }
  7.         public function terminate(Request $requestResponse $response): void
  8.         {
  9.             $this->httpKernel->terminate($request$response);
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/htdocs/w0176f45/ebike-shopware/vendor/autoload_runtime.php') in public/index.php (line 14)
  1. use Symfony\Component\HttpKernel\HttpKernelInterface;
  2. use Symfony\Component\HttpKernel\TerminableInterface;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }

Logs

No log messages

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
No valid UUID

  at custom/plugins/NetzpBlog6/src/Helper/BlogHelper.php:125
  at NetzpBlog6\Helper\BlogHelper->getBlogPost('cargo-rent.html', object(SalesChannelContext), object(Context))
     (custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/BlogPostRoute.php:25)
  at NetzpBlog6\Controller\StoreApi\BlogPost\BlogPostRoute->load('cargo-rent.html', object(Criteria), object(SalesChannelContext))
     (custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/CachedBlogPostRoute.php:53)
  at NetzpBlog6\Controller\StoreApi\BlogPost\CachedBlogPostRoute->NetzpBlog6\Controller\StoreApi\BlogPost\{closure}()
     (vendor/shopware/core/System/SystemConfig/SystemConfigService.php:411)
  at Shopware\Core\System\SystemConfig\SystemConfigService->trace('blog-post-route-cargo-rent.html', object(Closure))
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:36)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->Shopware\Core\Framework\Adapter\Cache\{closure}()
     (vendor/shopware/core/Framework/Adapter/Translation/Translator.php:98)
  at Shopware\Core\Framework\Adapter\Translation\Translator->trace('blog-post-route-cargo-rent.html', object(Closure))
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:36)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->Shopware\Core\Framework\Adapter\Cache\{closure}()
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTagCollection.php:43)
  at Shopware\Core\Framework\Adapter\Cache\CacheTagCollection->trace('blog-post-route-cargo-rent.html', object(Closure))
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:36)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->trace('blog-post-route-cargo-rent.html', object(Closure))
     (vendor/shopware/storefront/Framework/Cache/CacheTracer.php:33)
  at Shopware\Storefront\Framework\Cache\CacheTracer->Shopware\Storefront\Framework\Cache\{closure}()
     (vendor/shopware/storefront/Theme/ThemeConfigValueAccessor.php:72)
  at Shopware\Storefront\Theme\ThemeConfigValueAccessor->trace('blog-post-route-cargo-rent.html', object(Closure))
     (vendor/shopware/storefront/Framework/Cache/CacheTracer.php:33)
  at Shopware\Storefront\Framework\Cache\CacheTracer->trace('blog-post-route-cargo-rent.html', object(Closure))
     (custom/plugins/NetzpBlog6/src/Controller/StoreApi/BlogPost/CachedBlogPostRoute.php:53)
  at NetzpBlog6\Controller\StoreApi\BlogPost\CachedBlogPostRoute->load('cargo-rent.html', object(Criteria), object(SalesChannelContext))
     (custom/plugins/NetzpBlog6/src/Storefront/Page/BlogPageLoader.php:31)
  at NetzpBlog6\Storefront\Page\BlogPageLoader->load(object(Request), object(SalesChannelContext), 'cargo-rent.html')
     (custom/plugins/NetzpBlog6/src/Controller/BlogController.php:41)
  at NetzpBlog6\Controller\BlogController->getPost(object(Request), object(SalesChannelContext), object(Context), 'cargo-rent.html')
     (vendor/symfony/http-kernel/HttpKernel.php:182)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(Kernel), object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:473)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:448)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:221)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:143)
  at Shopware\Core\HttpKernel->doHandle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:65)
  at Shopware\Core\HttpKernel->handle(object(Request), 1, true)
     (public/index.php:71)
  at Symfony\Component\HttpKernel\HttpKernelInterface@anonymous/www/htdocs/w0176f45/ebike-shopware/public/index.php:61$0->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/www/htdocs/w0176f45/ebike-shopware/vendor/autoload_runtime.php')
     (public/index.php:14)