Error 500 Internal Server Error

GET https://staging.gourmops.de/

Forwarded to ErrorController (0b2f56)

Exceptions

An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cart.payload' in 'field list'

Doctrine\DBAL\Exception\ InvalidFieldNameException

Show exception properties
0 of 0
Doctrine\DBAL\Exception\InvalidFieldNameException {#3359 â–¼ -query: Doctrine\DBAL\Query {#3365 â–¶ -sql: """ #cart-persister::load\n SELECT `cart`.`payload`, `cart`.`rule_ids`, `cart`.`compressed` FROM cart WHERE `token` = ? """ -params: array:1 [â–¶ 0 => "PmY1YSiKxPb8JNstchc5c3nRGt1m8tyN" ] -types: [] } }
  1.                 return new UniqueConstraintViolationException($exception$query);
  2.             case 1054:
  3.             case 1166:
  4.             case 1611:
  5.                 return new InvalidFieldNameException($exception$query);
  6.             case 1052:
  7.             case 1060:
  8.             case 1110:
  9.                 return new NonUniqueFieldNameException($exception$query);
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  $this->exceptionConverter->convert($driverException$query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1918)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql$params$types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Connection.php -> convertExceptionDuringQuery (line 1111)
  1.                 $result $connection->query($sql);
  2.             }
  3.             return new Result($result$this);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertExceptionDuringQuery($e$sql$params$types);
  6.         } finally {
  7.             if ($logger !== null) {
  8.                 $logger->stopQuery();
  9.             }
  10.         }
