DatabaseException. Database connection failed: SQLSTATE[08006] [7] FATAL: sorry, too many clients already
#0 /data/html/framework2/database/pgsqlconnection.php(16): DBConnection->Connect
#1 /data/html/framework2/database/dbconnection.php(62): PgSQLConnection->__construct
#2 /data/html/framework2/configuration/configurationmanager.php(333): DBConnection::Factory
#3 /data/html/cinesargentinos.com/service/servicesitio.php(76): ConfigurationManager::GetDatabaseConnection
#4 /data/html/cinesargentinos.com/service/securitytokenfront.php(41): ServiceSitio::GetByUrl
#5 /data/html/cinesargentinos.com/userinterface/peliculapage.php(19): SecurityTokenFront::GetCurrentSitio
#6 (): PeliculaPage->__construct
#7 /data/html/cinesargentinos.com/service/urlrewriter.php(37): ReflectionClass->newInstanceArgs
#8 /data/html/cinesargentinos.com/index.php(12): UrlRewriter::Handle

67#			return $res;
68#		}
69#	
70#		public static function GetByUrl($url)
71#		{
72#			$cacheKey = self::BuildGetByURLCacheKey($url);
73#	
74#			if (($res = CaCacheManager::Get($cacheKey)) === false )
75#			{
76# $conn = ConfigurationManager::GetDatabaseConnection();
77# 78# $stmt = $conn->Prepare('SELECT * FROM "SitioGetByURL"(:Url);'); 79# $stmt->Bind(':Url', $url, DBConnection::String); 80# 81# $res = null; 82# if ($row = $stmt->SelectRow()) 83# { 84# $res = self::RowToEntity($row); 85# } 86# CACacheManager::Add($cacheKey, $res);