Package: phpbb2 Version: 2.0.13-3 Severity: important When using phpbb2 2.0.13-3 with postgreSQL as the backend, the following messages are printed at the top of the forum, when the user goes to the main page.
Warning: pg_set_client_encoding(): supplied argument is not a valid PostgreSQL link resource in /usr/share/phpbb2/site/db/postgres7.php on line 91 Warning: Cannot modify header information - headers already sent by (output started at /usr/share/phpbb2/site/db/postgres7.php:91) in /usr/share/phpbb2/site/includes/sessions.php on line 188 Warning: Cannot modify header information - headers already sent by (output started at /usr/share/phpbb2/site/db/postgres7.php:91) in /usr/share/phpbb2/site/includes/sessions.php on line 189 Description of the problem: Line 91 in /usr/share/phpbb2/site/db/postgres7.php contains: pg_set_client_encoding ( $this->db_connect_id, $encoding ); The _following_ line initializes $this->db_connect_id. Therefore the function call pg_set_client_encoding() has an uninitialized connection id. Fix: This bug is fixed by simply moving the line (line 92): $this->db_connect_id = ( $this->persistency ) ? pg_pconnect($this->connect_string) : pg_connect($this->connect_string); to before the pg_set_client_encoding() call. Running debian sarge on i386. -- =================================== Tim Molteno VideoScript
pgpyr2zBNriZM.pgp
Description: PGP signature