PDOException: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: FATAL: sorry, too many clients already
connection to server at "127.0.0.1", port 5432 failed: FATAL: sorry, too many clients already in /var/www/html/includes/pdoconnection.class.php:39
Stack trace:
#0 /var/www/html/includes/pdoconnection.class.php(39): PDO->__construct()
#1 /var/www/html/includes/pdoconnection.class.php(59): PDOConnection->createConnection()
#2 /var/www/html/includes/pdoconnection.class.php(84): PDOConnection->getConnection()
#3 /var/www/html/includes/pdoconnection.class.php(96): PDOConnection->prepare()
#4 /var/www/html/includes/repositories/modelrepository.class.php(39): PDOConnection->prepareAndExec()
#5 /var/www/html/includes/repositories/stationrepository.class.php(44): ModelRepository->getObjectFromSql()
#6 /var/www/html/public/views/raw.php(7): StationRepository->getObjectById()
#7 /var/www/html/public/index.php(364): include('...')
#8 {main}