Exceptions
Exception
Shopware\Core\Framework\Uuid\Exception\ InvalidUuidException
in
vendor/shopware/core/Framework/Uuid/Uuid.php
(line 92)
{
if ($bin = @hex2bin($uuid)) {
return $bin;
}
throw new InvalidUuidException($uuid);
}
/**
* Generates a md5 binary, to hash the string and returns a UUID in hex
*/
in
vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php
::
fromHexToBytes
(line 538)
$shiftedId = array_shift($id);
return Uuid::fromHexToBytes($shiftedId);
}
return Uuid::fromHexToBytes($id);
}, $primaryKeys);
}
if (!$primaryKeyField instanceof StorageAware) {
throw new \RuntimeException('Primary key fields has to be an instance of StorageAware');
EntityDefinitionQueryHelper->Shopware\Core\Framework\DataAbstractionLayer\Dbal\{closure}()
in
vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityDefinitionQueryHelper.php
array_map
(line 530)
}
if (!\is_array($primaryKeys[0]) || \count($primaryKeys[0]) === 1) {
$primaryKeyField = $definition->getPrimaryKeys()->first();
if ($primaryKeyField instanceof IdField || $primaryKeyField instanceof FkField) {
$primaryKeys = array_map(function ($id) {
if (\is_array($id)) {
/** @var string $shiftedId */
$shiftedId = array_shift($id);
return Uuid::fromHexToBytes($shiftedId);
in
vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php
->
addIdCondition
(line 309)
);
$this->joinBasic($definition, $context, $table, $query, $fields, $criteria, $partial);
if (!empty($criteria->getIds())) {
$this->queryHelper->addIdCondition($criteria, $definition, $query);
}
if ($criteria->getTitle()) {
$query->setTitle($criteria->getTitle() . '::read');
}
in
vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php
->
fetch
(line 148)
if ($definition->isInheritanceAware() && $criteria->hasAssociation('parent')) {
throw new ParentAssociationCanNotBeFetched();
}
$rows = $this->fetch($criteria, $definition, $context, $fields, $partial);
$collection = $this->hydrator->hydrate($collection, $definition->getEntityClass(), $definition, $rows, $definition->getEntityName(), $context, $partial);
$collection = $this->fetchAssociations($criteria, $definition, $context, $collection, $fields, $partial);
in
vendor/shopware/core/Framework/DataAbstractionLayer/Dbal/EntityReader.php
->
_read
(line 93)
$collectionClass = $definition->getCollectionClass();
$fields = $this->buildCriteriaFields($criteria, $definition);
return $this->_read(
$criteria,
$definition,
$context,
new $collectionClass(),
$definition->getFields()->getBasicFields(),
true,
in
vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php
->
read
(line 257)
*/
private function read(Criteria $criteria, Context $context): EntityCollection
{
$criteria = clone $criteria;
$entities = $this->reader->read($this->definition, $criteria, $context);
if ($this->eventFactory === null) {
throw new \RuntimeException('Event loaded factory was not injected');
}
in
vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php
->
read
(line 286)
if (!RepositorySearchDetector::isSearchRequired($this->definition, $criteria)) {
$this->eventDispatcher->dispatch(
new EntitySearchedEvent($criteria, $this->definition, $context)
);
$entities = $this->read($criteria, $context);
return new EntitySearchResult($this->definition->getEntityName(), $entities->count(), $entities, $aggregations, $criteria, $context);
}
$ids = $this->searchIds($criteria, $context);
in
vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php
->
_search
(line 106)
}
public function search(Criteria $criteria, Context $context): EntitySearchResult
{
if (!$criteria->getTitle()) {
return $this->_search($criteria, $context);
}
return Profiler::trace($criteria->getTitle(), function () use ($criteria, $context) {
return $this->_search($criteria, $context);
}, 'repository');
in
vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepositoryForwardCompatibilityDecorator.php
->
search
(line 51)
return $this->inner->clone($id, $context, $newId, $behavior);
}
public function search(Criteria $criteria, Context $context): EntitySearchResult
{
return $this->inner->search($criteria, $context);
}
public function update(array $data, Context $context): EntityWrittenContainerEvent
{
return $this->inner->update($data, $context);
in
vendor/shopware/core/Content/Cms/SalesChannel/SalesChannelCmsPageLoader.php
->
search
(line 59)
$criteria->addAssociation('sections.backgroundMedia');
$criteria->addAssociation('sections.blocks.backgroundMedia');
$criteria->addAssociation('sections.blocks.slots');
// step 1, load cms pages with blocks and slots
$pages = $this->cmsPageRepository->search($criteria, $context->getContext());
foreach ($pages as $page) {
if ($page->getSections() === null) {
continue;
}
in
vendor/shopware/core/Content/Cms/SalesChannel/CmsRoute.php
->
load
(line 60)
$criteria
->getAssociation('sections.blocks')
->addFilter(new EqualsAnyFilter('slots.id', $slots));
}
$pages = $this->cmsPageLoader->load($request, $criteria, $context);
if (!$pages->has($id)) {
throw new PageNotFoundException($id);
}
in
vendor/shopware/storefront/Controller/CmsController.php
->
load
(line 92)
{
if (!$id) {
throw new MissingRequestParameterException('id');
}
$page = $this->cmsRoute->load($id, $request, $salesChannelContext)->getCmsPage();
$this->hook(new CmsPageLoadedHook($page, $salesChannelContext));
$response = $this->renderStorefront('@Storefront/storefront/page/content/detail.html.twig', ['cmsPage' => $page]);
$response->headers->set('x-robots-tag', 'noindex');
in
vendor/symfony/http-kernel/HttpKernel.php
->
page
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/shopware/core/HttpKernel.php
->
handle
(line 156)
&& $container->getParameter('shopware.http.cache.enabled');
if ($enabled && $container->has(CacheStore::class)) {
$kernel = new static::$httpCacheClass($kernel, $container->get(CacheStore::class), null, ['debug' => $this->debug]);
}
$response = $kernel->handle($transformed, $type, $catch);
// fire event to trigger runtime events like seo url headers
$event = new BeforeSendResponseEvent($transformed, $response);
$container->get('event_dispatcher')->dispatch($event);
in
vendor/shopware/core/HttpKernel.php
->
doHandle
(line 81)
if (!\is_bool($catch)) {
Feature::triggerDeprecationOrThrow('v6.5.0.0', 'The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
}
try {
return $this->doHandle($request, (int) $type, (bool) $catch);
} catch (Exception $e) {
/** @var Params|array{url?: string} $connectionParams */
$connectionParams = self::getConnection()->getParams();
$message = str_replace([$connectionParams['url'] ?? null, $connectionParams['password'] ?? null, $connectionParams['user'] ?? null], '******', $e->getMessage());
if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? false) {
$kernel->setPluginLoader(new \Shopware\Core\Framework\Plugin\KernelPluginLoader\ComposerPluginLoader($classLoader));
}
$result = $kernel->handle($request);
$result->getResponse()->send();
$kernel->terminate($result->getRequest(), $result->getResponse());
Logs
Level | Channel | Message |
---|---|---|
INFO 07:57:07 | 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?panel=exception&q=%2F_profiler%2F6c3e53", "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) |