Notice: Undefined index: headerService in /Library/WebServer/Documents/RWNAF2/Website/module/Application/src/Application/Service/HeaderService.php on line 18

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "192.168.1.9" and accepting TCP/IP connections on port 5432?' in /Library/WebServer/Documents/RWNAF2/Website/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Connection.php:320 Stack trace: #0 /Library/WebServer/Documents/RWNAF2/Website/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Connection.php(320): PDO->__construct('pgsql:dbname=rw...', 'appuser1', 'appuser1', Array) #1 /Library/WebServer/Documents/RWNAF2/Website/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Connection.php(431): Zend\Db\Adapter\Driver\Pdo\Connection->connect() #2 /Library/WebServer/Documents/RWNAF2/Website/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Adapter.php(190): Zend\Db\Adapter\Driver\Pdo\Connection->execute('SELECT id FROM ...') #3 /Library/WebServer/Documents/RWNAF2/Website/module/Application/src/Applica in /Library/WebServer/Documents/RWNAF2/Website/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Connection.php on line 331