https://daimler-truck-shop.de/staging/detail/4b6608927cb84bc1a8cdae104a842edb&amp

Exceptions

Value is not a valid UUID: 4b6608927cb84bc1a8cdae104a842edb&amp

  • Exception
  • Logs
  • Stack Trace

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.             return $result;
  2.         }
  3.         if ($field instanceof IdField || $field instanceof FkField) {
  4.             $value Uuid::fromHexToBytes($value);
  5.         }
  6.         $result->addParameter($key$value);
  7.         return $result;
  1.             return $result;
  2.         }
  3.         switch (true) {
  4.             case $query instanceof EqualsFilter:
  5.                 return $this->parseEqualsFilter($query$definition$root$context$negated);
  6.             case $query instanceof EqualsAnyFilter:
  7.                 return $this->parseEqualsAnyFilter($query$definition$root$context);
  8.             case $query instanceof ContainsFilter:
  9.                 return $this->parseContainsFilter($query$definition$root$context);
  10.             case $query instanceof PrefixFilter:
  1.     private function iterateNested(MultiFilter $queryEntityDefinition $definitionstring $rootContext $contextbool $negated): ParseResult
  2.     {
  3.         $result = new ParseResult();
  4.         foreach ($query->getQueries() as $multiFilter) {
  5.             $result $result->merge(
  6.                 $this->parse($multiFilter$definition$context$root$negated)
  7.             );
  8.         }
  9.         return $result;
  10.     }
  1.         return $result;
  2.     }
  3.     private function parseMultiFilter(MultiFilter $queryEntityDefinition $definitionstring $rootContext $contextbool $negated): ParseResult
  4.     {
  5.         $result $this->iterateNested($query$definition$root$context$negated);
  6.         $wheres $result->getWheres();
  7.         $result->resetWheres();
  1.             case $query instanceof RangeFilter:
  2.                 return $this->parseRangeFilter($query$definition$root$context);
  3.             case $query instanceof NotFilter:
  4.                 return $this->parseNotFilter($query$definition$root$context);
  5.             case $query instanceof MultiFilter:
  6.                 return $this->parseMultiFilter($query$definition$root$context$negated);
  7.             default:
  8.                 throw new \RuntimeException(sprintf('Unsupported query %s', \get_class($query)));
  9.         }
  10.     }
  1.     {
  2.         if (!$filter) {
  3.             return;
  4.         }
  5.         $parsed $this->parser->parse($filter$definition$context);
  6.         if (empty($parsed->getWheres())) {
  7.             return;
  8.         }
  1.         $filter = new AndFilter(array_merge(
  2.             $criteria->getFilters(),
  3.             $criteria->getPostFilters()
  4.         ));
  5.         $this->addFilter($definition$filter$query$context);
  6.         $this->addQueries($definition$criteria$query$context);
  7.         if ($criteria->getLimit() === 1) {
  8.             $query->removeState(EntityDefinitionQueryHelper::HAS_TO_MANY_JOIN);
  1.             $query->addSelect(
  2.                 EntityDefinitionQueryHelper::escape($table) . '.' EntityDefinitionQueryHelper::escape($field->getStorageName())
  3.             );
  4.         }
  5.         $query $this->criteriaQueryBuilder->build($query$definition$criteria$context);
  6.         if (!empty($criteria->getIds())) {
  7.             $this->queryHelper->addIdCondition($criteria$definition$query);
  8.         }
  1.     }
  2.     public function search(EntityDefinition $definitionCriteria $criteriaContext $context): IdSearchResult
  3.     {
  4.         if (!$this->helper->allowSearch($definition$context)) {
  5.             return $this->decorated->search($definition$criteria$context);
  6.         }
  7.         $search $this->createSearch($criteria$definition$context);
  8.         $this->eventDispatcher->dispatch(
  1.     public function search(EntityDefinition $definitionCriteria $criteriaContext $context): IdSearchResult
  2.     {
  3.         if ($definition instanceof SalesChannelProductDefinition) {
  4.             $clone = clone $criteria;
  5.             $clone->assign(['searchOnlyInProductNumber' => true]);
  6.             $result $this->inner->search($definition$clone$context);
  7.             if ($result->getTotal()) {
  8.                 return $result;
  9.             }
  10.         }
  11.         return $this->inner->search($definition$criteria$context);
  1.     {
  2.         $title $criteria->getTitle() ?? $definition->getEntityName();
  3.         $this->stopwatch->start('search:' $title);
  4.         $data $this->decorated->search($definition$criteria$context);
  5.         $this->stopwatch->stop('search:' $title);
  6.         return $data;
  7.     }
  1.         return $entities;
  2.     }
  3.     private function doSearch(Criteria $criteriaSalesChannelContext $salesChannelContext): IdSearchResult
  4.     {
  5.         $result $this->searcher->search($this->definition$criteria$salesChannelContext->getContext());
  6.         $event = new SalesChannelEntityIdSearchResultLoadedEvent($this->definition$result$salesChannelContext);
  7.         $this->eventDispatcher->dispatch($event$event->getName());
  8.         return $result;
  1.     {
  2.         $criteria = clone $criteria;
  3.         $this->processCriteria($criteria$salesChannelContext);
  4.         return $this->doSearch($criteria$salesChannelContext);
  5.     }
  6.     private function read(Criteria $criteriaSalesChannelContext $salesChannelContext): EntityCollection
  7.     {
  8.         $criteria = clone $criteria;
  1.             ->addFilter(new EqualsFilter('product.parentId'$productId))
  2.             ->addSorting(new FieldSorting('product.price'))
  3.             ->addSorting(new FieldSorting('product.available'))
  4.             ->setLimit(1);
  5.         $variantId $this->productRepository->searchIds($criteria$context);
  6.         return $variantId->firstId() ?? $productId;
  7.     }
  8.     private function createCriteria(string $pageIdRequest $request): Criteria
  1.      * )
  2.      * @Route("/store-api/product/{productId}", name="store-api.product.detail", methods={"POST"})
  3.      */
  4.     public function load(string $productIdRequest $requestSalesChannelContext $contextCriteria $criteria): ProductDetailRouteResponse
  5.     {
  6.         $productId $this->findBestVariant($productId$context);
  7.         $this->addFilters($context$criteria);
  8.         $criteria->setIds([$productId]);
  1.         $this->logger->info('cache-miss: ' self::buildName($productId));
  2.         $name self::buildName($productId);
  3.         $response $this->tracer->trace($name, function () use ($productId$request$context$criteria) {
  4.             return $this->getDecorated()->load($productId$request$context$criteria);
  5.         });
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag($this->generateTags($productId$request$response$context$criteria));
in vendor/shopware/core/System/SystemConfig/SystemConfigService.php -> Shopware\Core\Content\Product\SalesChannel\Detail\{closure} (line 326)
  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.     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.         $this->logger->info('cache-miss: ' self::buildName($productId));
  2.         $name self::buildName($productId);
  3.         $response $this->tracer->trace($name, function () use ($productId$request$context$criteria) {
  4.             return $this->getDecorated()->load($productId$request$context$criteria);
  5.         });
  6.         $item CacheCompressor::compress($item$response);
  7.         $item->tag($this->generateTags($productId$request$response$context$criteria));
  1.             ->addAssociation('mainCategories.category')
  2.             ->addAssociation('media');
  3.         $this->eventDispatcher->dispatch(new ProductPageCriteriaEvent($productId$criteria$context));
  4.         $result $this->productDetailRoute->load($productId$request$context$criteria);
  5.         $product $result->getProduct();
  6.         if ($product->getMedia() !== null) {
  7.             $product->getMedia()->sort(function (ProductMediaEntity $aProductMediaEntity $b) {
  8.                 return $a->getPosition() <=> $b->getPosition();
  1.      * @HttpCache()
  2.      * @Route("/detail/{productId}", name="frontend.detail.page", methods={"GET"})
  3.      */
  4.     public function index(SalesChannelContext $contextRequest $request): Response
  5.     {
  6.         $page $this->productPageLoader->load($request$context);
  7.         $this->hook(new ProductPageLoadedHook($page$context));
  8.         $ratingSuccess $request->get('success');
  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.         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.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  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 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 69)
  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());