Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter smashingred

    (@smashingred)

    I finally found the answer to my question. A plugin I was using: CoppermineSC was the root of my problems. Where it was making a DB connection it was killing the WP db connection. After nearly 8 hours of wasted time I did a Google search to find this solution. Apparently the plugin didn’t use the newlink param of the mysql_connect() and therefore was starting a new connection to the WP DB instead of starting a new one.

    If you are using CoppermineSC make sure you change the following line (around 1096) from :
    $this->cpgscdbh = @mysql_connect($dbhost, $dbuser, $dbpassword);

    to:

    $this->cpgscdbh = @mysql_connect($dbhost, $dbuser, $dbpassword, TRUE);

    In addition any plugins that are accessing the db should include this the newlink param value or you could end up breaking your WP.

    Cheers

    Jay

    PS: Stack on which I had issues was LAMP, Apache 2.2, MySQL 5.0.25, PHP 5.2.5. WordPress 2.5.1 and Coppermine 1.44.

    Thread Starter smashingred

    (@smashingred)

    Still looking for help here. Anyone?

    Does anyone else know if this is the only way to correct the anomalies with the categories. I am also having a similar issue with author listings not working correctly either but I am loathe to restore 2.2, upgrade to 2.3 and then to 2.5.

    Having the same problems with 2.5.1. What MySQL version are you using on your server? I am using MySQL 5.0.45 on the problem db. Did you use WP Automatic Upgrade to upgrade (did on this site).

    Actually it isn’t showing archive list either. I’m also having a problem with it not showing author names on index. It shows one of them and then you scroll down to look at another post and the author name is not showing. I had thought it might have been an illegal copied and pasted character into the post that might have caused a problem but I unpublished all the latest posts and it doesn’t help.

    I actually think this is function bug relating to the db but I am not as up on the WP classes as I once was.

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