Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117 Stack trace: #0 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute(NULL) #1 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1304): Doctrine\DBAL\Driver\PDOStatement->execute() #2 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array) #3 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute() #4 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(623740, true) #5 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array) #6 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array) #7 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array) #8 /var/www/www-root/data/www/progresselektro.ru/controllers/front/ProductController.php(432): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true) #9 /var/www/www-root/data/www/progresselektro.ru/classes/controller/Controller.php(319): ProductControllerCore->initContent() #10 /var/www/www-root/data/www/progresselektro.ru/classes/Dispatcher.php(510): ControllerCore->run() #11 /var/www/www-root/data/www/progresselektro.ru/index.php(28): DispatcherCore->dispatch() #12 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 Stack trace: #0 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(119): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException)) #1 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1304): Doctrine\DBAL\Driver\PDOStatement->execute() #2 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array) #3 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute() #4 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(623740, true) #5 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array) #6 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array) #7 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array) #8 /var/www/www-root/data/www/progresselektro.ru/controllers/front/ProductController.php(432): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true) #9 /var/www/www-root/data/www/progresselektro.ru/classes/controller/Controller.php(319): ProductControllerCore->initContent() #10 /var/www/www-root/data/www/progresselektro.ru/classes/Dispatcher.php(510): ControllerCore->run() #11 /var/www/www-root/data/www/progresselektro.ru/index.php(28): DispatcherCore->dispatch() #12 {main} Next Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing 'SELECT AVG(pc.grade) AS averageGrade FROM ps_product_comment pc WHERE (pc.id_product = ?) AND (pc.deleted = ?) AND (pc.validate = ?)' with params [623740, 0, 1]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115 Stack trace: #0 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(182): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDO\Exception)) #1 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(159): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception), 'An exception oc...') #2 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2226): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception), 'SELECT AVG(pc.g...', Array) #3 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1313): Doctrine\DBAL\Connection->handleExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDO\Exception), 'SELECT AVG(pc.g...', Array, Array) #4 /var/www/www-root/data/www/progresselektro.ru/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array) #5 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute() #6 /var/www/www-root/data/www/progresselektro.ru/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(623740, true) #7 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array) #8 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array) #9 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array) #10 /var/www/www-root/data/www/progresselektro.ru/controllers/front/ProductController.php(432): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true) #11 /var/www/www-root/data/www/progresselektro.ru/classes/controller/Controller.php(319): ProductControllerCore->initContent() #12 /var/www/www-root/data/www/progresselektro.ru/classes/Dispatcher.php(510): ControllerCore->run() #13 /var/www/www-root/data/www/progresselektro.ru/index.php(28): DispatcherCore->dispatch() #14 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: An exception occurred while executing 'SELECT AVG(pc.grade) AS averageGrade FROM ps_product_comment pc WHERE (pc.id_product = ?) AND (pc.deleted = ?) AND (pc.validate = ?)' with params [623740, 0, 1]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php:431 Stack trace: #0 /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array) #1 /var/www/www-root/data/www/progresselektro.ru/controllers/front/ProductController.php(432): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true) #2 /var/www/www-root/data/www/progresselektro.ru/classes/controller/Controller.php(319): ProductControllerCore->initContent() #3 /var/www/www-root/data/www/progresselektro.ru/classes/Dispatcher.php(510): ControllerCore->run() #4 /var/www/www-root/data/www/progresselektro.ru/index.php(28): DispatcherCore->dispatch() #5 {main} thrown in /var/www/www-root/data/www/progresselektro.ru/classes/Hook.php on line 431