http://beta.360dalat.com/da-lat-buon.html

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.      * @throws NonUniqueResultException
  2.      */
  3.     public function getOneOrNullResult($hydrationMode null)
  4.     {
  5.         try {
  6.             $result $this->execute(null$hydrationMode);
  7.         } catch (NoResultException $e) {
  8.             return null;
  9.         }
AbstractQuery->getOneOrNullResult() in src/Repository/TagsRepository.php (line 97)
  1.             ->where('t.slug = :slug')
  2.             ->setParameter('slug'$slug)
  3.             ->setMaxResults(1)
  4.             ->getQuery();
  5.         return $query->getOneOrNullResult();
  6.     }//end getTagBySlug()
  7. }
TagsRepository->getTagBySlug('da-lat-buon') in src/Controller/Tag/IndexController.php (line 200)
  1.     public function getTagDataBySlug($cacheService$exchangeService$slug)
  2.     {
  3.         $cacheKey sprintf(Constants::CACHE_TAG_DETAIL$slug);
  4.         if (($tagData $cacheService->get($cacheKey)) === false) {
  5.             $em $this->getDoctrine()->getManager();
  6.             $tag $em->getRepository(Tags::class)->getTagBySlug($slug);
  7.             if ($tag) {
  8.                 $tagData $exchangeService->exchangeTagDetail($tag);
  9.                 $cacheService->set($cacheKey$tagData$this->getParameter('cache_time')['hour']);
  10.             }
IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon') in src/Controller/Tag/IndexController.php (line 45)
  1.         CryptUtils $cryptUtils,
  2.         Elasticsearch $elasticSearch
  3.     )
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $tagData $this->getTagDataBySlug($cacheService$exchangeService$slug);
  7.         if (!$tagData) {
  8.             throw $this->createNotFoundException('The requested tag could not be found');
  9. //            return $this->createNotFoundWithContent($slug, $elasticSearch, $exchangeService, $cryptUtils);
  10.         }
in vendor/symfony/http-kernel/HttpKernel.php->detailAction (line 149)
  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.      * @throws NonUniqueResultException
  2.      */
  3.     public function getOneOrNullResult($hydrationMode null)
  4.     {
  5.         try {
  6.             $result $this->execute(null$hydrationMode);
  7.         } catch (NoResultException $e) {
  8.             return null;
  9.         }
AbstractQuery->getOneOrNullResult() in src/Repository/TagsRepository.php (line 97)
  1.             ->where('t.slug = :slug')
  2.             ->setParameter('slug'$slug)
  3.             ->setMaxResults(1)
  4.             ->getQuery();
  5.         return $query->getOneOrNullResult();
  6.     }//end getTagBySlug()
  7. }
TagsRepository->getTagBySlug('da-lat-buon') in src/Controller/Tag/IndexController.php (line 200)
  1.     public function getTagDataBySlug($cacheService$exchangeService$slug)
  2.     {
  3.         $cacheKey sprintf(Constants::CACHE_TAG_DETAIL$slug);
  4.         if (($tagData $cacheService->get($cacheKey)) === false) {
  5.             $em $this->getDoctrine()->getManager();
  6.             $tag $em->getRepository(Tags::class)->getTagBySlug($slug);
  7.             if ($tag) {
  8.                 $tagData $exchangeService->exchangeTagDetail($tag);
  9.                 $cacheService->set($cacheKey$tagData$this->getParameter('cache_time')['hour']);
  10.             }
IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon') in src/Controller/Tag/IndexController.php (line 45)
  1.         CryptUtils $cryptUtils,
  2.         Elasticsearch $elasticSearch
  3.     )
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $tagData $this->getTagDataBySlug($cacheService$exchangeService$slug);
  7.         if (!$tagData) {
  8.             throw $this->createNotFoundException('The requested tag could not be found');
  9. //            return $this->createNotFoundWithContent($slug, $elasticSearch, $exchangeService, $cryptUtils);
  10.         }
in vendor/symfony/http-kernel/HttpKernel.php->detailAction (line 149)
  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.      * @throws NonUniqueResultException
  2.      */
  3.     public function getOneOrNullResult($hydrationMode null)
  4.     {
  5.         try {
  6.             $result $this->execute(null$hydrationMode);
  7.         } catch (NoResultException $e) {
  8.             return null;
  9.         }
AbstractQuery->getOneOrNullResult() in src/Repository/TagsRepository.php (line 97)
  1.             ->where('t.slug = :slug')
  2.             ->setParameter('slug'$slug)
  3.             ->setMaxResults(1)
  4.             ->getQuery();
  5.         return $query->getOneOrNullResult();
  6.     }//end getTagBySlug()
  7. }
