Warning: pg_connect(): Unable to connect to PostgreSQL server: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. in C:\inetpub\afci\lib\data.php on line 10

Fatal error: Uncaught TypeError: pg_query(): Argument #1 ($connection) must be of type PgSql\Connection, false given in C:\inetpub\afci\lib\data.php:14 Stack trace: #0 C:\inetpub\afci\lib\data.php(14): pg_query() #1 C:\inetpub\afci\resources.php(5): include_once('...') #2 {main} thrown in C:\inetpub\afci\lib\data.php on line 14