Symfony Exception

CategoryNotFoundException

HTTP 404 Not Found

Category "00bdbaf1f7e74f048eba9aadfb7d9121" not found.

Exception

Shopware\Core\Content\Category\Exception\ CategoryNotFoundException

  1.             if ($this->isChildCategory($activeId$path$id)) {
  2.                 return;
  3.             }
  4.         }
  5.         throw new CategoryNotFoundException($activeId);
  6.     }
  7.     private function isChildCategory(string $activeId, ?string $pathstring $rootId): bool
  8.     {
  9.         if ($rootId === $activeId) {
  1.         $active $this->getMetaInfoById($activeId$metaInfo);
  2.         $root $this->getMetaInfoById($rootId$metaInfo);
  3.         // Validate the provided category is part of the sales channel
  4.         $this->validate($activeId$active['path'], $context);
  5.         $isChild $this->isChildCategory($activeId$active['path'], $rootId);
  6.         // If the provided activeId is not part of the rootId, a fallback to the rootId must be made here.
  7.         // The passed activeId is therefore part of another navigation and must therefore not be loaded.
  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->tag($this->generateTags($tags$active$rootId$depth$request$response$context$criteria));
  7.             return CacheValueCompressor::compress($response);
in vendor/shopware/platform/src/Core/System/SystemConfig/SystemConfigService.php -> Shopware\Core\Content\Category\SalesChannel\{closure} (line 350)
  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.         $this->decoratedSystemConfigService->deleteExtensionConfiguration($extensionName$config);
  2.     }
  3.     public function trace(string $keyClosure $param)
  4.     {
  5.         return $this->decoratedSystemConfigService->trace($key$param);
  6.     }
  7.     public function getTrace(string $key): array
  8.     {
  9.         return $this->decoratedSystemConfigService->getTrace($key);
  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/platform/src/Core/Framework/Adapter/Translation/Translator.php -> Shopware\Core\Framework\Adapter\Cache\{closure} (line 120)
  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/platform/src/Core/Framework/Adapter/Cache/CacheTagCollection.php -> Shopware\Core\Framework\Adapter\Cache\{closure} (line 46)
  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/platform/src/Storefront/Theme/ThemeConfigValueAccessor.php -> Shopware\Storefront\Framework\Cache\{closure} (line 59)
  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->tag($this->generateTags($tags$active$rootId$depth$request$response$context$criteria));
  6.             return CacheValueCompressor::compress($response);
  7.         });
in vendor/symfony/cache-contracts/CacheTrait.php -> Shopware\Core\Content\Category\SalesChannel\{closure} (line 72)
  1.             }
  2.         }
  3.         if ($recompute) {
  4.             $save true;
  5.             $item->set($callback($item$save));
  6.             if ($save) {
  7.                 $pool->save($item);
  8.             }
  9.         }
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function get(string $key, callable $callbackfloat $beta null, array &$metadata null)
  5.     {
  6.         return $this->doGet($this$key$callback$beta$metadata);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             });
  2.             $item->tag($this->generateTags($tags$active$rootId$depth$request$response$context$criteria));
  3.             return CacheValueCompressor::compress($response);
  4.         });
  5.         return CacheValueCompressor::uncompress($value);
  6.     }
  7.     private function isActiveLoaded(string $rootCategoryCollection $categoriesstring $activeId): bool
  1.             }
  2.             $depth $request->query->getInt('depth'$request->request->getInt('depth'2));
  3.             // first we load the base navigation, the base navigation is shared for all storefront listings
  4.             $response $this->loadNavigation($request$rootId$rootId$depth$context$criteria, [self::ALL_TAGself::BASE_NAVIGATION_TAG]);
  5.             // no we have to check if the active category is loaded and the children of the active category are loaded
  6.             if ($this->isActiveLoaded($rootId$response->getCategories(), $activeId)) {
  7.                 return $response;
  8.             }
