Exceptions

Value is not a valid UUID: {{ path('frontend.cms.page', { id: shopware.config.core.basicInformation.contactPage }) }}

Exception

Shopware\Core\Framework\Uuid\Exception\ InvalidUuidException

  1.     {
  2.         if ($bin = @hex2bin($uuid)) {
  3.             return $bin;
  4.         }
  5.         throw new InvalidUuidException($uuid);
  6.     }
  7.     /**
  8.      * Generates a md5 binary, to hash the string and returns a UUID in hex
  9.      */
  1.                         $shiftedId array_shift($id);
  2.                         return Uuid::fromHexToBytes($shiftedId);
  3.                     }
  4.                     return Uuid::fromHexToBytes($id);
  5.                 }, $primaryKeys);
  6.             }
  7.             if (!$primaryKeyField instanceof StorageAware) {
  8.                 throw new \RuntimeException('Primary key fields has to be an instance of StorageAware');
EntityDefinitionQueryHelper->Shopware\Core\Framework\DataAbstractionLayer\Dbal\{closure}()
  1.         }
  2.         if (!\is_array($primaryKeys[0]) || \count($primaryKeys[0]) === 1) {
  3.             $primaryKeyField $definition->getPrimaryKeys()->first();
  4.             if ($primaryKeyField instanceof IdField || $primaryKeyField instanceof FkField) {
  5.                 $primaryKeys array_map(function ($id) {
  6.                     if (\is_array($id)) {
  7.                         /** @var string $shiftedId */
  8.                         $shiftedId array_shift($id);
  9.                         return Uuid::fromHexToBytes($shiftedId);
  1.         );
  2.         $this->joinBasic($definition$context$table$query$fields$criteria$partial);
  3.         if (!empty($criteria->getIds())) {
  4.             $this->queryHelper->addIdCondition($criteria$definition$query);
  5.         }
  6.         if ($criteria->getTitle()) {
  7.             $query->setTitle($criteria->getTitle() . '::read');
  8.         }
  1.         if ($definition->isInheritanceAware() && $criteria->hasAssociation('parent')) {
  2.             throw new ParentAssociationCanNotBeFetched();
  3.         }
  4.         $rows $this->fetch($criteria$definition$context$fields$partial);
  5.         $collection $this->hydrator->hydrate($collection$definition->getEntityClass(), $definition$rows$definition->getEntityName(), $context$partial);
  6.         $collection $this->fetchAssociations($criteria$definition$context$collection$fields$partial);
  1.         $collectionClass $definition->getCollectionClass();
  2.         $fields $this->buildCriteriaFields($criteria$definition);
  3.         return $this->_read(
  4.             $criteria,
  5.             $definition,
  6.             $context,
  7.             new $collectionClass(),
  8.             $definition->getFields()->getBasicFields(),
  9.             true,
  1.      */
  2.     private function read(Criteria $criteriaContext $context): EntityCollection
  3.     {
  4.         $criteria = clone $criteria;
  5.         $entities $this->reader->read($this->definition$criteria$context);
  6.         if ($this->eventFactory === null) {
  7.             throw new \RuntimeException('Event loaded factory was not injected');
  8.         }
  1.         if (!RepositorySearchDetector::isSearchRequired($this->definition$criteria)) {
  2.             $this->eventDispatcher->dispatch(
  3.                 new EntitySearchedEvent($criteria$this->definition$context)
  4.             );
  5.             $entities $this->read($criteria$context);
  6.             return new EntitySearchResult($this->definition->getEntityName(), $entities->count(), $entities$aggregations$criteria$context);
  7.         }
  8.         $ids $this->searchIds($criteria$context);
  1.     }
  2.     public function search(Criteria $criteriaContext $context): EntitySearchResult
  3.     {
  4.         if (!$criteria->getTitle()) {
  5.             return $this->_search($criteria$context);
  6.         }
  7.         return Profiler::trace($criteria->getTitle(), function () use ($criteria$context) {
  8.             return $this->_search($criteria$context);
  9.         }, 'repository');
  1.         return $this->inner->clone($id$context$newId$behavior);
  2.     }
  3.     public function search(Criteria $criteriaContext $context): EntitySearchResult
  4.     {
  5.         return $this->inner->search($criteria$context);
  6.     }
  7.     public function update(array $dataContext $context): EntityWrittenContainerEvent
  8.     {
  9.         return $this->inner->update($data$context);
  1.         $criteria->addAssociation('sections.backgroundMedia');
  2.         $criteria->addAssociation('sections.blocks.backgroundMedia');
  3.         $criteria->addAssociation('sections.blocks.slots');
  4.         // step 1, load cms pages with blocks and slots
  5.         $pages $this->cmsPageRepository->search($criteria$context->getContext());
  6.         foreach ($pages as $page) {
  7.             if ($page->getSections() === null) {
  8.                 continue;
  9.             }
  1.             $criteria
  2.                 ->getAssociation('sections.blocks')
  3.                 ->addFilter(new EqualsAnyFilter('slots.id'$slots));
  4.         }
  5.         $pages $this->cmsPageLoader->load($request$criteria$context);
  6.         if (!$pages->has($id)) {
  7.             throw new PageNotFoundException($id);
  8.         }
  1.     {
  2.         if (!$id) {
  3.             throw new MissingRequestParameterException('id');
  4.         }
  5.         $page $this->cmsRoute->load($id$request$salesChannelContext)->getCmsPage();
  6.         $this->hook(new CmsPageLoadedHook($page$salesChannelContext));
  7.         $response $this->renderStorefront('@Storefront/storefront/page/content/detail.html.twig', ['cmsPage' => $page]);
  8.         $response->headers->set('x-robots-tag''noindex');
  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);
in vendor/shopware/core/HttpKernel.php -> doHandle (line 81)
  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 75)
  1. if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? false) {
  2.     $kernel->setPluginLoader(new \Shopware\Core\Framework\Plugin\KernelPluginLoader\ComposerPluginLoader($classLoader));
  3. }
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

Logs

Level Channel Message
INFO 07:55:36 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://bodymed-shop.madco-lab.de/_profiler/latest?ip=18.116.87.225&q=%2F_profiler%2F6c3e53%2Fsearch%2Fresults",
    "method": "GET"
}

Stack Trace

InvalidUuidException
Shopware\Core\Framework\Uuid\Exception\InvalidUuidException:
Value is not a valid UUID: {{ path('frontend.cms.page', { id: shopware.config.core.basicInformation.contactPage }) }}

  at vendor/shopware/core/Framework/Uuid/Uuid.php:92
  at Shopware\Core\Framework\Uuid\Uuid::fromHexToBytes()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php:538)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper->Shopware\Core\Framework\DataAbstractionLayer\Dbal\{closure}()
  at array_map()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php:530)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper->addIdCondition()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:309)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->fetch()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:148)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->_read()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:93)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->read()
     (vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:257)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->read()
     (vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:286)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->_search()
     (vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:106)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->search()
     (vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepositoryForwardCompatibilityDecorator.php:51)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryForwardCompatibilityDecorator->search()
     (vendor/shopware/core/Content/Cms/SalesChannel/SalesChannelCmsPageLoader.php:59)
  at Shopware\Core\Content\Cms\SalesChannel\SalesChannelCmsPageLoader->load()
     (vendor/shopware/core/Content/Cms/SalesChannel/CmsRoute.php:60)
  at Shopware\Core\Content\Cms\SalesChannel\CmsRoute->load()
     (vendor/shopware/storefront/Controller/CmsController.php:92)
  at Shopware\Storefront\Controller\CmsController->page()
     (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/core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:75)