TagsRepository->getTagBySlug('da-lat-buon') in src/Controller/Tag/IndexController.php (line 200)
  1.     public function getTagDataBySlug($cacheService$exchangeService$slug)
  2.     {
  3.         $cacheKey sprintf(Constants::CACHE_TAG_DETAIL$slug);
  4.         if (($tagData $cacheService->get($cacheKey)) === false) {
  5.             $em $this->getDoctrine()->getManager();
  6.             $tag $em->getRepository(Tags::class)->getTagBySlug($slug);
  7.             if ($tag) {
  8.                 $tagData $exchangeService->exchangeTagDetail($tag);
  9.                 $cacheService->set($cacheKey$tagData$this->getParameter('cache_time')['hour']);
  10.             }
IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon') in src/Controller/Tag/IndexController.php (line 45)
  1.         CryptUtils $cryptUtils,
  2.         Elasticsearch $elasticSearch
  3.     )
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $tagData $this->getTagDataBySlug($cacheService$exchangeService$slug);
  7.         if (!$tagData) {
  8.             throw $this->createNotFoundException('The requested tag could not be found');
  9. //            return $this->createNotFoundWithContent($slug, $elasticSearch, $exchangeService, $cryptUtils);
  10.         }
in vendor/symfony/http-kernel/HttpKernel.php->detailAction (line 149)
  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.      * @throws NonUniqueResultException
  2.      */
  3.     public function getOneOrNullResult($hydrationMode null)
  4.     {
  5.         try {
  6.             $result $this->execute(null$hydrationMode);
  7.         } catch (NoResultException $e) {
  8.             return null;
  9.         }
AbstractQuery->getOneOrNullResult() in src/Repository/TagsRepository.php (line 97)
  1.             ->where('t.slug = :slug')
  2.             ->setParameter('slug'$slug)
  3.             ->setMaxResults(1)
  4.             ->getQuery();
  5.         return $query->getOneOrNullResult();
  6.     }//end getTagBySlug()
  7. }
