Exceptions

Value is not a valid UUID: 5bb4be65104841f0a0ca6bba9fd30da1=

  • 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.     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.     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.         // If an aggregation is to be created on a to many association that is already stored as a filter.
  2.         // The association is therefore referenced twice in the query and would have to be created as a sub-join in each case. But since only the filters are considered, the association is referenced only once.
  3.         // In this case we add the aggregation field as path to the criteria builder and the join group builder will consider this path for the sub-join logic
  4.         $paths array_filter([$this->findToManyPath($aggregation$definition)]);
  5.         $query $this->criteriaQueryBuilder->build($query$definition$clone$context$paths);
  6.         $query->resetQueryPart('orderBy');
  7.         if ($criteria->getTitle()) {
  8.             $query->setTitle($criteria->getTitle() . '::aggregation::' $aggregation->getName());
  9.         }
  1.     public function aggregate(EntityDefinition $definitionCriteria $criteriaContext $context): AggregationResultCollection
  2.     {
  3.         $aggregations = new AggregationResultCollection();
  4.         foreach ($criteria->getAggregations() as $aggregation) {
  5.             $result $this->fetchAggregation($aggregation$definition$criteria$context);
  6.             $aggregations->add($result);
  7.         }
  8.         return $aggregations;
  9.     }
  1.     }
  2.     public function aggregate(EntityDefinition $definitionCriteria $criteriaContext $context): AggregationResultCollection
  3.     {
  4.         if (!$this->helper->allowSearch($definition$context)) {
  5.             return $this->decorated->aggregate($definition$criteria$context);
  6.         }
  7.         $search $this->createSearch($definition$criteria$context);
  8.         $this->eventDispatcher->dispatch(
  1.     {
  2.         $title $criteria->getTitle() ?? $definition->getEntityName();
  3.         $this->stopwatch->start('aggregate:' $title);
  4.         $data $this->decorated->aggregate($definition$criteria$context);
  5.         $this->stopwatch->stop('aggregate:' $title);
  6.         return $data;
  7.     }
  1.     public function aggregate(Criteria $criteriaContext $context): AggregationResultCollection
  2.     {
  3.         $criteria = clone $criteria;
  4.         $result $this->aggregator->aggregate($this->definition, clone $criteria$context);
  5.         $event = new EntityAggregationResultLoadedEvent($this->definition$result$context);
  6.         $this->eventDispatcher->dispatch($event$event->getName());
  7.         return $result;
  1.     public function search(Criteria $criteriaContext $context): EntitySearchResult
  2.     {
  3.         $criteria = clone $criteria;
  4.         $aggregations null;
  5.         if ($criteria->getAggregations()) {
  6.             $aggregations $this->aggregate($criteria$context);
  7.         }
  8.         if (!RepositorySearchDetector::isSearchRequired($this->definition$criteria)) {
  9.             $this->eventDispatcher->dispatch(
  10.                 new EntitySearchedEvent($criteria$this->definition$context)
  1.                     new EqualsFilter('product.parentId'$productId),
  2.                 ]),
  3.             ])
  4.         );
  5.         $result $this->repository->search($criteria$context->getContext());
  6.         return new ProductReviewRouteResponse($result);
  7.     }
  8. }
  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\Review\{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.         }
  2.         $criteria $this->createCriteria($request$context);
  3.         $reviews $this->route
  4.             ->load($productId$request$context$criteria)
  5.             ->getResult();
  6.         $reviews StorefrontSearchResult::createFrom($reviews);
  7.         $this->eventDispatcher->dispatch(new ProductReviewsLoadedEvent($reviews$context$request));
  1.      */
  2.     public function loadReviews(Request $requestRequestDataBag $dataSalesChannelContext $context): Response
  3.     {
  4.         $this->checkReviewsActive($context);
  5.         $reviews $this->productReviewLoader->load($request$context);
  6.         $this->hook(new ProductReviewsWidgetLoadedHook($reviews$context));
  7.         return $this->renderStorefront('storefront/page/product-detail/review/review.html.twig', [
  8.             'reviews' => $reviews,
in vendor/symfony/http-kernel/HttpKernel.php -> loadReviews (line 152)
  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());