Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
Stack trace:
#0 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): PDO->__construct('mysql:host=127....', 'sanandr6_ajsdhg...', Object(SensitiveParameterValue), Array)
#1 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(24): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'sanandr6_ajsdhg...', 'P3G65iX4b6MTPiJ', Array)
#2 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'sanandr6_ajsdhg...', 'P3G65iX4b6MTPiJ', Array)
#3 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1952): Doctrine\DBAL\Connection->connect()
#4 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1290): Doctrine\DBAL\Connection->getWrappedConnection()
#5 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array)
#6 /home1/sanandr6/public_html/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute()
#7 /home1/sanandr6/public_html/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(7146, true)
#8 /home1/sanandr6/public_html/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array)
#9 /home1/sanandr6/public_html/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array)
#10 /home1/sanandr6/public_html/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array)
#11 /home1/sanandr6/public_html/controllers/front/ProductController.php(424): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true)
#12 /home1/sanandr6/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#13 /home1/sanandr6/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#14 /home1/sanandr6/public_html/index.php(28): DispatcherCore->dispatch()
#15 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1040] Too many connections in /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(44): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(24): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'sanandr6_ajsdhg...', 'P3G65iX4b6MTPiJ', Array)
#2 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'sanandr6_ajsdhg...', 'P3G65iX4b6MTPiJ', Array)
#3 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1952): Doctrine\DBAL\Connection->connect()
#4 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1290): Doctrine\DBAL\Connection->getWrappedConnection()
#5 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array)
#6 /home1/sanandr6/public_html/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute()
#7 /home1/sanandr6/public_html/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(7146, true)
#8 /home1/sanandr6/public_html/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array)
#9 /home1/sanandr6/public_html/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array)
#10 /home1/sanandr6/public_html/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array)
#11 /home1/sanandr6/public_html/controllers/front/ProductController.php(424): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true)
#12 /home1/sanandr6/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#13 /home1/sanandr6/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#14 /home1/sanandr6/public_html/index.php(28): DispatcherCore->dispatch()
#15 {main}
Next Doctrine\DBAL\Exception\DriverException: An exception occurred in driver: SQLSTATE[HY000] [1040] Too many connections in /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128
Stack trace:
#0 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(182): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDO\Exception))
#1 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception), 'An exception oc...')
#2 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(31): Doctrine\DBAL\DBALException::driverException(Object(Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(Doctrine\DBAL\Driver\PDO\Exception))
#3 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'sanandr6_ajsdhg...', 'P3G65iX4b6MTPiJ', Array)
#4 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1952): Doctrine\DBAL\Connection->connect()
#5 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1290): Doctrine\DBAL\Connection->getWrappedConnection()
#6 /home1/sanandr6/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(212): Doctrine\DBAL\Connection->executeQuery('SELECT AVG(pc.g...', Array, Array)
#7 /home1/sanandr6/public_html/modules/productcomments/src/Repository/ProductCommentRepository.php(219): Doctrine\DBAL\Query\QueryBuilder->execute()
#8 /home1/sanandr6/public_html/modules/productcomments/productcomments.php(922): PrestaShop\Module\ProductComment\Repository\ProductCommentRepository->getAverageGrade(7146, true)
#9 /home1/sanandr6/public_html/classes/Hook.php(1043): ProductComments->hookFilterProductContent(Array)
#10 /home1/sanandr6/public_html/classes/Hook.php(418): HookCore::coreCallHook(Object(ProductComments), 'hookFilterProdu...', Array)
#11 /home1/sanandr6/public_html/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array)
#12 /home1/sanandr6/public_html/controllers/front/ProductController.php(424): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true)
#13 /home1/sanandr6/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#14 /home1/sanandr6/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#15 /home1/sanandr6/public_html/index.php(28): DispatcherCore->dispatch()
#16 {main}
Next PrestaShop\PrestaShop\Core\Exception\CoreException: An exception occurred in driver: SQLSTATE[HY000] [1040] Too many connections in /home1/sanandr6/public_html/classes/Hook.php:431
Stack trace:
#0 /home1/sanandr6/public_html/classes/Hook.php(981): HookCore::callHookOn(Object(ProductComments), 'filterProductCo...', Array)
#1 /home1/sanandr6/public_html/controllers/front/ProductController.php(424): HookCore::exec('filterProductCo...', Array, NULL, false, true, false, NULL, true)
#2 /home1/sanandr6/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent()
#3 /home1/sanandr6/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#4 /home1/sanandr6/public_html/index.php(28): DispatcherCore->dispatch()
#5 {main}
thrown in /home1/sanandr6/public_html/classes/Hook.php on line 431