http://beta.360dalat.com/

Exceptions

An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

Exceptions 4

Doctrine\DBAL\Exception\ ConnectionLost

  1.             case '2002':
  2.             case '2005':
  3.                 return new ConnectionException($message$exception);
  4.             case '2006':
  5.                 return new ConnectionLost($message$exception);
  6.             case '1048':
  7.             case '1121':
  8.             case '1138':
  9.             case '1171':
  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.      *
  2.      * @return Exception
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return static::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @return Exception
  10.      */
  1.                 $username,
  2.                 $password,
  3.                 $driverOptions
  4.             );
  5.         } catch (PDOException $e) {
  6.             throw Exception::driverException($this$e);
  7.         }
  8.         return $conn;
  9.     }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php->getWrappedConnection (line 1276)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php->executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/PostPublishesRepository.php (line 46)
  1.             ->where('gi.key = :key AND p.publishedTimestamp <= :currentDate')
  2.             ->setParameters([':key' => $groupBoxKey':currentDate' => time()])
  3.             ->orderBy('gi.order')
  4.             ->setMaxResults($limit)
  5.             ->getQuery()
  6.             ->getResult();
  7.         
  8.         return $posts;
  9.     }
  10.     
  11.     /**
PostPublishesRepository->getTopPostsInGroupBox(1, 5) in src/Controller/DefaultController.php (line 204)
  1.         $featuredPosts $cacheService->get($focusCacheKey);
  2.         
  3.         if ($featuredPosts === false) {
  4.             $em $this->getDoctrine()->getManager();
  5.             $sourcePosts $em->getRepository(PostPublishes::class)
  6.                 ->getTopPostsInGroupBox(Constants::GROUP_BOX_HOME_FEATUREConstants::HOME_TOP_FEATURED_POSTS_LIMIT);
  7.             if ($sourcePosts) {
  8.                 $firstFeaturedPost array_shift($sourcePosts);
  9.                 $firstFeaturedPost $exchangeService->exchangeRowPost(
  10.                     $firstFeaturedPost,
  11.                     Constants::FIRST_FEATURED_SIZE,
DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange)) in src/Controller/DefaultController.php (line 32)
  1.      * @throws \Exception
  2.      */
  3.     public function index(Request $requestDataExchange $exchangeService)
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $featuredPosts $this->getFeaturedPosts($cacheService$exchangeService);
  7.         $travelPositions $this->getTravelPositions($cacheService$exchangeService$featuredPosts['existingPostIds']);
  8.         $hotelPosts $this->getHotelPosts($cacheService$exchangeService$featuredPosts['existingPostIds']);
  9.         $handBookPosts $this->getHandBookPosts($cacheService$exchangeService);
  10.         $mostViewPosts $this->getMostViewPosts($cacheService$exchangeService);
  11.         $tagPostsBox $this->getTagPosts($cacheService$exchangeService);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [2006] MySQL server has gone away

  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.         try {
  2.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.         try {
  2.             $conn = new PDO\Connection(
  3.                 $this->constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $e) {
  9.             throw Exception::driverException($this$e);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php->getWrappedConnection (line 1276)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php->executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/PostPublishesRepository.php (line 46)
  1.             ->where('gi.key = :key AND p.publishedTimestamp <= :currentDate')
  2.             ->setParameters([':key' => $groupBoxKey':currentDate' => time()])
  3.             ->orderBy('gi.order')
  4.             ->setMaxResults($limit)
  5.             ->getQuery()
  6.             ->getResult();
  7.         
  8.         return $posts;
  9.     }
  10.     
  11.     /**
PostPublishesRepository->getTopPostsInGroupBox(1, 5) in src/Controller/DefaultController.php (line 204)
  1.         $featuredPosts $cacheService->get($focusCacheKey);
  2.         
  3.         if ($featuredPosts === false) {
  4.             $em $this->getDoctrine()->getManager();
  5.             $sourcePosts $em->getRepository(PostPublishes::class)
  6.                 ->getTopPostsInGroupBox(Constants::GROUP_BOX_HOME_FEATUREConstants::HOME_TOP_FEATURED_POSTS_LIMIT);
  7.             if ($sourcePosts) {
  8.                 $firstFeaturedPost array_shift($sourcePosts);
  9.                 $firstFeaturedPost $exchangeService->exchangeRowPost(
  10.                     $firstFeaturedPost,
  11.                     Constants::FIRST_FEATURED_SIZE,
DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange)) in src/Controller/DefaultController.php (line 32)
  1.      * @throws \Exception
  2.      */
  3.     public function index(Request $requestDataExchange $exchangeService)
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $featuredPosts $this->getFeaturedPosts($cacheService$exchangeService);
  7.         $travelPositions $this->getTravelPositions($cacheService$exchangeService$featuredPosts['existingPostIds']);
  8.         $hotelPosts $this->getHotelPosts($cacheService$exchangeService$featuredPosts['existingPostIds']);
  9.         $handBookPosts $this->getHandBookPosts($cacheService$exchangeService);
  10.         $mostViewPosts $this->getMostViewPosts($cacheService$exchangeService);
  11.         $tagPostsBox $this->getTagPosts($cacheService$exchangeService);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2006] MySQL server has gone away

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.         try {
  2.             $conn = new PDO\Connection(
  3.                 $this->constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $e) {
  9.             throw Exception::driverException($this$e);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php->getWrappedConnection (line 1276)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php->executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/PostPublishesRepository.php (line 46)
  1.             ->where('gi.key = :key AND p.publishedTimestamp <= :currentDate')
  2.             ->setParameters([':key' => $groupBoxKey':currentDate' => time()])
  3.             ->orderBy('gi.order')
  4.             ->setMaxResults($limit)
  5.             ->getQuery()
  6.             ->getResult();
  7.         
  8.         return $posts;
  9.     }
  10.     
  11.     /**
PostPublishesRepository->getTopPostsInGroupBox(1, 5) in src/Controller/DefaultController.php (line 204)
  1.         $featuredPosts $cacheService->get($focusCacheKey);
  2.         
  3.         if ($featuredPosts === false) {
  4.             $em $this->getDoctrine()->getManager();
  5.             $sourcePosts $em->getRepository(PostPublishes::class)
  6.                 ->getTopPostsInGroupBox(Constants::GROUP_BOX_HOME_FEATUREConstants::HOME_TOP_FEATURED_POSTS_LIMIT);
  7.             if ($sourcePosts) {
  8.                 $firstFeaturedPost array_shift($sourcePosts);
  9.                 $firstFeaturedPost $exchangeService->exchangeRowPost(
  10.                     $firstFeaturedPost,
  11.                     Constants::FIRST_FEATURED_SIZE,
DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange)) in src/Controller/DefaultController.php (line 32)
  1.      * @throws \Exception
  2.      */
  3.     public function index(Request $requestDataExchange $exchangeService)
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $featuredPosts $this->getFeaturedPosts($cacheService$exchangeService);
  7.         $travelPositions $this->getTravelPositions($cacheService$exchangeService$featuredPosts['existingPostIds']);
  8.         $hotelPosts $this->getHotelPosts($cacheService$exchangeService$featuredPosts['existingPostIds']);
  9.         $handBookPosts $this->getHandBookPosts($cacheService$exchangeService);
  10.         $mostViewPosts $this->getMostViewPosts($cacheService$exchangeService);
  11.         $tagPostsBox $this->getTagPosts($cacheService$exchangeService);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

PDO::__construct(): MySQL server has gone away

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.         try {
  2.             $conn = new PDO\Connection(
  3.                 $this->constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $e) {
  9.             throw Exception::driverException($this$e);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php->getWrappedConnection (line 1276)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php->executeIgnoreQueryCache (line 954)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/Repository/PostPublishesRepository.php (line 46)
  1.             ->where('gi.key = :key AND p.publishedTimestamp <= :currentDate')
  2.             ->setParameters([':key' => $groupBoxKey':currentDate' => time()])
  3.             ->orderBy('gi.order')
  4.             ->setMaxResults($limit)
  5.             ->getQuery()
  6.             ->getResult();
  7.         
  8.         return $posts;
  9.     }
  10.     
  11.     /**
PostPublishesRepository->getTopPostsInGroupBox(1, 5) in src/Controller/DefaultController.php (line 204)
  1.         $featuredPosts $cacheService->get($focusCacheKey);
  2.         
  3.         if ($featuredPosts === false) {
  4.             $em $this->getDoctrine()->getManager();
  5.             $sourcePosts $em->getRepository(PostPublishes::class)
  6.                 ->getTopPostsInGroupBox(Constants::GROUP_BOX_HOME_FEATUREConstants::HOME_TOP_FEATURED_POSTS_LIMIT);
  7.             if ($sourcePosts) {
  8.                 $firstFeaturedPost array_shift($sourcePosts);
  9.                 $firstFeaturedPost $exchangeService->exchangeRowPost(
  10.                     $firstFeaturedPost,
  11.                     Constants::FIRST_FEATURED_SIZE,
DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange)) in src/Controller/DefaultController.php (line 32)
  1.      * @throws \Exception
  2.      */
  3.     public function index(Request $requestDataExchange $exchangeService)
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $featuredPosts $this->getFeaturedPosts($cacheService$exchangeService);
  7.         $travelPositions $this->getTravelPositions($cacheService$exchangeService$featuredPosts['existingPostIds']);
  8.         $hotelPosts $this->getHotelPosts($cacheService$exchangeService$featuredPosts['existingPostIds']);
  9.         $handBookPosts $this->getHandBookPosts($cacheService$exchangeService);
  10.         $mostViewPosts $this->getMostViewPosts($cacheService$exchangeService);
  11.         $tagPostsBox $this->getTagPosts($cacheService$exchangeService);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 4

[4/4] ConnectionLost

Doctrine\DBAL\Exception\ConnectionLost:
An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115
  at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away', object(Exception))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
  at Doctrine\DBAL\DBALException::wrapException(object(Driver), object(Exception), 'An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away')
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169)
  at Doctrine\DBAL\DBALException::driverException(object(Driver), object(Exception))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:31)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://360_dalat:360Dalat%21%40%23456@192.168.202.148:3308/360_dalat?serverVersion=5.7', 'driver' => 'pdo_mysql', 'charset' => 'utf8mb4', 'host' => '192.168.202.148', 'port' => 3308, 'user' => '360_dalat', 'password' => '360Dalat!@#456', 'driverOptions' => array(), 'serverVersion' => '5.7', 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collate' => 'utf8mb4_unicode_ci'), 'dbname' => '360_dalat'), '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:398)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1938)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1276)
  at Doctrine\DBAL\Connection->executeQuery('SELECT p0_.post_id AS post_id_0, p0_.title AS title_1, p0_.slug AS slug_2, p0_.sapo AS sapo_3, p0_.cate_id AS cate_id_4, p0_.published_date AS published_date_5, p0_.published_timestamp AS published_timestamp_6, p0_.avatar AS avatar_7, p0_.focus_avatar AS focus_avatar_8, p0_.author_name AS author_name_9, c1_.name AS name_10, c1_.slug AS slug_11 FROM post_publishes p0_ INNER JOIN group_box_items g2_ ON (g2_.data_id = p0_.post_id) INNER JOIN categories c1_ ON (c1_.cate_id = p0_.cate_id) WHERE g2_.key = ? AND p0_.published_timestamp &lt;= ? ORDER BY g2_.order ASC LIMIT 5', array(1, 1789182356), array('integer', 'integer'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(1, 1789182356), array('integer', 'integer'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:338)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/PostPublishesRepository.php:46)
  at App\Repository\PostPublishesRepository->getTopPostsInGroupBox(1, 5)
     (src/Controller/DefaultController.php:204)
  at App\Controller\DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange))
     (src/Controller/DefaultController.php:32)
  at App\Controller\DefaultController->index(object(Request), object(DataExchange))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)

                                

