WordPress.org

Ready to get started?Download WordPress

Forums

PostgreSQL for WordPress (PG4WP)
[resolved] Minor change required to make this work (4 posts)

  1. ogmandrake
    Member
    Posted 3 years ago #

    Had to comment out the require statement for wp-db.php in the install.php file in order for the installation process to complete.

    More details here: http://blog.beefyapps.com

  2. ogmandrake
    Member
    Posted 3 years ago #

    I think this was actually version 3.0.3, didn't try 3.1.

  3. ogmandrake
    Member
    Posted 3 years ago #

    Also the users were not loading so I added some code to fix the queries so that the Order By fields were always listed in the select statement. Not pretty but it seemed to work everywhere I went.

    For reference, here is the line of code that I added to the selects:
    $sql = preg_replace('/(^SELECT DISTINCT\(.+?\))(.+?ORDER BY )(.+?)(\b.+?$)/', '$1,$3$2$3$4', $sql);

    and you can also find more info in the comments at my blog: http://blog.beefyapps.com/2010/12/wordpress-postgresql-trouble-php-fatal-error-cannot-redeclare-class-wpdb/

    If you want me to send you the entire file drop me a line on the blog.

  4. avendanl
    Member
    Posted 3 years ago #

    Hi,
    are you using any plugins that require interaction with pgsql? I am having the hardest time trying to get pg4wp to play well with Formidable....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic