Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections? in /opt/www/amp.ridus.ru/protected/classes/postgresql.class.php on line 7
Fatal error: Uncaught TypeError: pg_query(): Argument #1 ($connection) must be of type PgSql\Connection, false given in /opt/www/amp.ridus.ru/protected/classes/postgresql.class.php:28
Stack trace:
#0 /opt/www/amp.ridus.ru/protected/classes/postgresql.class.php(28): pg_query()
#1 /opt/www/amp.ridus.ru/protected/classes/postgresql.class.php(56): PostgreSQL->query()
#2 /opt/www/amp.ridus.ru/protected/controllers/AbstractController.php(320): PostgreSQL->fetch()
#3 /opt/www/amp.ridus.ru/protected/controllers/Controller.php(42): AbstractController->getCategory()
#4 /opt/www/amp.ridus.ru/protected/controllers/ContentController.php(156): Controller->__construct()
#5 /opt/www/amp.ridus.ru/www/index.php(89): ContentController->__construct()
#6 {main}
thrown in /opt/www/amp.ridus.ru/protected/classes/postgresql.class.php on line 28