Symfony Exception

InvalidUuidException

HTTP 400 Bad Request

Value is not a valid UUID: LED-Profile

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.             $primaryKeyField $definition->getPrimaryKeys()->first();
  2.             /** @feature-deprecated (flag:FEATURE_NEXT_14872) remove FeatureCheck
  3.              * if ($primaryKeyField instanceof IdField || $primaryKeyField instanceof FkField) {
  4.              */
  5.             if ($primaryKeyField instanceof IdField || (Feature::isActive('FEATURE_NEXT_14872') && $primaryKeyField instanceof FkField)) {
  6.                 $primaryKeys array_map(function ($id) {
  7.                     if (\is_array($id)) {
  8.                         /** @var string $shiftedId */
  9.                         $shiftedId array_shift($id);
  10.                         return Uuid::fromHexToBytes($shiftedId);
  1.         );
  2.         $this->joinBasic($definition$context$table$query$fields$criteria);
  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);
  5.         $collection $this->hydrator->hydrate($collection$definition->getEntityClass(), $definition$rows$definition->getEntityName(), $context);
  6.         $collection $this->fetchAssociations($criteria$definition$context$collection$fields);
  1.         return $this->_read(
  2.             $criteria,
  3.             $definition,
  4.             $context,
  5.             new $collectionClass(),
  6.             $definition->getFields()->getBasicFields()
  7.         );
  8.     }
  9.     protected function getParser(): SqlQueryParser
  10.     {
  1.         return $event;
  2.     }
  3.     private function read(Criteria $criteriaContext $context): EntityCollection
  4.     {
  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.             ->getAssociation('sections.blocks')
  2.             ->addAssociation('backgroundMedia')
  3.             ->addAssociation('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.         SalesChannelContext $context,
  2.         ?array $config null,
  3.         ?ResolverContext $resolverContext null
  4.     ): EntitySearchResult {
  5.         return $this->inner->load(
  6.             $request,
  7.             $this->addQuickviewAssociation($criteria),
  8.             $context,
  9.             $config,
  10.             $resolverContext
  11.         );
  1.         SalesChannelContext $context,
  2.         ?array $config null,
  3.         ?ResolverContext $resolverContext null
  4.     ): EntitySearchResult {
  5.         return $this->inner->load(
  6.             $request,
  7.             $this->addScrollNavigationAssociations($criteria),
  8.             $context,
  9.             $config,
  10.             $resolverContext
  11.         );
  1.         SalesChannelContext $context,
  2.         ?array $config null,
  3.         ?ResolverContext $resolverContext null
  4.     ): EntitySearchResult {
  5.         $pages $this->inner->load(
  6.             $request,
  7.             $this->addBlockRuleAssociations($criteria),
  8.             $context,
  9.             $config,
  10.             $resolverContext
  11.         );
SalesChannelCmsPageLoaderBlockRuleDecorator->load() in custom/plugins/ElioBlog/src/Controller/BlogController.php (line 132)
  1.     {
  2.         $page $this->genericLoader->load($request$context);
  3.         $page NavigationPage::createFrom($page);
  4.         if ($cmsPageId) {
  5.             $pages $this->cmsPageLoader->load($request, new Criteria([$cmsPageId]), $context);
  6.             if (!$pages->has($cmsPageId)) {
  7.                 throw new PageNotFoundException($cmsPageId);
  8.             }
BlogController->loadDetailPage() in custom/plugins/ElioBlog/src/Controller/BlogController.php (line 114)
  1.     {
  2.         if (!$cmsPageId) {
  3.             throw new MissingRequestParameterException('cmsPageId');
  4.         }
  5.         $page $this->loadDetailPage($cmsPageId$context$request);
  6.         return $this->renderStorefront('@Storefront/storefront/page/content/index.html.twig', ['page' => $page]);
  7.     }
  8.     /**
  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) {
  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 83)
  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

InvalidUuidException
Shopware\Core\Framework\Uuid\Exception\InvalidUuidException:
Value is not a valid UUID: LED-Profile

  at vendor/shopware/core/Framework/Uuid/Uuid.php:90
  at Shopware\Core\Framework\Uuid\Uuid::fromHexToBytes()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php:518)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper->Shopware\Core\Framework\DataAbstractionLayer\Dbal\{closure}()
  at array_map()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php:510)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper->addIdCondition()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:267)
  at Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityReader->fetch()
     (vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php:122)
  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:270)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->read()
     (vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:115)
  at Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->search()
     (vendor/shopware/core/Content/Cms/SalesChannel/SalesChannelCmsPageLoader.php:58)
  at Shopware\Core\Content\Cms\SalesChannel\SalesChannelCmsPageLoader->load()
     (custom/plugins/SwagCmsExtensions/src/Service/Content/Cms/SalesChannel/SalesChannelCmsPageLoaderQuickviewDecorator.php:40)
  at Swag\CmsExtensions\Service\Content\Cms\SalesChannel\SalesChannelCmsPageLoaderQuickviewDecorator->load()
     (custom/plugins/SwagCmsExtensions/src/Service/Content/Cms/SalesChannel/SalesChannelCmsPageLoaderScrollNavigationDecorator.php:42)
  at Swag\CmsExtensions\Service\Content\Cms\SalesChannel\SalesChannelCmsPageLoaderScrollNavigationDecorator->load()
     (custom/plugins/SwagCmsExtensions/src/Service/Content/Cms/SalesChannel/SalesChannelCmsPageLoaderBlockRuleDecorator.php:45)
  at Swag\CmsExtensions\Service\Content\Cms\SalesChannel\SalesChannelCmsPageLoaderBlockRuleDecorator->load()
     (custom/plugins/ElioBlog/src/Controller/BlogController.php:132)
  at Elio\ElioBlog\Controller\BlogController->loadDetailPage()
     (custom/plugins/ElioBlog/src/Controller/BlogController.php:114)
  at Elio\ElioBlog\Controller\BlogController->detail()
     (vendor/symfony/http-kernel/HttpKernel.php:156)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:78)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:199)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/shopware/core/HttpKernel.php:178)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:83)