Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 Stack trace: #0 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): PDO->__construct() #1 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(25): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect() #3 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect() #4 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #5 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform() #6 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform() #7 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform() #8 /var/www/prestashop/var/cache/dev/FrontContainer.php(396): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection() #9 /var/www/prestashop/var/cache/dev/FrontContainer.php(840): FrontContainer->getDoctrine_Dbal_DefaultConnectionService() #10 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getProductCommentRepositoryService() #11 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make() #12 /var/www/prestashop/classes/module/Module.php(3446): Symfony\Component\DependencyInjection\Container->get() #13 /var/www/prestashop/modules/productcomments/productcomments.php(949): ModuleCore->get() #14 /var/www/prestashop/classes/Hook.php(1077): ProductComments->hookFilterProductContent() #15 /var/www/prestashop/classes/Hook.php(418): HookCore::coreCallHook() #16 /var/www/prestashop/classes/Hook.php(983): HookCore::callHookOn() #17 /var/www/prestashop/controllers/front/ProductController.php(432): HookCore::exec() #18 /var/www/prestashop/classes/controller/Controller.php(319): ProductControllerCore->initContent() #19 /var/www/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #20 /var/www/prestashop/index.php(28): DispatcherCore->dispatch() #21 {main} Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1040] Too many connections in /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 Stack trace: #0 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(44): Doctrine\DBAL\Driver\PDO\Exception::new() #1 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(25): Doctrine\DBAL\Driver\PDOConnection->__construct() #2 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect() #3 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect() #4 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #5 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform() #6 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform() #7 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform() #8 /var/www/prestashop/var/cache/dev/FrontContainer.php(396): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection() #9 /var/www/prestashop/var/cache/dev/FrontContainer.php(840): FrontContainer->getDoctrine_Dbal_DefaultConnectionService() #10 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getProductCommentRepositoryService() #11 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make() #12 /var/www/prestashop/classes/module/Module.php(3446): Symfony\Component\DependencyInjection\Container->get() #13 /var/www/prestashop/modules/productcomments/productcomments.php(949): ModuleCore->get() #14 /var/www/prestashop/classes/Hook.php(1077): ProductComments->hookFilterProductContent() #15 /var/www/prestashop/classes/Hook.php(418): HookCore::coreCallHook() #16 /var/www/prestashop/classes/Hook.php(983): HookCore::callHookOn() #17 /var/www/prestashop/controllers/front/ProductController.php(432): HookCore::exec() #18 /var/www/prestashop/classes/controller/Controller.php(319): ProductControllerCore->initContent() #19 /var/www/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #20 /var/www/prestashop/index.php(28): DispatcherCore->dispatch() #21 {main} Next Doctrine\DBAL\Exception\DriverException: An exception occurred in driver: SQLSTATE[HY000] [1040] Too many connections in /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128 Stack trace: #0 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(182): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() #1 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(169): Doctrine\DBAL\DBALException::wrapException() #2 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(31): Doctrine\DBAL\DBALException::driverException() #3 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(412): Doctrine\DBAL\Driver\PDOMySql\Driver->connect() #4 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(475): Doctrine\DBAL\Connection->connect() #5 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(437): Doctrine\DBAL\Connection->getDatabasePlatformVersion() #6 /var/www/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(379): Doctrine\DBAL\Connection->detectDatabasePlatform() #7 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(140): Doctrine\DBAL\Connection->getDatabasePlatform() #8 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform() #9 /var/www/prestashop/var/cache/dev/FrontContainer.php(396): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection() #10 /var/www/prestashop/var/cache/dev/FrontContainer.php(840): FrontContainer->getDoctrine_Dbal_DefaultConnectionService() #11 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getProductCommentRepositoryService() #12 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make() #13 /var/www/prestashop/classes/module/Module.php(3446): Symfony\Component\DependencyInjection\Container->get() #14 /var/www/prestashop/modules/productcomments/productcomments.php(949): ModuleCore->get() #15 /var/www/prestashop/classes/Hook.php(1077): ProductComments->hookFilterProductContent() #16 /var/www/prestashop/classes/Hook.php(418): HookCore::coreCallHook() #17 /var/www/prestashop/classes/Hook.php(983): HookCore::callHookOn() #18 /var/www/prestashop/controllers/front/ProductController.php(432): HookCore::exec() #19 /var/www/prestashop/classes/controller/Controller.php(319): ProductControllerCore->initContent() #20 /var/www/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #21 /var/www/prestashop/index.php(28): DispatcherCore->dispatch() #22 {main} Next Doctrine\DBAL\Exception: An exception occurred while establishing a connection to figure out your platform version. You can circumvent this by setting a 'server_version' configuration value For further information have a look at: https://github.com/doctrine/DoctrineBundle/issues/673 in /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php:142 Stack trace: #0 /var/www/prestashop/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform() #1 /var/www/prestashop/var/cache/dev/FrontContainer.php(396): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection() #2 /var/www/prestashop/var/cache/dev/FrontContainer.php(840): FrontContainer->getDoctrine_Dbal_DefaultConnectionService() #3 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(257): FrontContainer->getProductCommentRepositoryService() #4 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make() #5 /var/www/prestashop/classes/module/Module.php(3446): Symfony\Component\DependencyInjection\Container->get() #6 /var/www/prestashop/modules/productcomments/productcomments.php(949): ModuleCore->get() #7 /var/www/prestashop/classes/Hook.php(1077): ProductComments->hookFilterProductContent() #8 /var/www/prestashop/classes/Hook.php(418): HookCore::coreCallHook() #9 /var/www/prestashop/classes/Hook.php(983): HookCore::callHookOn() #10 /var/www/prestashop/controllers/front/ProductController.php(432): HookCore::exec() #11 /var/www/prestashop/classes/controller/Controller.php(319): ProductControllerCore->initContent() #12 /var/www/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #13 /var/www/prestashop/index.php(28): DispatcherCore->dispatch() #14 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: An exception occurred while establishing a connection to figure out your platform version. You can circumvent this by setting a 'server_version' configuration value For further information have a look at: https://github.com/doctrine/DoctrineBundle/issues/673 in /var/www/prestashop/classes/Hook.php:431 Stack trace: #0 /var/www/prestashop/classes/Hook.php(983): HookCore::callHookOn() #1 /var/www/prestashop/controllers/front/ProductController.php(432): HookCore::exec() #2 /var/www/prestashop/classes/controller/Controller.php(319): ProductControllerCore->initContent() #3 /var/www/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #4 /var/www/prestashop/index.php(28): DispatcherCore->dispatch() #5 {main} thrown in /var/www/prestashop/classes/Hook.php on line 431