[3/4] Exception

Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [2006] MySQL server has gone away

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
  at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=192.168.202.148;port=3308;dbname=360_dalat;charset=utf8mb4;', '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:28)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://360_dalat:360Dalat%21%40%23456@192.168.202.148:3308/360_dalat?serverVersion=5.7', 'driver' => 'pdo_mysql', 'charset' => 'utf8mb4', 'host' => '192.168.202.148', 'port' => 3308, 'user' => '360_dalat', 'password' => '360Dalat!@#456', 'driverOptions' => array(), 'serverVersion' => '5.7', 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collate' => 'utf8mb4_unicode_ci'), 'dbname' => '360_dalat'), '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:398)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1938)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1276)
  at Doctrine\DBAL\Connection->executeQuery('SELECT p0_.post_id AS post_id_0, p0_.title AS title_1, p0_.slug AS slug_2, p0_.sapo AS sapo_3, p0_.cate_id AS cate_id_4, p0_.published_date AS published_date_5, p0_.published_timestamp AS published_timestamp_6, p0_.avatar AS avatar_7, p0_.focus_avatar AS focus_avatar_8, p0_.author_name AS author_name_9, c1_.name AS name_10, c1_.slug AS slug_11 FROM post_publishes p0_ INNER JOIN group_box_items g2_ ON (g2_.data_id = p0_.post_id) INNER JOIN categories c1_ ON (c1_.cate_id = p0_.cate_id) WHERE g2_.key = ? AND p0_.published_timestamp &lt;= ? ORDER BY g2_.order ASC LIMIT 5', array(1, 1789182356), array('integer', 'integer'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(1, 1789182356), array('integer', 'integer'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:338)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/PostPublishesRepository.php:46)
  at App\Repository\PostPublishesRepository->getTopPostsInGroupBox(1, 5)
     (src/Controller/DefaultController.php:204)
  at App\Controller\DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange))
     (src/Controller/DefaultController.php:32)
  at App\Controller\DefaultController->index(object(Request), object(DataExchange))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)

                                

