exception |
TypeError {#15074 ▼
#message: "Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity::getCalculatedPrice(): Return value must be of type Shopware\Core\Checkout\Cart\Price\Struct\CalculatedPrice, null returned"
#code: 0
#file: "/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Content/Product/SalesChannel/SalesChannelProductEntity.php"
#line: 76
trace: {▶
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Content/Product/SalesChannel/SalesChannelProductEntity.php:76 {▶
Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity->getCalculatedPrice(): CalculatedPrice …
› {
› return $this->calculatedPrice;
› }
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/twig/twig/src/Extension/CoreExtension.php:1607 {▶
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› try {
› $ret = $object->$method(...$arguments);
› } catch (\BadMethodCallException $e) {
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Framework/Adapter/Twig/functions.php:39 {▶
Shopware\Core\Framework\Adapter\Twig\sw_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› } catch (\Throwable $e) {
› return twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck, $sandboxed, $lineno);
› } finally {
arguments: {▶
$env: Shopware\Core\Framework\Adapter\Twig\TwigEnvironment {#1482 …}
$source: Twig\Source {#14666 …}
$object: Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity {#13126 …}
$item: "calculatedPrice"
$arguments: []
$type: "any"
$isDefinedTest: false
$ignoreStrictCheck: false
$sandboxed: false
$lineno: 1
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/79/791d39f79c787dad3fc437a8ed95278329986416bb32ceb97f5e55d5ef9c73a6.php:70 {▶
__TwigTemplate_3fce57ce6788f86062deeda8954cb130171acd164ca9736322cc9d7cf2126c0b->doDisplay(array $context, array $blocks = []) …
› } else {
› echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["product"], "calculatedPrice", [], "any", false, false, false, 1), "unitPrice", [], "any", false, false, false, 1), "html", null, true);
› }
arguments: {▶
$env: Shopware\Core\Framework\Adapter\Twig\TwigEnvironment {#1482 …}
$source: Twig\Source {#14666 …}
$object: Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity {#13126 …}
$item: "calculatedPrice"
$arguments: []
$type: "any"
$isDefinedTest: false
$ignoreStrictCheck: false
$sandboxed: false
$lineno: 1
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/twig/twig/src/Template.php:394 {▶
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {▶
$context: [ …48]
$blocks: []
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/twig/twig/src/Template.php:367 {▶
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {▶
$context: [ …43]
$blocks: []
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/twig/twig/src/Template.php:379 {▶
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {▶
$context: [ …14]
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/twig/twig/src/TemplateWrapper.php:40 {▶
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
arguments: {▶
$context: [ …14]
...: {▶
[]
}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/WbmTagManagerEcomm/src/Services/DataLayerRenderer.php:54 {▶
Wbm\TagManagerEcomm\Services\DataLayerRenderer->renderDataLayer(string $route): DataLayerRendererInterface …
›
› $dataLayer = $template->render($this->getVariables($route));
› $dataLayer = preg_replace('/[[:cntrl:]]/', '', $dataLayer);
arguments: {▶
$context: [ …14]
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/WbmTagManagerEcomm/src/Subscriber/StorefrontRenderSubscriber.php:67 {▶
Wbm\TagManagerEcomm\Subscriber\StorefrontRenderSubscriber->onRender(StorefrontRenderEvent $event): void …
› if (array_key_exists($route, $modules)) {
› $dataLayer = $this->dataLayerRenderer->setVariables($route, $parameters)->renderDataLayer($route);
› $dataLayer = $dataLayer->getDataLayer($route);
arguments: {▶
$route: "frontend.navigation.page"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117 {▶
Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher): void …
›
› ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
›
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
...: {▶
"Shopware\Storefront\Event\StorefrontRenderEvent"
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#3127 …}
}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/event-dispatcher/EventDispatcher.php:230 {▶
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
$dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#3127 …}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/event-dispatcher/EventDispatcher.php:59 {▶
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object $event, string $eventName = null): object …
› if ($listeners) {
› $this->callListeners($listeners, $eventName, $event);
› }
arguments: {▶
$listeners: [ …15]
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:51 {▶
Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch($event, string $eventName = null): object …
› {
› $event = $this->dispatcher->dispatch($event, $eventName);
›
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:96 {▶
Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch($event, string $eventName = null): object …
› {
› $event = $this->dispatcher->dispatch($event, $eventName);
›
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Framework/Event/BusinessEventDispatcher.php:53 {▶
Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch($event, string $eventName = null): object …
› {
› $event = $this->dispatcher->dispatch($event, $eventName);
›
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:35 {▶
Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch($event, string $eventName = null): object …
›
› return $this->dispatcher->dispatch($event, $eventName);
› }
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154 {▶
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, string $eventName = null): object …
› try {
› $this->dispatcher->dispatch($event, $eventName);
› } finally {
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
$eventName: "Shopware\Storefront\Event\StorefrontRenderEvent"
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/storefront/Controller/StorefrontController.php:60 {▶
Shopware\Storefront\Controller\StorefrontController->renderStorefront(string $view, array $parameters = []): Response …
› }
› $this->container->get('event_dispatcher')->dispatch($event);
›
arguments: {▶
$event: Shopware\Storefront\Event\StorefrontRenderEvent {#13666 …}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/storefront/Controller/NavigationController.php:64 {▶
Shopware\Storefront\Controller\NavigationController->index(SalesChannelContext $context, Request $request): Response …
›
› return $this->renderStorefront('@Storefront/storefront/page/content/index.html.twig', ['page' => $page]);
› }
arguments: {▶
$view: "@Storefront/storefront/page/content/index.html.twig"
$parameters: [ …1]
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpKernel.php:152 {▶
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {▶
$context: Shopware\Core\System\SalesChannel\SalesChannelContext {#1014 …}
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpKernel.php:74 {▶
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
$type: 1
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/Kernel.php:202 {▶
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
$type: 1
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86 {▶
Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(HttpKernelInterface $kernel, Request $request, int $type, bool $catch): Response …
› try {
› return $kernel->handle($request, $type, $catch);
› } finally {
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
$type: 1
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:479 {▶
Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Request $request, bool $catch = false, Response $entry = null) …
› // always a "master" request (as the real master request can be in cache)
› $response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
›
arguments: {▶
$kernel: Shopware\Production\Kernel {#102 …}
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
$type: 1
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:452 {▶
Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Request $request, bool $catch = false) …
›
› $response = $this->forward($subRequest, $catch);
›
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#1816 …}
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:346 {▶
Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Request $request, bool $catch = false) …
›
› return $this->fetch($request, $catch);
› }
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#2363 …}
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:224 {▶
Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› } else {
› $response = $this->lookup($request, $catch);
› }
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#2363 …}
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/HttpKernel.php:153 {▶
Shopware\Core\HttpKernel->doHandle(Request $request, int $type, bool $catch): HttpKernelResult …
›
› $response = $kernel->handle($transformed, $type, $catch);
›
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#2363 …}
$type: 1
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/vendor/shopware/core/HttpKernel.php:79 {▶
Shopware\Core\HttpKernel->handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true): HttpKernelResult …
› try {
› return $this->doHandle($request, (int) $type, (bool) $catch);
› } catch (DBALException $e) {
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#5 …}
$type: 1
$catch: true
}
}
/srv/users/liamoriasw6/apps/liamoriasw6/public/index.php:74 {▶
›
› $result = $kernel->handle($request);
›
arguments: {▶
$request: Symfony\Component\HttpFoundation\Request {#5 …}
}
}
}
} |