Symfony Exception

CategoryNotFoundException

HTTP 404 Not Found

Category "f6cf3cee2743499187b6b28608935433" not found.

Exception

Shopware\Core\Content\Category\Exception\ CategoryNotFoundException

  1.     }
  2.     private function getMetaInfoById(string $id, array $metaInfo): array
  3.     {
  4.         if (!\array_key_exists($id$metaInfo)) {
  5.             throw new CategoryNotFoundException($id);
  6.         }
  7.         return $metaInfo[$id];
  8.     }
  1.     ): NavigationRouteResponse {
  2.         $depth $request->query->getInt('depth'$request->request->getInt('depth'2));
  3.         $metaInfo $this->getCategoryMetaInfo($activeId$rootId);
  4.         $active $this->getMetaInfoById($activeId$metaInfo);
  5.         $root $this->getMetaInfoById($rootId$metaInfo);
  6.         // Validate the provided category is part of the sales channel
  7.         $this->validate($activeId$active['path'], $context);
  1.         $request->query->set('depth', (string) $depth);
  2.         $name self::buildName($active);
  3.         $response $this->tracer->trace($name, function () use ($active$rootId$request$context$criteria) {
  4.             return $this->getDecorated()->load($active$rootId$request$context$criteria);
  5.         });
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag($this->generateTags($tags$active$rootId$depth$request$response$context$criteria));
in vendor/shopware/core/System/SystemConfig/SystemConfigService.php -> Shopware\Core\Content\Category\SalesChannel\{closure} (line 349)
  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.     public function trace(string $key, \Closure $param)
  3.     {
  4.         return $this->collection->trace($key, function () use ($key$param) {
  5.             return $this->translator->trace($key, function () use ($key$param) {
  6.                 return $this->config->trace($key$param);
  7.             });
  8.         });
  9.     }
  10.     public function get(string $key): array
in vendor/shopware/core/Framework/Adapter/Translation/Translator.php -> Shopware\Core\Framework\Adapter\Cache\{closure} (line 93)
  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.     public function trace(string $key, \Closure $param)
  2.     {
  3.         return $this->collection->trace($key, function () use ($key$param) {
  4.             return $this->translator->trace($key, function () use ($key$param) {
  5.                 return $this->config->trace($key$param);
  6.             });
  7.         });
  8.     }
  9.     public function get(string $key): array
  10.     {
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 $this->collection->trace($key, function () use ($key$param) {
  3.             return $this->translator->trace($key, function () use ($key$param) {
  4.                 return $this->config->trace($key$param);
  5.             });
  6.         });
  7.     }
  8.     public function get(string $key): array
  9.     {
  10.         return array_merge(
  1.     }
  2.     public function trace(string $key, \Closure $param)
  3.     {
  4.         return $this->themeConfigAccessor->trace($key, function () use ($key$param) {
  5.             return $this->getDecorated()->trace($key$param);
  6.         });
  7.     }
  8.     public function get(string $key): array
  9.     {
in vendor/shopware/storefront/Theme/ThemeConfigValueAccessor.php -> Shopware\Storefront\Framework\Cache\{closure} (line 53)
  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.     public function trace(string $key, \Closure $param)
  2.     {
  3.         return $this->themeConfigAccessor->trace($key, function () use ($key$param) {
  4.             return $this->getDecorated()->trace($key$param);
  5.         });
  6.     }
  7.     public function get(string $key): array
  8.     {
  9.         return array_unique(array_merge(
  1.         $name self::buildName($active);
  2.         $response $this->tracer->trace($name, function () use ($active$rootId$request$context$criteria) {
  3.             return $this->getDecorated()->load($active$rootId$request$context$criteria);
  4.         });
  5.         $item CacheCompressor::compress($item$response);
  6.         $item->tag($this->generateTags($tags$active$rootId$depth$request$response$context$criteria));
  1.         if ($this->isActiveLoaded($rootId$response->getCategories(), $activeId)) {
  2.             return $response;
  3.         }
  4.         // reload missing children of active category, depth 0 allows us the skip base navigation loading in the core route
  5.         $active $this->loadNavigation($request$activeId$rootId0$context$criteria, [self::ALL_TAG]);
  6.         $response->getCategories()->merge($active->getCategories());
  7.         return $response;
  8.     }
  1.         if ($rootId === null) {
  2.             throw new CategoryNotFoundException($request->get('rootId'));
  3.         }
  4.         $response $this->getDecorated()->load($activeId$rootId$request$context$criteria);
  5.         $buildTree $request->query->getBoolean('buildTree'$request->request->getBoolean('buildTree'true));
  6.         if (!$buildTree) {
  7.             return $response;
  1.         $criteria = new Criteria();
  2.         $criteria->setTitle('header::navigation');
  3.         $categories $this->navigationRoute
  4.             ->load($activeId$rootId$request$context$criteria)
  5.             ->getCategories();
  6.         $navigation $this->getTree($rootId$categories$categories->get($activeId));
  7.         $event = new NavigationLoadedEvent($navigation$context);
  1.         $navigation $this->navigationLoader->load(
  2.             (string) $navigationId,
  3.             $context,
  4.             $salesChannel->getNavigationCategoryId(),
  5.             $salesChannel->getNavigationCategoryDepth()
  6.         );
  7.         $criteria = new Criteria();
  8.         $criteria->setTitle('header::currencies');
  1.             );
  2.             return $page;
  3.         }
  4.         $page->setHeader(
  5.             $this->headerLoader->load($request$context)
  6.         );
  7.         $page->setFooter(
  8.             $this->footerLoader->load($request$context)
  9.         );
  1.         $this->seoUrlReplacer $seoUrlReplacer;
  2.     }
  3.     public function load(Request $requestSalesChannelContext $context): NavigationPage
  4.     {
  5.         $page $this->genericLoader->load($request$context);
  6.         $page NavigationPage::createFrom($page);
  7.         $navigationId $request->get('navigationId'$context->getSalesChannel()->getNavigationCategoryId());
  8.         $category $this->cmsPageRoute
  1.      * @HttpCache()
  2.      * @Route("/navigation/{navigationId}", name="frontend.navigation.page", options={"seo"=true}, methods={"GET"})
  3.      */
  4.     public function index(SalesChannelContext $contextRequest $request): Response
  5.     {
  6.         $page $this->navigationPageLoader->load($request$context);
  7.         return $this->renderStorefront('@Storefront/storefront/page/content/index.html.twig', ['page' => $page]);
  8.     }
  9.     /**
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled) {
  3.             $kernel = new HttpCache($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 81)
  1.     }
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (DBALException $e) {
  7.             $connectionParams self::getConnection()->getParams();
  8.             $message str_replace([$connectionParams['url'], $connectionParams['password'], $connectionParams['user']], '******'$e->getMessage());
HttpKernel->handle() in public/index.php (line 83)
  1. }
  2. $request Request::createFromGlobals();
  3. $kernel = new HttpKernel($appEnv$debug$classLoader);
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

Logs

No log messages

Stack Trace

CategoryNotFoundException
Shopware\Core\Content\Category\Exception\CategoryNotFoundException:
Category "f6cf3cee2743499187b6b28608935433" not found.

  at vendor/shopware/core/Content/Category/SalesChannel/NavigationRoute.php:253
  at Shopware\Core\Content\Category\SalesChannel\NavigationRoute->getMetaInfoById()
     (vendor/shopware/core/Content/Category/SalesChannel/NavigationRoute.php:127)
  at Shopware\Core\Content\Category\SalesChannel\NavigationRoute->load()
     (vendor/shopware/core/Content/Category/SalesChannel/CachedNavigationRoute.php:191)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->Shopware\Core\Content\Category\SalesChannel\{closure}()
     (vendor/shopware/core/System/SystemConfig/SystemConfigService.php:349)
  at Shopware\Core\System\SystemConfig\SystemConfigService->trace()
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:39)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->Shopware\Core\Framework\Adapter\Cache\{closure}()
     (vendor/shopware/core/Framework/Adapter/Translation/Translator.php:93)
  at Shopware\Core\Framework\Adapter\Translation\Translator->trace()
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:40)
  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()
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:41)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->trace()
     (vendor/shopware/storefront/Framework/Cache/CacheTracer.php:37)
  at Shopware\Storefront\Framework\Cache\CacheTracer->Shopware\Storefront\Framework\Cache\{closure}()
     (vendor/shopware/storefront/Theme/ThemeConfigValueAccessor.php:53)
  at Shopware\Storefront\Theme\ThemeConfigValueAccessor->trace()
     (vendor/shopware/storefront/Framework/Cache/CacheTracer.php:38)
  at Shopware\Storefront\Framework\Cache\CacheTracer->trace()
     (vendor/shopware/core/Content/Category/SalesChannel/CachedNavigationRoute.php:192)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->loadNavigation()
     (vendor/shopware/core/Content/Category/SalesChannel/CachedNavigationRoute.php:156)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->load()
     (vendor/shopware/core/Content/Category/SalesChannel/TreeBuildingNavigationRoute.php:108)
  at Shopware\Core\Content\Category\SalesChannel\TreeBuildingNavigationRoute->load()
     (vendor/shopware/core/Content/Category/Service/NavigationLoader.php:62)
  at Shopware\Core\Content\Category\Service\NavigationLoader->load()
     (vendor/shopware/storefront/Pagelet/Header/HeaderPageletLoader.php:79)
  at Shopware\Storefront\Pagelet\Header\HeaderPageletLoader->load()
     (vendor/shopware/storefront/Page/GenericPageLoader.php:90)
  at Shopware\Storefront\Page\GenericPageLoader->load()
     (vendor/shopware/storefront/Page/Navigation/NavigationPageLoader.php:55)
  at Shopware\Storefront\Page\Navigation\NavigationPageLoader->load()
     (vendor/shopware/storefront/Controller/NavigationController.php:51)
  at Shopware\Storefront\Controller\NavigationController->index()
     (vendor/symfony/http-kernel/HttpKernel.php:156)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:78)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:199)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/shopware/core/HttpKernel.php:178)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:83)