[2/4] PDOException

PDOException:
SQLSTATE[HY000] [2006] MySQL server has gone away

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39
  at PDO->__construct('mysql:host=192.168.202.148;port=3308;dbname=360_dalat;charset=utf8mb4;', '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=192.168.202.148;port=3308;dbname=360_dalat;charset=utf8mb4;', '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:28)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://360_dalat:360Dalat%21%40%23456@192.168.202.148:3308/360_dalat?serverVersion=5.7', 'driver' => 'pdo_mysql', 'charset' => 'utf8mb4', 'host' => '192.168.202.148', 'port' => 3308, 'user' => '360_dalat', 'password' => '360Dalat!@#456', 'driverOptions' => array(), 'serverVersion' => '5.7', 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collate' => 'utf8mb4_unicode_ci'), 'dbname' => '360_dalat'), '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:398)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1938)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1276)
  at Doctrine\DBAL\Connection->executeQuery('SELECT p0_.post_id AS post_id_0, p0_.title AS title_1, p0_.slug AS slug_2, p0_.sapo AS sapo_3, p0_.cate_id AS cate_id_4, p0_.published_date AS published_date_5, p0_.published_timestamp AS published_timestamp_6, p0_.avatar AS avatar_7, p0_.focus_avatar AS focus_avatar_8, p0_.author_name AS author_name_9, c1_.name AS name_10, c1_.slug AS slug_11 FROM post_publishes p0_ INNER JOIN group_box_items g2_ ON (g2_.data_id = p0_.post_id) INNER JOIN categories c1_ ON (c1_.cate_id = p0_.cate_id) WHERE g2_.key = ? AND p0_.published_timestamp &lt;= ? ORDER BY g2_.order ASC LIMIT 5', array(1, 1789182356), array('integer', 'integer'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(1, 1789182356), array('integer', 'integer'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:338)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/PostPublishesRepository.php:46)
  at App\Repository\PostPublishesRepository->getTopPostsInGroupBox(1, 5)
     (src/Controller/DefaultController.php:204)
  at App\Controller\DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange))
     (src/Controller/DefaultController.php:32)
  at App\Controller\DefaultController->index(object(Request), object(DataExchange))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)

                                

