• lostcitizen

    (@lostcitizen)


    I think it’s not working with wp 3.9 psql9.3 and nginx. Or I can’t get it to work i got an error in error.log:

    LÍNEA 1: SELECT @@SESSION.sql_mode
    ^ in /var/sites/example.com/www/wp-content/pg4wp/driver_pgsql.php on line 133
    PHP message: PHP Fatal error: Call to undefined function wpsql_errno() in /var/sites/example.com/www/wp-content/pg4wp/core.php(32) : eval()’d code on line 1531″ while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: example.com, request: “GET /wp-admin/install.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “www.example.com”, referrer: “http://www.lostcitizen.net/wp-admin/setup-config.php?step=2”

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • u10313335

    (@u10313335)

    Same issue here too.
    Any suggestion? Thanks!

    I had this error too. I fixed with the following work around.

    1- Please open the file wp-includes/wp-db.php
    2- Comment out the following lines

    /*
                    if ( ! empty( $this->dbh ) ) {
                            if ( $this->use_mysqli ) {
                                    $mysql_errno = mysqli_errno( $this->dbh );
                            } else {
                                    $mysql_errno = mysql_errno( $this->dbh );
                            }
                    }
    */

    It should install fine now.

    Thanks,

    Ahmed

    Alternative solution, create the errno function at the end of wp-content/pg4wp/driver_pgsql.php:

    function wpsql_errno( $connection) {
    		$result = pg_get_result($connection);
    		$result_status = pg_result_status($result);
    		return pg_result_error_field($result_status, PGSQL_DIAG_SQLSTATE);
    	}

    I’ve also posted this solution at my blog, if you would like to have a look 🙂
    Have a nice day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working with 3.9’ is closed to new replies.