Symfony Exception

CategoryNotFoundException

HTTP 404 Not Found

Category "660afafd33284b2c9e5119a8fb452799" not found.

Exception

Shopware\Core\Content\Category\Exception\ CategoryNotFoundException

  1.         if (($category->getType() === CategoryDefinition::TYPE_FOLDER
  2.                 || $category->getType() === CategoryDefinition::TYPE_LINK)
  3.             && $context->getSalesChannel()->getNavigationCategoryId() !== $navigationId
  4.         ) {
  5.             throw new CategoryNotFoundException($navigationId);
  6.         }
  7.         $pageId $category->getCmsPageId();
  8.         $slotConfig $category->getTranslation('slotConfig');
  1.         $this->logger->info('cache-miss: ' self::buildName($navigationId));
  2.         $name self::buildName($navigationId);
  3.         $response $this->tracer->trace($name, function () use ($navigationId$request$context) {
  4.             return $this->getDecorated()->load($navigationId$request$context);
  5.         });
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag($this->generateTags($navigationId$response$request$context));
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 99)
  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 mixed|null All kind of data could be cached
  2.      */
  3.     public function trace(string $key\Closure $param)
  4.     {
  5.         return $this->collection->trace($key, function () use ($key$param) {
  6.             return $this->translator->trace($key, function () use ($key$param) {
  7.                 return $this->config->trace($key$param);
  8.             });
  9.         });
  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 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, function () use ($key$param) {
  7.             return $this->translator->trace($key, function () use ($key$param) {
  8.                 return $this->config->trace($key$param);
  9.             });
  10.         });
  11.     }
  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.         return $this->decorated;
  2.     }
  3.     public function trace(string $key\Closure $param)
  4.     {
  5.         return $this->themeConfigAccessor->trace($key, function () use ($key$param) {
  6.             return $this->getDecorated()->trace($key$param);
  7.         });
  8.     }
  9.     public function get(string $key): array
  1.         }
  2.         $this->logger->info('cache-miss: ' self::buildName($navigationId));
  3.         $name self::buildName($navigationId);
  4.         $response $this->tracer->trace($name, function () use ($navigationId$request$context) {
  5.             return $this->getDecorated()->load($navigationId$request$context);
  6.         });
  7.         $item CacheCompressor::compress($item$response);
CachedCategoryRoute->load('660afafd33284b2c9e5119a8fb452799', object(Request), object(SalesChannelContext)) in custom/plugins/SwagPayPal/src/Checkout/ExpressCheckout/SalesChannel/ExpressCategoryRoute.php (line 93)
  1.      *
  2.      * @Route("/store-api/category/{navigationId}", name="store-api.category.detail", methods={"GET","POST"})
  3.      */
  4.     public function load(string $navigationIdRequest $requestSalesChannelContext $context): CategoryRouteResponse
  5.     {
  6.         $response $this->inner->load($navigationId$request$context);
  7.         $route $request->attributes->get('_route');
  8.         if (!\is_string($route) || empty($route)) {
  9.             return $response;
  1.         $page NavigationPage::createFrom($page);
  2.         $navigationId $request->get('navigationId'$context->getSalesChannel()->getNavigationCategoryId());
  3.         $category $this->cmsPageRoute
  4.             ->load($navigationId$request$context)
  5.             ->getCategory();
  6.         if (!$category->getActive()) {
  7.             throw new CategoryNotFoundException($category->getId());
  8.         }
  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 && $container->has(CacheStore::class)) {
  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(object(Request)) in public/index.php (line 87)
  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 "660afafd33284b2c9e5119a8fb452799" not found.

  at vendor/shopware/core/Content/Category/SalesChannel/CategoryRoute.php:112
  at Shopware\Core\Content\Category\SalesChannel\CategoryRoute->load('660afafd33284b2c9e5119a8fb452799', object(Request), object(SalesChannelContext))
     (vendor/shopware/core/Content/Category/SalesChannel/CachedCategoryRoute.php:134)
  at Shopware\Core\Content\Category\SalesChannel\CachedCategoryRoute->Shopware\Core\Content\Category\SalesChannel\{closure}()
     (vendor/shopware/core/System/SystemConfig/SystemConfigService.php:349)
  at Shopware\Core\System\SystemConfig\SystemConfigService->trace('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (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:99)
  at Shopware\Core\Framework\Adapter\Translation\Translator->trace('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:38)
  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('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (vendor/shopware/core/Framework/Adapter/Cache/CacheTracer.php:37)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->trace('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (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('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (vendor/shopware/storefront/Framework/Cache/CacheTracer.php:36)
  at Shopware\Storefront\Framework\Cache\CacheTracer->trace('category-route-660afafd33284b2c9e5119a8fb452799', object(Closure))
     (vendor/shopware/core/Content/Category/SalesChannel/CachedCategoryRoute.php:133)
  at Shopware\Core\Content\Category\SalesChannel\CachedCategoryRoute->load('660afafd33284b2c9e5119a8fb452799', object(Request), object(SalesChannelContext))
     (custom/plugins/SwagPayPal/src/Checkout/ExpressCheckout/SalesChannel/ExpressCategoryRoute.php:93)
  at Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCategoryRoute->load('660afafd33284b2c9e5119a8fb452799', object(Request), object(SalesChannelContext))
     (vendor/shopware/storefront/Page/Navigation/NavigationPageLoader.php:61)
  at Shopware\Storefront\Page\Navigation\NavigationPageLoader->load(object(Request), object(SalesChannelContext))
     (vendor/shopware/storefront/Controller/NavigationController.php:51)
  at Shopware\Storefront\Controller\NavigationController->index(object(SalesChannelContext), object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:156)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:78)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:199)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:181)
  at Shopware\Core\HttpKernel->doHandle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle(object(Request))
     (public/index.php:87)