[1/4] PDOException

PDOException:
PDO::__construct(): MySQL server has gone away

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39
  at PDO->__construct('mysql:host=192.168.202.148;port=3308;dbname=360_dalat;charset=utf8mb4;', '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=192.168.202.148;port=3308;dbname=360_dalat;charset=utf8mb4;', '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:28)
  at Doctrine\DBAL\Driver\PDOMySql\Driver->connect(array('url' => 'mysql://360_dalat:360Dalat%21%40%23456@192.168.202.148:3308/360_dalat?serverVersion=5.7', 'driver' => 'pdo_mysql', 'charset' => 'utf8mb4', 'host' => '192.168.202.148', 'port' => 3308, 'user' => '360_dalat', 'password' => '360Dalat!@#456', 'driverOptions' => array(), 'serverVersion' => '5.7', 'defaultTableOptions' => array('charset' => 'utf8mb4', 'collate' => 'utf8mb4_unicode_ci'), 'dbname' => '360_dalat'), '360_dalat', '360Dalat!@#456', array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:398)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1938)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1276)
  at Doctrine\DBAL\Connection->executeQuery('SELECT p0_.post_id AS post_id_0, p0_.title AS title_1, p0_.slug AS slug_2, p0_.sapo AS sapo_3, p0_.cate_id AS cate_id_4, p0_.published_date AS published_date_5, p0_.published_timestamp AS published_timestamp_6, p0_.avatar AS avatar_7, p0_.focus_avatar AS focus_avatar_8, p0_.author_name AS author_name_9, c1_.name AS name_10, c1_.slug AS slug_11 FROM post_publishes p0_ INNER JOIN group_box_items g2_ ON (g2_.data_id = p0_.post_id) INNER JOIN categories c1_ ON (c1_.cate_id = p0_.cate_id) WHERE g2_.key = ? AND p0_.published_timestamp &lt;= ? ORDER BY g2_.order ASC LIMIT 5', array(1, 1789182356), array('integer', 'integer'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(1, 1789182356), array('integer', 'integer'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:338)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1000)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, 1)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:757)
  at Doctrine\ORM\AbstractQuery->getResult()
     (src/Repository/PostPublishesRepository.php:46)
  at App\Repository\PostPublishesRepository->getTopPostsInGroupBox(1, 5)
     (src/Controller/DefaultController.php:204)
  at App\Controller\DefaultController->getFeaturedPosts(object(RedisUtils), object(DataExchange))
     (src/Controller/DefaultController.php:32)
  at App\Controller\DefaultController->index(object(Request), object(DataExchange))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)