TagsRepository->getTagBySlug('da-lat-buon') in src/Controller/Tag/IndexController.php (line 200)
  1.     public function getTagDataBySlug($cacheService$exchangeService$slug)
  2.     {
  3.         $cacheKey sprintf(Constants::CACHE_TAG_DETAIL$slug);
  4.         if (($tagData $cacheService->get($cacheKey)) === false) {
  5.             $em $this->getDoctrine()->getManager();
  6.             $tag $em->getRepository(Tags::class)->getTagBySlug($slug);
  7.             if ($tag) {
  8.                 $tagData $exchangeService->exchangeTagDetail($tag);
  9.                 $cacheService->set($cacheKey$tagData$this->getParameter('cache_time')['hour']);
  10.             }
IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon') in src/Controller/Tag/IndexController.php (line 45)
  1.         CryptUtils $cryptUtils,
  2.         Elasticsearch $elasticSearch
  3.     )
  4.     {
  5.         $cacheService $this->getCacheProvider(Constants::SERVER_CACHE_ARTICLE);
  6.         $tagData $this->getTagDataBySlug($cacheService$exchangeService$slug);
  7.         if (!$tagData) {
  8.             throw $this->createNotFoundException('The requested tag could not be found');
  9. //            return $this->createNotFoundWithContent($slug, $elasticSearch, $exchangeService, $cryptUtils);
  10.         }
in vendor/symfony/http-kernel/HttpKernel.php->detailAction (line 149)
  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 t0_.tag_id AS tag_id_0, t0_.name AS name_1, t0_.avatar AS avatar_2, t0_.description AS description_3, t0_.slug AS slug_4, t0_.post_count AS post_count_5, s1_.tag_id AS tag_id_6, s1_.summary AS summary_7, s1_.focus_posts AS focus_posts_8 FROM tags t0_ LEFT JOIN special_tags s1_ ON (t0_.tag_id = s1_.tag_id) WHERE t0_.slug = ? LIMIT 1', array('da-lat-buon'), array(2), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array('da-lat-buon'), array(2))
     (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, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:796)
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (src/Repository/TagsRepository.php:97)
  at App\Repository\TagsRepository->getTagBySlug('da-lat-buon')
     (src/Controller/Tag/IndexController.php:200)
  at App\Controller\Tag\IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon')
     (src/Controller/Tag/IndexController.php:45)
  at App\Controller\Tag\IndexController->detailAction('da-lat-buon', object(Request), object(DataExchange), object(CryptUtils), object(ElasticSearch))
     (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 t0_.tag_id AS tag_id_0, t0_.name AS name_1, t0_.avatar AS avatar_2, t0_.description AS description_3, t0_.slug AS slug_4, t0_.post_count AS post_count_5, s1_.tag_id AS tag_id_6, s1_.summary AS summary_7, s1_.focus_posts AS focus_posts_8 FROM tags t0_ LEFT JOIN special_tags s1_ ON (t0_.tag_id = s1_.tag_id) WHERE t0_.slug = ? LIMIT 1', array('da-lat-buon'), array(2), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array('da-lat-buon'), array(2))
     (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, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:796)
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (src/Repository/TagsRepository.php:97)
  at App\Repository\TagsRepository->getTagBySlug('da-lat-buon')
     (src/Controller/Tag/IndexController.php:200)
  at App\Controller\Tag\IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon')
     (src/Controller/Tag/IndexController.php:45)
  at App\Controller\Tag\IndexController->detailAction('da-lat-buon', object(Request), object(DataExchange), object(CryptUtils), object(ElasticSearch))
     (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 t0_.tag_id AS tag_id_0, t0_.name AS name_1, t0_.avatar AS avatar_2, t0_.description AS description_3, t0_.slug AS slug_4, t0_.post_count AS post_count_5, s1_.tag_id AS tag_id_6, s1_.summary AS summary_7, s1_.focus_posts AS focus_posts_8 FROM tags t0_ LEFT JOIN special_tags s1_ ON (t0_.tag_id = s1_.tag_id) WHERE t0_.slug = ? LIMIT 1', array('da-lat-buon'), array(2), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array('da-lat-buon'), array(2))
     (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, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:796)
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (src/Repository/TagsRepository.php:97)
  at App\Repository\TagsRepository->getTagBySlug('da-lat-buon')
     (src/Controller/Tag/IndexController.php:200)
  at App\Controller\Tag\IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon')
     (src/Controller/Tag/IndexController.php:45)
  at App\Controller\Tag\IndexController->detailAction('da-lat-buon', object(Request), object(DataExchange), object(CryptUtils), object(ElasticSearch))
     (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 t0_.tag_id AS tag_id_0, t0_.name AS name_1, t0_.avatar AS avatar_2, t0_.description AS description_3, t0_.slug AS slug_4, t0_.post_count AS post_count_5, s1_.tag_id AS tag_id_6, s1_.summary AS summary_7, s1_.focus_posts AS focus_posts_8 FROM tags t0_ LEFT JOIN special_tags s1_ ON (t0_.tag_id = s1_.tag_id) WHERE t0_.slug = ? LIMIT 1', array('da-lat-buon'), array(2), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array('da-lat-buon'), array(2))
     (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, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:954)
  at Doctrine\ORM\AbstractQuery->execute(null, null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:796)
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (src/Repository/TagsRepository.php:97)
  at App\Repository\TagsRepository->getTagBySlug('da-lat-buon')
     (src/Controller/Tag/IndexController.php:200)
  at App\Controller\Tag\IndexController->getTagDataBySlug(object(RedisUtils), object(DataExchange), 'da-lat-buon')
     (src/Controller/Tag/IndexController.php:45)
  at App\Controller\Tag\IndexController->detailAction('da-lat-buon', object(Request), object(DataExchange), object(CryptUtils), object(ElasticSearch))
     (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)