in vendor/shopware/platform/src/Core/Profiling/Profiler.php -> Shopware\Core\Content\Category\SalesChannel\{closure} (line 59)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.             $active $this->loadNavigation($request$activeId$rootId0$context$criteria, [self::ALL_TAG]);
  2.             $response->getCategories()->merge($active->getCategories());
  3.             return $response;
  4.         });
  5.     }
  6.     public static function buildName(string $id): string
  7.     {
  8.         return 'navigation-route-' $id;
  1.     {
  2.         $activeId $this->resolveAliasId($activeId$context->getSalesChannel());
  3.         $rootId $this->resolveAliasId($rootId$context->getSalesChannel());
  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.         $navigationId = (string) $request->query->get('navigationId'$context->getSalesChannel()->getNavigationCategoryId());
  2.         if (!$navigationId) {
  3.             throw new MissingRequestParameterException('navigationId');
  4.         }
  5.         $navigation $this->navigationLoader->load($navigationId$context$navigationId1);
  6.         $pagelet = new MenuOffcanvasPagelet($navigation);
  7.         $this->eventDispatcher->dispatch(
  8.             new MenuOffcanvasPageletLoadedEvent($pagelet$context$request)
  1.      * @HttpCache()
  2.      * @Route("/widgets/menu/offcanvas", name="frontend.menu.offcanvas", methods={"GET"}, defaults={"XmlHttpRequest"=true})
  3.      */
  4.     public function offcanvas(Request $requestSalesChannelContext $context): Response
  5.     {
  6.         $page $this->offcanvasLoader->load($request$context);
  7.         $header $this->headerPageletLoader->load($request$context);
  8.         $navigationId = (string)$request->query->get('navigationId'$context->getSalesChannel()->getNavigationCategoryId());
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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 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);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $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() in public/index.php (line 50)
  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 "00bdbaf1f7e74f048eba9aadfb7d9121" not found.

  at vendor/shopware/platform/src/Core/Content/Category/SalesChannel/NavigationRoute.php:213
  at Shopware\Core\Content\Category\SalesChannel\NavigationRoute->validate()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/NavigationRoute.php:81)
  at Shopware\Core\Content\Category\SalesChannel\NavigationRoute->load()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/CachedNavigationRoute.php:136)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->Shopware\Core\Content\Category\SalesChannel\{closure}()
     (vendor/shopware/platform/src/Core/System/SystemConfig/SystemConfigService.php:350)
  at Shopware\Core\System\SystemConfig\SystemConfigService->trace()
     (custom/plugins/PickwareErpStarter/vendor/pickware/shopware-extensions-bundle/src/Mail/SystemConfigServiceDecorator.php:137)
  at Pickware\ShopwareExtensionsBundle\Mail\SystemConfigServiceDecorator->trace()
     (vendor/shopware/platform/src/Core/Framework/Adapter/Cache/CacheTracer.php:44)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->Shopware\Core\Framework\Adapter\Cache\{closure}()
     (vendor/shopware/platform/src/Core/Framework/Adapter/Translation/Translator.php:120)
  at Shopware\Core\Framework\Adapter\Translation\Translator->trace()
     (vendor/shopware/platform/src/Core/Framework/Adapter/Cache/CacheTracer.php:45)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->Shopware\Core\Framework\Adapter\Cache\{closure}()
     (vendor/shopware/platform/src/Core/Framework/Adapter/Cache/CacheTagCollection.php:46)
  at Shopware\Core\Framework\Adapter\Cache\CacheTagCollection->trace()
     (vendor/shopware/platform/src/Core/Framework/Adapter/Cache/CacheTracer.php:46)
  at Shopware\Core\Framework\Adapter\Cache\CacheTracer->trace()
     (vendor/shopware/platform/src/Storefront/Framework/Cache/CacheTracer.php:41)
  at Shopware\Storefront\Framework\Cache\CacheTracer->Shopware\Storefront\Framework\Cache\{closure}()
     (vendor/shopware/platform/src/Storefront/Theme/ThemeConfigValueAccessor.php:59)
  at Shopware\Storefront\Theme\ThemeConfigValueAccessor->trace()
     (vendor/shopware/platform/src/Storefront/Framework/Cache/CacheTracer.php:42)
  at Shopware\Storefront\Framework\Cache\CacheTracer->trace()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/CachedNavigationRoute.php:137)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->Shopware\Core\Content\Category\SalesChannel\{closure}()
     (vendor/symfony/cache-contracts/CacheTrait.php:72)
  at Shopware\Core\Framework\Adapter\Cache\CacheDecorator->doGet()
     (vendor/symfony/cache-contracts/CacheTrait.php:35)
  at Shopware\Core\Framework\Adapter\Cache\CacheDecorator->get()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/CachedNavigationRoute.php:142)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->loadNavigation()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/CachedNavigationRoute.php:98)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->Shopware\Core\Content\Category\SalesChannel\{closure}()
     (vendor/shopware/platform/src/Core/Profiling/Profiler.php:59)
  at Shopware\Core\Profiling\Profiler::trace()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/CachedNavigationRoute.php:111)
  at Shopware\Core\Content\Category\SalesChannel\CachedNavigationRoute->load()
     (vendor/shopware/platform/src/Core/Content/Category/SalesChannel/TreeBuildingNavigationRoute.php:48)
  at Shopware\Core\Content\Category\SalesChannel\TreeBuildingNavigationRoute->load()
     (vendor/shopware/platform/src/Core/Content/Category/Service/NavigationLoader.php:68)
  at Shopware\Core\Content\Category\Service\NavigationLoader->load()
     (vendor/shopware/platform/src/Storefront/Pagelet/Menu/Offcanvas/MenuOffcanvasPageletLoader.php:52)
  at Shopware\Storefront\Pagelet\Menu\Offcanvas\MenuOffcanvasPageletLoader->load()
     (custom/plugins/CoffeeBTheme/src/Storefront/Controller/NavigationController.php:66)
  at CoffeeBTheme\Storefront\Controller\NavigationController->offcanvas()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:50)