object(PDOException)#6 (8) {
  ["message":protected]=>
  string(164) "SQLSTATE[08006] [7] could not connect to server: Connection refused
	Is the server running on host "195.201.133.246" and accepting
	TCP/IP connections on port 5433?"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  int(7)
  ["file":protected]=>
  string(44) "/var/www/html/SSR/Repos/ViewSettingsRepo.php"
  ["line":protected]=>
  int(20)
  ["trace":"Exception":private]=>
  array(4) {
    [0]=>
    array(6) {
      ["file"]=>
      string(44) "/var/www/html/SSR/Repos/ViewSettingsRepo.php"
      ["line"]=>
      int(20)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(3) "PDO"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        string(57) "pgsql:host=195.201.133.246;port=5433;dbname=view_settings"
        [1]=>
        string(8) "postgres"
        [2]=>
        string(24) "as4QkXGNBPqyQdNcSKNqqEQd"
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(48) "/var/www/html/SSR/Controllers/homeController.php"
      ["line"]=>
      int(22)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(16) "ViewSettingsRepo"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(28) "/var/www/html/SSR/Router.php"
      ["line"]=>
      int(64)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(14) "homeController"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(27) "/var/www/html/SSR/index.php"
      ["line"]=>
      int(7)
      ["function"]=>
      string(9) "GetAction"
      ["class"]=>
      string(6) "Router"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(1) "/"
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
  ["errorInfo"]=>
  NULL
}

Fatal error: Uncaught Error: Typed property ViewSettingsRepo::$db must not be accessed before initialization in /var/www/html/SSR/Repos/ViewSettingsRepo.php:32 Stack trace: #0 /var/www/html/SSR/Controllers/homeController.php(27): ViewSettingsRepo->GetByDomainName('ventivapor.com') #1 /var/www/html/SSR/Router.php(64): homeController->__construct() #2 /var/www/html/SSR/index.php(7): Router->GetAction('/') #3 {main} thrown in /var/www/html/SSR/Repos/ViewSettingsRepo.php on line 32