Symfony Exception

PDOException Exception DeadlockException RuntimeError

HTTP 500 Internal Server Error

An exception has been thrown during the rendering of a template ("An exception occurred while executing 'UPDATE company_deposit SET account_number = ?, account_transit = ?, account_institution = ?, legal_account_owner_first_name = ?, legal_account_owner_last_name = ?, stripe_account_id = ? WHERE id = ?' with params ["jwHLwP4OzNXWOi+tpIOOWIUA+c6BaQYpKK16CqgGepY=<ENC>", "RQov0fVO4Pi4Vuo9U8MHobyUSmzhTFtfu4SNVKAH3xY=<ENC>", "eUJ6hy\/tawT9csVxwDnPFdLVIDCAW5CRSWLGM343wNM=<ENC>", "UEST8MAGFZix7OM872qrUjflqtMtKePidvyJ6lc8SUI=<ENC>", "jLl0Vj7h1xX0FSQzclfNx4N+5f\/YnLF5qXpNmRNxUV8=<ENC>", "xyuiEYHiFJuzDCw+Vu41LE2+s01tbuhFOv8XVnp1vFgVZAsMjCNGlGpGrgvvNhlB<ENC>", 561]:

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction").

Exceptions 4

Twig\Error\ RuntimeError

  1.         src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyBpav0kc3zAMAcy7DhIto2hDhPivUCr3vI&langues=fr"></script>
  2. {% endif %}
  3. <!-- Top Bar Start -->
  4. <div class="topbar">
  5.     {% set minimunForFreeShipping = global.getMinimumForFreeShipping(true) %}
  6.     {% set displayTopItem = "d-block" %}
  7.     {% if app.request.pathinfo != path('adresse') and app.request.pathinfo != path('PaymentChoice') and app.request.pathinfo != path('RecapPayment') and app.request.pathinfo != path('promoteMaturinPage') %}
  8.         <p id="bar_info">
  9.             <span id="info_liv" class="text-md-center">{{minimunForFreeShipping.text}}</span>
  10.             <span id="inf_cueill" class="d-none not-show">Livraison à un point de cueillette gratuit à partir de 25$ à <span id="cueilletteDistance">- km</span> de chez vous.</span>
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         // line 7
  2.         $this->displayBlock('styleContainer'$context$blocks);
  3.         echo "\">
  4.             ";
  5.         // line 8
  6.         $this->loadTemplate("menu.html.twig""frontend/base.html.twig"8)->display($context);
  7.         // line 9
  8.         echo "\t\t\t ";
  9.         // line 15
  10.         echo "                ";
  11.         $context["current_path"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "get", [=> "_route"], "method"falsefalsefalse15);
in vendor/twig/twig/src/Template.php->block_body (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         }
  2.         // line 109
  3.         echo "
  4. ";
  5.         // line 110
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 111
  8.         echo "<script>
  9.     window.onload = function() {
  10.     const dropdownLink = document.querySelector('li#cart_dropdown_menu a.dropdown-toggle');
  11.             dropdownLink.addEventListener('click', function(event) { 
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/base.html.twig"));
  4.         $this->parent $this->loadTemplate("base.html.twig""frontend/base.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product.html.twig"));
  4.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/product.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php->display (line 390)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
in vendor/twig/twig/src/Environment.php->render (line 318)
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.                 $this->twig->display($template->getTemplate(), $parameters);
  2.             };
  3.             $event->setResponse(new StreamedResponse($callback));
  4.         } else {
  5.             $event->setResponse(new Response($this->twig->render($template->getTemplate(), $parameters)));
  6.         }
  7.         // make sure the owner (controller+dependencies) is not cached or stored elsewhere
  8.         $template->setOwner([]);
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  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.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new ViewEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle() in public/index.php (line 35)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Exception\ DeadlockException

An exception occurred while executing 'UPDATE company_deposit SET account_number = ?, account_transit = ?, account_institution = ?, legal_account_owner_first_name = ?, legal_account_owner_last_name = ?, stripe_account_id = ? WHERE id = ?' with params ["jwHLwP4OzNXWOi+tpIOOWIUA+c6BaQYpKK16CqgGepY=<ENC>", "RQov0fVO4Pi4Vuo9U8MHobyUSmzhTFtfu4SNVKAH3xY=<ENC>", "eUJ6hy\/tawT9csVxwDnPFdLVIDCAW5CRSWLGM343wNM=<ENC>", "UEST8MAGFZix7OM872qrUjflqtMtKePidvyJ6lc8SUI=<ENC>", "jLl0Vj7h1xX0FSQzclfNx4N+5f\/YnLF5qXpNmRNxUV8=<ENC>", "xyuiEYHiFJuzDCw+Vu41LE2+s01tbuhFOv8XVnp1vFgVZAsMjCNGlGpGrgvvNhlB<ENC>", 561]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  1.      */
  2.     public function convertException($messageDeprecatedDriverException $exception)
  3.     {
  4.         switch ($exception->getErrorCode()) {
  5.             case '1213':
  6.                 return new DeadlockException($message$exception);
  7.             case '1205':
  8.                 return new LockWaitTimeoutException($message$exception);
  9.             case '1050':
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.             $msg .= ' with params ' self::formatParameters($params);
  2.         }
  3.         $msg .= ":\n\n" $driverEx->getMessage();
  4.         return self::wrapException($driver$driverEx$msg);
  5.     }
  6.     /**
  7.      * @deprecated
  8.      *
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php::driverExceptionDuringQuery (line 2226)
  1.         $this->throw(
  2.             Exception::driverExceptionDuringQuery(
  3.                 $this->_driver,
  4.                 $e,
  5.                 $sql,
  6.                 $this->resolveParams($params$types)
  7.             )
  8.         );
  9.     }
  10.     /**
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php->handleExceptionDuringQuery (line 1538)
  1.             } else {
  2.                 $result $connection->exec($sql);
  3.             }
  4.         } catch (Throwable $e) {
  5.             $this->handleExceptionDuringQuery(
  6.                 $e,
  7.                 $sql,
  8.                 $params,
  9.                 $types
  10.             );
  11.         }
  1.             'doctrine/dbal',
  2.             'https://github.com/doctrine/dbal/pull/4163',
  3.             'Connection::executeUpdate() is deprecated, use Connection::executeStatement() instead.'
  4.         );
  5.         return $this->executeStatement($sql$params$types);
  6.     }
  7.     /**
  8.      * Executes an SQL statement with the given parameters and returns the number of affected rows.
  9.      *
  1.         $sql 'UPDATE ' $quotedTableName
  2.              ' SET ' implode(', '$set)
  3.              . ' WHERE ' implode(' = ? AND '$where) . ' = ?';
  4.         $result $this->conn->executeUpdate($sql$params$types);
  5.         if ($versioned && ! $result) {
  6.             throw OptimisticLockException::lockFailed($entity);
  7.         }
  8.     }
  1.         }
  2.         $isVersioned     $this->class->isVersioned;
  3.         $quotedTableName $this->quoteStrategy->getTableName($this->class$this->platform);
  4.         $this->updateTable($entity$quotedTableName$data$isVersioned);
  5.         if ($isVersioned) {
  6.             $id $this->em->getUnitOfWork()->getEntityIdentifier($entity);
  7.             $this->assignDefaultVersionValue($entity$id);
  1.                 $this->recomputeSingleEntityChangeSet($class$entity);
  2.             }
  3.             if ( ! empty($this->entityChangeSets[$oid])) {
  4.                 $persister->update($entity);
  5.             }
  6.             unset($this->entityUpdates[$oid]);
  7.             if ($postUpdateInvoke != ListenersInvoker::INVOKE_NONE) {
  1.                 }
  2.             }
  3.             if ($this->entityUpdates) {
  4.                 foreach ($commitOrder as $class) {
  5.                     $this->executeUpdates($class);
  6.                 }
  7.             }
  8.             // Extra updates that were requested by persisters.
  9.             if ($this->extraUpdates) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
EntityManager->flush() in src/Service/UserService.php (line 524)
  1.             if(!empty($cartId)){
  2.                 $cart $this->entityInter->getRepository(Cart::class)->find($cartId);
  3.             }else{
  4.                 $cart = new Cart();
  5.                 $this->entityInter->persist($cart);
  6.                 $this->entityInter->flush();
  7.                 $this->session->set('cartId'$cart->getId());
  8.             }
  9.         }
  10.         return $cart;
UserService->getCart() in src/Service/TwigGlobalVariables.php (line 215)
  1.         $minimum->value 100// 80ici
  2.         $minimum->text "Livraison gratuite à partir de 100$";
  3.         $shippingAddress null;
  4.         // use cart shipping addresse if setted
  5.         if ($this->userServ->getCart()){
  6.             $shippingAddress $this->userServ->getCart()->getShippingAddress();
  7.             if ($shippingAddress == null && $this->getUser() !== null) {
  8.                 $lastShippingAddress $this->getLastUsedShippingAddress();
  9.                 if ($lastShippingAddress) {
  10.                     $shippingAddress $lastShippingAddress;
in vendor/twig/twig/src/Extension/CoreExtension.php->getMinimumForFreeShipping (line 1570)
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.         echo "
  2. <!-- Top Bar Start -->
  3. <div class=\"topbar\">
  4.     ";
  5.         // line 8
  6.         $context["minimunForFreeShipping"] = twig_get_attribute($this->env$this->source, (isset($context["global"]) || array_key_exists("global"$context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.'8$this->source); })()), "getMinimumForFreeShipping", [=> true], "method"falsefalsefalse8);
  7.         // line 9
  8.         echo "    ";
  9.         $context["displayTopItem"] = "d-block";
  10.         // line 10
  11.         echo "    ";
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         // line 7
  2.         $this->displayBlock('styleContainer'$context$blocks);
  3.         echo "\">
  4.             ";
  5.         // line 8
  6.         $this->loadTemplate("menu.html.twig""frontend/base.html.twig"8)->display($context);
  7.         // line 9
  8.         echo "\t\t\t ";
  9.         // line 15
  10.         echo "                ";
  11.         $context["current_path"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "get", [=> "_route"], "method"falsefalsefalse15);
in vendor/twig/twig/src/Template.php->block_body (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         }
  2.         // line 109
  3.         echo "
  4. ";
  5.         // line 110
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 111
  8.         echo "<script>
  9.     window.onload = function() {
  10.     const dropdownLink = document.querySelector('li#cart_dropdown_menu a.dropdown-toggle');
  11.             dropdownLink.addEventListener('click', function(event) { 
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/base.html.twig"));
  4.         $this->parent $this->loadTemplate("base.html.twig""frontend/base.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product.html.twig"));
  4.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/product.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php->display (line 390)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
in vendor/twig/twig/src/Environment.php->render (line 318)
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.                 $this->twig->display($template->getTemplate(), $parameters);
  2.             };
  3.             $event->setResponse(new StreamedResponse($callback));
  4.         } else {
  5.             $event->setResponse(new Response($this->twig->render($template->getTemplate(), $parameters)));
  6.         }
  7.         // make sure the owner (controller+dependencies) is not cached or stored elsewhere
  8.         $template->setOwner([]);
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  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.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new ViewEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle() in public/index.php (line 35)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.     public function execute($params null)
  2.     {
  3.         try {
  4.             return parent::execute($params);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.                 $stmt $connection->prepare($sql);
  2.                 if ($types) {
  3.                     $this->_bindTypedValues($stmt$params$types);
  4.                     $stmt->execute();
  5.                 } else {
  6.                     $stmt->execute($params);
  7.                 }
  8.                 $result $stmt->rowCount();
  1.             'doctrine/dbal',
  2.             'https://github.com/doctrine/dbal/pull/4163',
  3.             'Connection::executeUpdate() is deprecated, use Connection::executeStatement() instead.'
  4.         );
  5.         return $this->executeStatement($sql$params$types);
  6.     }
  7.     /**
  8.      * Executes an SQL statement with the given parameters and returns the number of affected rows.
  9.      *
  1.         $sql 'UPDATE ' $quotedTableName
  2.              ' SET ' implode(', '$set)
  3.              . ' WHERE ' implode(' = ? AND '$where) . ' = ?';
  4.         $result $this->conn->executeUpdate($sql$params$types);
  5.         if ($versioned && ! $result) {
  6.             throw OptimisticLockException::lockFailed($entity);
  7.         }
  8.     }
  1.         }
  2.         $isVersioned     $this->class->isVersioned;
  3.         $quotedTableName $this->quoteStrategy->getTableName($this->class$this->platform);
  4.         $this->updateTable($entity$quotedTableName$data$isVersioned);
  5.         if ($isVersioned) {
  6.             $id $this->em->getUnitOfWork()->getEntityIdentifier($entity);
  7.             $this->assignDefaultVersionValue($entity$id);
  1.                 $this->recomputeSingleEntityChangeSet($class$entity);
  2.             }
  3.             if ( ! empty($this->entityChangeSets[$oid])) {
  4.                 $persister->update($entity);
  5.             }
  6.             unset($this->entityUpdates[$oid]);
  7.             if ($postUpdateInvoke != ListenersInvoker::INVOKE_NONE) {
  1.                 }
  2.             }
  3.             if ($this->entityUpdates) {
  4.                 foreach ($commitOrder as $class) {
  5.                     $this->executeUpdates($class);
  6.                 }
  7.             }
  8.             // Extra updates that were requested by persisters.
  9.             if ($this->extraUpdates) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
EntityManager->flush() in src/Service/UserService.php (line 524)
  1.             if(!empty($cartId)){
  2.                 $cart $this->entityInter->getRepository(Cart::class)->find($cartId);
  3.             }else{
  4.                 $cart = new Cart();
  5.                 $this->entityInter->persist($cart);
  6.                 $this->entityInter->flush();
  7.                 $this->session->set('cartId'$cart->getId());
  8.             }
  9.         }
  10.         return $cart;
UserService->getCart() in src/Service/TwigGlobalVariables.php (line 215)
  1.         $minimum->value 100// 80ici
  2.         $minimum->text "Livraison gratuite à partir de 100$";
  3.         $shippingAddress null;
  4.         // use cart shipping addresse if setted
  5.         if ($this->userServ->getCart()){
  6.             $shippingAddress $this->userServ->getCart()->getShippingAddress();
  7.             if ($shippingAddress == null && $this->getUser() !== null) {
  8.                 $lastShippingAddress $this->getLastUsedShippingAddress();
  9.                 if ($lastShippingAddress) {
  10.                     $shippingAddress $lastShippingAddress;
in vendor/twig/twig/src/Extension/CoreExtension.php->getMinimumForFreeShipping (line 1570)
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.         echo "
  2. <!-- Top Bar Start -->
  3. <div class=\"topbar\">
  4.     ";
  5.         // line 8
  6.         $context["minimunForFreeShipping"] = twig_get_attribute($this->env$this->source, (isset($context["global"]) || array_key_exists("global"$context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.'8$this->source); })()), "getMinimumForFreeShipping", [=> true], "method"falsefalsefalse8);
  7.         // line 9
  8.         echo "    ";
  9.         $context["displayTopItem"] = "d-block";
  10.         // line 10
  11.         echo "    ";
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         // line 7
  2.         $this->displayBlock('styleContainer'$context$blocks);
  3.         echo "\">
  4.             ";
  5.         // line 8
  6.         $this->loadTemplate("menu.html.twig""frontend/base.html.twig"8)->display($context);
  7.         // line 9
  8.         echo "\t\t\t ";
  9.         // line 15
  10.         echo "                ";
  11.         $context["current_path"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "get", [=> "_route"], "method"falsefalsefalse15);
in vendor/twig/twig/src/Template.php->block_body (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         }
  2.         // line 109
  3.         echo "
  4. ";
  5.         // line 110
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 111
  8.         echo "<script>
  9.     window.onload = function() {
  10.     const dropdownLink = document.querySelector('li#cart_dropdown_menu a.dropdown-toggle');
  11.             dropdownLink.addEventListener('click', function(event) { 
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/base.html.twig"));
  4.         $this->parent $this->loadTemplate("base.html.twig""frontend/base.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product.html.twig"));
  4.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/product.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php->display (line 390)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
in vendor/twig/twig/src/Environment.php->render (line 318)
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.                 $this->twig->display($template->getTemplate(), $parameters);
  2.             };
  3.             $event->setResponse(new StreamedResponse($callback));
  4.         } else {
  5.             $event->setResponse(new Response($this->twig->render($template->getTemplate(), $parameters)));
  6.         }
  7.         // make sure the owner (controller+dependencies) is not cached or stored elsewhere
  8.         $template->setOwner([]);
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  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.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new ViewEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle() in public/index.php (line 35)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (PDOException $exception) {
  8.             throw Exception::new($exception);
  9.         }
  10.     }
  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (PDOException $exception) {
  8.             throw Exception::new($exception);
  9.         }
  10.     }
  1.                 $stmt $connection->prepare($sql);
  2.                 if ($types) {
  3.                     $this->_bindTypedValues($stmt$params$types);
  4.                     $stmt->execute();
  5.                 } else {
  6.                     $stmt->execute($params);
  7.                 }
  8.                 $result $stmt->rowCount();
  1.             'doctrine/dbal',
  2.             'https://github.com/doctrine/dbal/pull/4163',
  3.             'Connection::executeUpdate() is deprecated, use Connection::executeStatement() instead.'
  4.         );
  5.         return $this->executeStatement($sql$params$types);
  6.     }
  7.     /**
  8.      * Executes an SQL statement with the given parameters and returns the number of affected rows.
  9.      *
  1.         $sql 'UPDATE ' $quotedTableName
  2.              ' SET ' implode(', '$set)
  3.              . ' WHERE ' implode(' = ? AND '$where) . ' = ?';
  4.         $result $this->conn->executeUpdate($sql$params$types);
  5.         if ($versioned && ! $result) {
  6.             throw OptimisticLockException::lockFailed($entity);
  7.         }
  8.     }
  1.         }
  2.         $isVersioned     $this->class->isVersioned;
  3.         $quotedTableName $this->quoteStrategy->getTableName($this->class$this->platform);
  4.         $this->updateTable($entity$quotedTableName$data$isVersioned);
  5.         if ($isVersioned) {
  6.             $id $this->em->getUnitOfWork()->getEntityIdentifier($entity);
  7.             $this->assignDefaultVersionValue($entity$id);
  1.                 $this->recomputeSingleEntityChangeSet($class$entity);
  2.             }
  3.             if ( ! empty($this->entityChangeSets[$oid])) {
  4.                 $persister->update($entity);
  5.             }
  6.             unset($this->entityUpdates[$oid]);
  7.             if ($postUpdateInvoke != ListenersInvoker::INVOKE_NONE) {
  1.                 }
  2.             }
  3.             if ($this->entityUpdates) {
  4.                 foreach ($commitOrder as $class) {
  5.                     $this->executeUpdates($class);
  6.                 }
  7.             }
  8.             // Extra updates that were requested by persisters.
  9.             if ($this->extraUpdates) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
EntityManager->flush() in src/Service/UserService.php (line 524)
  1.             if(!empty($cartId)){
  2.                 $cart $this->entityInter->getRepository(Cart::class)->find($cartId);
  3.             }else{
  4.                 $cart = new Cart();
  5.                 $this->entityInter->persist($cart);
  6.                 $this->entityInter->flush();
  7.                 $this->session->set('cartId'$cart->getId());
  8.             }
  9.         }
  10.         return $cart;
UserService->getCart() in src/Service/TwigGlobalVariables.php (line 215)
  1.         $minimum->value 100// 80ici
  2.         $minimum->text "Livraison gratuite à partir de 100$";
  3.         $shippingAddress null;
  4.         // use cart shipping addresse if setted
  5.         if ($this->userServ->getCart()){
  6.             $shippingAddress $this->userServ->getCart()->getShippingAddress();
  7.             if ($shippingAddress == null && $this->getUser() !== null) {
  8.                 $lastShippingAddress $this->getLastUsedShippingAddress();
  9.                 if ($lastShippingAddress) {
  10.                     $shippingAddress $lastShippingAddress;
in vendor/twig/twig/src/Extension/CoreExtension.php->getMinimumForFreeShipping (line 1570)
  1.     }
  2.     // Some objects throw exceptions when they have __call, and the method we try
  3.     // to call is not supported. If ignoreStrictCheck is true, we should return null.
  4.     try {
  5.         $ret $object->$method(...$arguments);
  6.     } catch (\BadMethodCallException $e) {
  7.         if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
  8.             return;
  9.         }
  10.         throw $e;
  1.         echo "
  2. <!-- Top Bar Start -->
  3. <div class=\"topbar\">
  4.     ";
  5.         // line 8
  6.         $context["minimunForFreeShipping"] = twig_get_attribute($this->env$this->source, (isset($context["global"]) || array_key_exists("global"$context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.'8$this->source); })()), "getMinimumForFreeShipping", [=> true], "method"falsefalsefalse8);
  7.         // line 9
  8.         echo "    ";
  9.         $context["displayTopItem"] = "d-block";
  10.         // line 10
  11.         echo "    ";
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         // line 7
  2.         $this->displayBlock('styleContainer'$context$blocks);
  3.         echo "\">
  4.             ";
  5.         // line 8
  6.         $this->loadTemplate("menu.html.twig""frontend/base.html.twig"8)->display($context);
  7.         // line 9
  8.         echo "\t\t\t ";
  9.         // line 15
  10.         echo "                ";
  11.         $context["current_path"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "get", [=> "_route"], "method"falsefalsefalse15);
in vendor/twig/twig/src/Template.php->block_body (line 182)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         }
  2.         // line 109
  3.         echo "
  4. ";
  5.         // line 110
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 111
  8.         echo "<script>
  9.     window.onload = function() {
  10.     const dropdownLink = document.querySelector('li#cart_dropdown_menu a.dropdown-toggle');
  11.             dropdownLink.addEventListener('click', function(event) { 
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/base.html.twig"));
  4.         $this->parent $this->loadTemplate("base.html.twig""frontend/base.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product.html.twig"));
  4.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/product.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
in vendor/twig/twig/src/Template.php->doDisplay (line 405)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php->displayWithErrorHandling (line 378)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php->display (line 390)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
in vendor/twig/twig/src/Environment.php->render (line 318)
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.                 $this->twig->display($template->getTemplate(), $parameters);
  2.             };
  3.             $event->setResponse(new StreamedResponse($callback));
  4.         } else {
  5.             $event->setResponse(new Response($this->twig->render($template->getTemplate(), $parameters)));
  6.         }
  7.         // make sure the owner (controller+dependencies) is not cached or stored elsewhere
  8.         $template->setOwner([]);
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  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.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new ViewEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle() in public/index.php (line 35)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Traces 4

[4/4] RuntimeError

Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("An exception occurred while executing 'UPDATE company_deposit SET account_number = ?, account_transit = ?, account_institution = ?, legal_account_owner_first_name = ?, legal_account_owner_last_name = ?, stripe_account_id = ? WHERE id = ?' with params ["jwHLwP4OzNXWOi+tpIOOWIUA+c6BaQYpKK16CqgGepY=<ENC>", "RQov0fVO4Pi4Vuo9U8MHobyUSmzhTFtfu4SNVKAH3xY=<ENC>", "eUJ6hy\/tawT9csVxwDnPFdLVIDCAW5CRSWLGM343wNM=<ENC>", "UEST8MAGFZix7OM872qrUjflqtMtKePidvyJ6lc8SUI=<ENC>", "jLl0Vj7h1xX0FSQzclfNx4N+5f\/YnLF5qXpNmRNxUV8=<ENC>", "xyuiEYHiFJuzDCw+Vu41LE2+s01tbuhFOv8XVnp1vFgVZAsMjCNGlGpGrgvvNhlB<ENC>", 561]:

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction").

  at templates/menu.html.twig:8
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:98)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->block_body()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/13/13f3cf748e7e058d0430e8deaa720a6edeb348432d065e6483548bf8779b382d.php:165)
  at __TwigTemplate_cf2954fa9448385deb96d5674f4b35dd99200a615d41faaccda0bcd5c81730d8->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:51)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/03/035cfd560e56a217b5a7b0deb2e1f3f6db1f9e84504e361d05ca6c4341fe4898.php:49)
  at __TwigTemplate_aad9356eb051dacf4c3b5274a634fc8084ac359434fa6a9d5da7b823a52ea660->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php:115)
  at Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener->onKernelView()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:174)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:35)

[3/4] DeadlockException

Doctrine\DBAL\Exception\DeadlockException:
An exception occurred while executing 'UPDATE company_deposit SET account_number = ?, account_transit = ?, account_institution = ?, legal_account_owner_first_name = ?, legal_account_owner_last_name = ?, stripe_account_id = ? WHERE id = ?' with params ["jwHLwP4OzNXWOi+tpIOOWIUA+c6BaQYpKK16CqgGepY=<ENC>", "RQov0fVO4Pi4Vuo9U8MHobyUSmzhTFtfu4SNVKAH3xY=<ENC>", "eUJ6hy\/tawT9csVxwDnPFdLVIDCAW5CRSWLGM343wNM=<ENC>", "UEST8MAGFZix7OM872qrUjflqtMtKePidvyJ6lc8SUI=<ENC>", "jLl0Vj7h1xX0FSQzclfNx4N+5f\/YnLF5qXpNmRNxUV8=<ENC>", "xyuiEYHiFJuzDCw+Vu41LE2+s01tbuhFOv8XVnp1vFgVZAsMjCNGlGpGrgvvNhlB<ENC>", 561]:

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:51
  at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
  at Doctrine\DBAL\DBALException::wrapException()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:159)
  at Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:2226)
  at Doctrine\DBAL\Connection->handleExceptionDuringQuery()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1538)
  at Doctrine\DBAL\Connection->executeStatement()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1487)
  at Doctrine\DBAL\Connection->executeUpdate()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:505)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->updateTable()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:394)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->update()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1172)
  at Doctrine\ORM\UnitOfWork->executeUpdates()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:407)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:371)
  at Doctrine\ORM\EntityManager->flush()
     (src/Service/UserService.php:524)
  at App\Service\UserService->getCart()
     (src/Service/TwigGlobalVariables.php:215)
  at App\Service\TwigGlobalVariables->getMinimumForFreeShipping()
     (vendor/twig/twig/src/Extension/CoreExtension.php:1570)
  at twig_get_attribute()
     (var/cache/prod/twig/10/10fa9ddd2b5aeb15e2662b9d1912aa6a0916530d349f564519607ca20fba34d4.php:52)
  at __TwigTemplate_f5f07ba863e373ec41c71b7214e2f8bdb84b460789fbd06e6dbcdfcafd38efe2->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:98)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->block_body()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/13/13f3cf748e7e058d0430e8deaa720a6edeb348432d065e6483548bf8779b382d.php:165)
  at __TwigTemplate_cf2954fa9448385deb96d5674f4b35dd99200a615d41faaccda0bcd5c81730d8->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:51)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/03/035cfd560e56a217b5a7b0deb2e1f3f6db1f9e84504e361d05ca6c4341fe4898.php:49)
  at __TwigTemplate_aad9356eb051dacf4c3b5274a634fc8084ac359434fa6a9d5da7b823a52ea660->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php:115)
  at Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener->onKernelView()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:174)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:35)

[2/4] Exception

Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119)
  at Doctrine\DBAL\Driver\PDOStatement->execute()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1527)
  at Doctrine\DBAL\Connection->executeStatement()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1487)
  at Doctrine\DBAL\Connection->executeUpdate()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:505)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->updateTable()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:394)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->update()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1172)
  at Doctrine\ORM\UnitOfWork->executeUpdates()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:407)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:371)
  at Doctrine\ORM\EntityManager->flush()
     (src/Service/UserService.php:524)
  at App\Service\UserService->getCart()
     (src/Service/TwigGlobalVariables.php:215)
  at App\Service\TwigGlobalVariables->getMinimumForFreeShipping()
     (vendor/twig/twig/src/Extension/CoreExtension.php:1570)
  at twig_get_attribute()
     (var/cache/prod/twig/10/10fa9ddd2b5aeb15e2662b9d1912aa6a0916530d349f564519607ca20fba34d4.php:52)
  at __TwigTemplate_f5f07ba863e373ec41c71b7214e2f8bdb84b460789fbd06e6dbcdfcafd38efe2->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:98)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->block_body()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/13/13f3cf748e7e058d0430e8deaa720a6edeb348432d065e6483548bf8779b382d.php:165)
  at __TwigTemplate_cf2954fa9448385deb96d5674f4b35dd99200a615d41faaccda0bcd5c81730d8->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:51)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/03/035cfd560e56a217b5a7b0deb2e1f3f6db1f9e84504e361d05ca6c4341fe4898.php:49)
  at __TwigTemplate_aad9356eb051dacf4c3b5274a634fc8084ac359434fa6a9d5da7b823a52ea660->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php:115)
  at Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener->onKernelView()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:174)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:35)

[1/4] PDOException

PDOException:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
  at PDOStatement->execute()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117)
  at Doctrine\DBAL\Driver\PDOStatement->execute()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1527)
  at Doctrine\DBAL\Connection->executeStatement()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1487)
  at Doctrine\DBAL\Connection->executeUpdate()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:505)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->updateTable()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:394)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->update()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1172)
  at Doctrine\ORM\UnitOfWork->executeUpdates()
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:407)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:371)
  at Doctrine\ORM\EntityManager->flush()
     (src/Service/UserService.php:524)
  at App\Service\UserService->getCart()
     (src/Service/TwigGlobalVariables.php:215)
  at App\Service\TwigGlobalVariables->getMinimumForFreeShipping()
     (vendor/twig/twig/src/Extension/CoreExtension.php:1570)
  at twig_get_attribute()
     (var/cache/prod/twig/10/10fa9ddd2b5aeb15e2662b9d1912aa6a0916530d349f564519607ca20fba34d4.php:52)
  at __TwigTemplate_f5f07ba863e373ec41c71b7214e2f8bdb84b460789fbd06e6dbcdfcafd38efe2->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:98)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->block_body()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/13/13f3cf748e7e058d0430e8deaa720a6edeb348432d065e6483548bf8779b382d.php:165)
  at __TwigTemplate_cf2954fa9448385deb96d5674f4b35dd99200a615d41faaccda0bcd5c81730d8->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/2b/2b7491cbdd28fd8e7871373344ee4271bcbec8ea4bfc4ec5ff8d24d68f81f85b.php:51)
  at __TwigTemplate_1825913b6354bdb112995f587d694b9305cb47a2ad803923fc9c168fb4753d1c->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/03/035cfd560e56a217b5a7b0deb2e1f3f6db1f9e84504e361d05ca6c4341fe4898.php:49)
  at __TwigTemplate_aad9356eb051dacf4c3b5274a634fc8084ac359434fa6a9d5da7b823a52ea660->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (vendor/sensio/framework-extra-bundle/src/EventListener/TemplateListener.php:115)
  at Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener->onKernelView()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:174)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:81)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:35)