in vendor/doctrine/dbal/src/Connection.php -> executeQuery (line 593)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function fetchAssociative(string $query, array $params = [], array $types = [])
  5.     {
  6.         return $this->executeQuery($query$params$types)->fetchAssociative();
  7.     }
  8.     /**
  9.      * Prepares and executes an SQL query and returns the first row of the result
  10.      * as a numerically indexed array.
  1.         throw new DecorationPatternException(self::class);
  2.     }
  3.     public function load(string $tokenSalesChannelContext $context): Cart
  4.     {
  5.         $content $this->connection->fetchAssociative(
  6.             '#cart-persister::load
  7.             SELECT `cart`.`payload`, `cart`.`rule_ids`, `cart`.`compressed` FROM cart WHERE `token` = :token',
  8.             ['token' => $token]
  9.         );
  1.     }
  2.     public function loadByToken(SalesChannelContext $contextstring $cartToken): RuleLoaderResult
  3.     {
  4.         try {
  5.             $cart $this->cartPersister->load($cartToken$context);
  6.             return $this->load($context$cart, new CartBehavior($context->getPermissions()), false);
  7.         } catch (CartTokenNotFoundException) {
  8.             $cart $this->cartFactory->createNew($cartToken);
  1.             }
  2.             $context $this->factory->create($token$parameters->getSalesChannelId(), $session);
  3.             $this->eventDispatcher->dispatch(new SalesChannelContextCreatedEvent($context$token$session));
  4.             $result $this->ruleLoader->loadByToken($context$token);
  5.             $this->cartService->setCart($result->getCart());
  6.             return $context;
  7.         });
in vendor/shopware/core/Profiling/Profiler.php -> Shopware\Core\System\SalesChannel\Context\{closure} (line 67)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.     ) {
  2.     }
  3.     public function get(SalesChannelContextServiceParameters $parameters): SalesChannelContext
  4.     {
  5.         return Profiler::trace('sales-channel-context', function () use ($parameters) {
  6.             $token $parameters->getToken();
  7.             $session $this->contextPersister->load($token$parameters->getSalesChannelId());
  8.             if ($session['expired'] ?? false) {
  1.             $request->attributes->get(SalesChannelRequest::ATTRIBUTE_DOMAIN_ID),
  2.             null,
  3.             null,
  4.             $session?->get(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID)
  5.         );
  6.         $context $this->contextService->get($contextServiceParameters);
  7.         // Remove imitating user id from session, if there is no customer
  8.         if ($session && $context->getImitatingUserId() && !$context->getCustomerId()) {
  9.             $session->remove(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID);
  10.             $context->setImitatingUserId(null);
  1.         ];
  2.     }
  3.     public function resolveContext(ControllerEvent $event): void
  4.     {
  5.         $this->requestContextResolver->resolve($event->getRequest());
  6.     }
  7. }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new ControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller$event->getControllerReflector());
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.             $this->dispatcher->dispatch($event);
  2.             return $event->getResponse();
  3.         }
  4.         return parent::handle($request$type$catch);
  5.     }
  6. }
  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.     protected function forward(Request $requestbool $catch false, ?Response $entry null): Response
  2.     {
  3.         $this->surrogate?->addSurrogateCapability($request);
  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.         // only handle main request inside http cache, because ESI tags are also interpreted as main request.
  2.         // sub requests are requests, which are forwarded to the kernel inside the php stack
  3.         // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894
  4.         if ($type === HttpKernelInterface::MAIN_REQUEST) {
  5.             $response parent::handle($request$type$catch);
  6.         } elseif ($request->attributes->has('_sw_esi')) {
  7.             $response parent::handle($request$type$catch);
  8.         } else {
  9.             $response $this->getKernel()->handle($request$type$catch);
  10.         }
in vendor/shopware/core/Kernel.php -> handle (line 155)
  1.     {
  2.         if (!$this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     public function boot(): void
  8.     {
  9.         if ($this->booted === true) {
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/gourmops.de/staging.gourmops.de/vendor/autoload_runtime.php') in public/index.php (line 10)
  1. use Shopware\Core\Installer\InstallerKernel;
  2. use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cart.payload' in 'field list'

  1.         } else {
  2.             $code     $exception->getCode();
  3.             $sqlState null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState$code$exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  9. }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute($params null): Result
  5.     {
  6.         return $this->wrappedStatement->execute($params);
  7.     }
  8. }
  1.         $this->stopwatch?->start('doctrine''doctrine');
  2.         $query->start();
  3.         try {
  4.             return parent::execute($params);
  5.         } finally {
  6.             $query->stop();
  7.             $this->stopwatch?->stop('doctrine');
  8.         }
  9.     }
  1.                 $stmt $connection->prepare($sql);
  2.                 $this->bindParameters($stmt$params$types);
  3.                 $result $stmt->execute();
  4.             } else {
  5.                 $result $connection->query($sql);
  6.             }
  7.             return new Result($result$this);
in vendor/doctrine/dbal/src/Connection.php -> executeQuery (line 593)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function fetchAssociative(string $query, array $params = [], array $types = [])
  5.     {
  6.         return $this->executeQuery($query$params$types)->fetchAssociative();
  7.     }
  8.     /**
  9.      * Prepares and executes an SQL query and returns the first row of the result
  10.      * as a numerically indexed array.
  1.         throw new DecorationPatternException(self::class);
  2.     }
  3.     public function load(string $tokenSalesChannelContext $context): Cart
  4.     {
  5.         $content $this->connection->fetchAssociative(
  6.             '#cart-persister::load
  7.             SELECT `cart`.`payload`, `cart`.`rule_ids`, `cart`.`compressed` FROM cart WHERE `token` = :token',
  8.             ['token' => $token]
  9.         );
  1.     }
  2.     public function loadByToken(SalesChannelContext $contextstring $cartToken): RuleLoaderResult
  3.     {
  4.         try {
  5.             $cart $this->cartPersister->load($cartToken$context);
  6.             return $this->load($context$cart, new CartBehavior($context->getPermissions()), false);
  7.         } catch (CartTokenNotFoundException) {
  8.             $cart $this->cartFactory->createNew($cartToken);
  1.             }
  2.             $context $this->factory->create($token$parameters->getSalesChannelId(), $session);
  3.             $this->eventDispatcher->dispatch(new SalesChannelContextCreatedEvent($context$token$session));
  4.             $result $this->ruleLoader->loadByToken($context$token);
  5.             $this->cartService->setCart($result->getCart());
  6.             return $context;
  7.         });
in vendor/shopware/core/Profiling/Profiler.php -> Shopware\Core\System\SalesChannel\Context\{closure} (line 67)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.     ) {
  2.     }
  3.     public function get(SalesChannelContextServiceParameters $parameters): SalesChannelContext
  4.     {
  5.         return Profiler::trace('sales-channel-context', function () use ($parameters) {
  6.             $token $parameters->getToken();
  7.             $session $this->contextPersister->load($token$parameters->getSalesChannelId());
  8.             if ($session['expired'] ?? false) {
  1.             $request->attributes->get(SalesChannelRequest::ATTRIBUTE_DOMAIN_ID),
  2.             null,
  3.             null,
  4.             $session?->get(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID)
  5.         );
  6.         $context $this->contextService->get($contextServiceParameters);
  7.         // Remove imitating user id from session, if there is no customer
  8.         if ($session && $context->getImitatingUserId() && !$context->getCustomerId()) {
  9.             $session->remove(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID);
  10.             $context->setImitatingUserId(null);
  1.         ];
  2.     }
  3.     public function resolveContext(ControllerEvent $event): void
  4.     {
  5.         $this->requestContextResolver->resolve($event->getRequest());
  6.     }
  7. }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new ControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller$event->getControllerReflector());
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.             $this->dispatcher->dispatch($event);
  2.             return $event->getResponse();
  3.         }
  4.         return parent::handle($request$type$catch);
  5.     }
  6. }
  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.     protected function forward(Request $requestbool $catch false, ?Response $entry null): Response
  2.     {
  3.         $this->surrogate?->addSurrogateCapability($request);
  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.         // only handle main request inside http cache, because ESI tags are also interpreted as main request.
  2.         // sub requests are requests, which are forwarded to the kernel inside the php stack
  3.         // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894
  4.         if ($type === HttpKernelInterface::MAIN_REQUEST) {
  5.             $response parent::handle($request$type$catch);
  6.         } elseif ($request->attributes->has('_sw_esi')) {
  7.             $response parent::handle($request$type$catch);
  8.         } else {
  9.             $response $this->getKernel()->handle($request$type$catch);
  10.         }
in vendor/shopware/core/Kernel.php -> handle (line 155)
  1.     {
  2.         if (!$this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     public function boot(): void
  8.     {
  9.         if ($this->booted === true) {
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/gourmops.de/staging.gourmops.de/vendor/autoload_runtime.php') in public/index.php (line 10)
  1. use Shopware\Core\Installer\InstallerKernel;
  2. use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }

PDOException

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cart.payload' in 'field list'

  1.                     ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute($params null): Result
  5.     {
  6.         return $this->wrappedStatement->execute($params);
  7.     }
  8. }
  1.         $this->stopwatch?->start('doctrine''doctrine');
  2.         $query->start();
  3.         try {
  4.             return parent::execute($params);
  5.         } finally {
  6.             $query->stop();
  7.             $this->stopwatch?->stop('doctrine');
  8.         }
  9.     }
  1.                 $stmt $connection->prepare($sql);
  2.                 $this->bindParameters($stmt$params$types);
  3.                 $result $stmt->execute();
  4.             } else {
  5.                 $result $connection->query($sql);
  6.             }
  7.             return new Result($result$this);
in vendor/doctrine/dbal/src/Connection.php -> executeQuery (line 593)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function fetchAssociative(string $query, array $params = [], array $types = [])
  5.     {
  6.         return $this->executeQuery($query$params$types)->fetchAssociative();
  7.     }
  8.     /**
  9.      * Prepares and executes an SQL query and returns the first row of the result
  10.      * as a numerically indexed array.
  1.         throw new DecorationPatternException(self::class);
  2.     }
  3.     public function load(string $tokenSalesChannelContext $context): Cart
  4.     {
  5.         $content $this->connection->fetchAssociative(
  6.             '#cart-persister::load
  7.             SELECT `cart`.`payload`, `cart`.`rule_ids`, `cart`.`compressed` FROM cart WHERE `token` = :token',
  8.             ['token' => $token]
  9.         );
  1.     }
  2.     public function loadByToken(SalesChannelContext $contextstring $cartToken): RuleLoaderResult
  3.     {
  4.         try {
  5.             $cart $this->cartPersister->load($cartToken$context);
  6.             return $this->load($context$cart, new CartBehavior($context->getPermissions()), false);
  7.         } catch (CartTokenNotFoundException) {
  8.             $cart $this->cartFactory->createNew($cartToken);
  1.             }
  2.             $context $this->factory->create($token$parameters->getSalesChannelId(), $session);
  3.             $this->eventDispatcher->dispatch(new SalesChannelContextCreatedEvent($context$token$session));
  4.             $result $this->ruleLoader->loadByToken($context$token);
  5.             $this->cartService->setCart($result->getCart());
  6.             return $context;
  7.         });
in vendor/shopware/core/Profiling/Profiler.php -> Shopware\Core\System\SalesChannel\Context\{closure} (line 67)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.     ) {
  2.     }
  3.     public function get(SalesChannelContextServiceParameters $parameters): SalesChannelContext
  4.     {
  5.         return Profiler::trace('sales-channel-context', function () use ($parameters) {
  6.             $token $parameters->getToken();
  7.             $session $this->contextPersister->load($token$parameters->getSalesChannelId());
  8.             if ($session['expired'] ?? false) {
  1.             $request->attributes->get(SalesChannelRequest::ATTRIBUTE_DOMAIN_ID),
  2.             null,
  3.             null,
  4.             $session?->get(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID)
  5.         );
  6.         $context $this->contextService->get($contextServiceParameters);
  7.         // Remove imitating user id from session, if there is no customer
  8.         if ($session && $context->getImitatingUserId() && !$context->getCustomerId()) {
  9.             $session->remove(PlatformRequest::ATTRIBUTE_IMITATING_USER_ID);
  10.             $context->setImitatingUserId(null);
  1.         ];
  2.     }
  3.     public function resolveContext(ControllerEvent $event): void
  4.     {
  5.         $this->requestContextResolver->resolve($event->getRequest());
  6.     }
  7. }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new ControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller$event->getControllerReflector());
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.             $this->dispatcher->dispatch($event);
  2.             return $event->getResponse();
  3.         }
  4.         return parent::handle($request$type$catch);
  5.     }
  6. }
  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.     protected function forward(Request $requestbool $catch false, ?Response $entry null): Response
  2.     {
  3.         $this->surrogate?->addSurrogateCapability($request);
  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.         // only handle main request inside http cache, because ESI tags are also interpreted as main request.
  2.         // sub requests are requests, which are forwarded to the kernel inside the php stack
  3.         // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894
  4.         if ($type === HttpKernelInterface::MAIN_REQUEST) {
  5.             $response parent::handle($request$type$catch);
  6.         } elseif ($request->attributes->has('_sw_esi')) {
  7.             $response parent::handle($request$type$catch);
  8.         } else {
  9.             $response $this->getKernel()->handle($request$type$catch);
  10.         }
in vendor/shopware/core/Kernel.php -> handle (line 155)
  1.     {
  2.         if (!$this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     public function boot(): void
  8.     {
  9.         if ($this->booted === true) {
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/gourmops.de/staging.gourmops.de/vendor/autoload_runtime.php') in public/index.php (line 10)
  1. use Shopware\Core\Installer\InstallerKernel;
  2. use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }