Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: no more connections allowed (max_client_conn) in /usr/local/etc/freshports/database.php on line 10

Fatal error: Uncaught TypeError: pg_escape_string(): Argument #1 ($connection) must be of type PgSql\Connection, bool given in /usr/local/www/freshports/classes/element_record.php:50 Stack trace: #0 /usr/local/www/freshports/classes/element_record.php(50): pg_escape_string(false, '/ports/head/sec...') #1 /usr/local/www/freshports/rewrite/functions.php(103): ElementRecord->FetchByName('/ports/head/sec...') #2 /usr/local/www/freshports/www/--/index.php(159): freshports_Parse404URI('/security/opens...', false) #3 {main} thrown in /usr/local/www/freshports/classes/element_record.php on line 50