Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? in /home/www/montsegura/site/application/models/pgsqlModel.php on line 34 Warning: pg_last_error(): No PostgreSQL link opened yet in /home/www/montsegura/site/application/models/pgsqlModel.php on line 36 PostgreSQL Connection Database Error: Warning: pg_query() expects parameter 1 to be resource, boolean given in /home/www/montsegura/site/application/models/pgsqlModel.php on line 58 Warning: pg_last_error(): No PostgreSQL link opened yet in /home/www/montsegura/site/application/models/pgsqlModel.php on line 60 PostgreSQL Query Error: On: SELECT id,name,itinerary,description,description2,route_type_id,horizontal_distance,positive_difference,negative_difference,aproximated_time,aproximated_reverse_time,mide_harshness,mide_orientation,mide_difficulty,mide_effort,mide_reverse_effort,reference,published,ST_ZMax(geom) AS max_altitude,mide_rappel,mide_climb_grade,mide_snow_possible,mide_snow_certain,override_time,override_reverse_time,override_horizontal_distance,override_positive_difference,override_negative_difference FROM routes WHERE id=49;