Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning on line 177 of db-mysql.php

  • For some reason I can’t explain, I sometimes (not always) get a message saying:

    Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /home/minui34/public_html/forum/bb-includes/db-mysql.php on line 177

    Any reason why?

Viewing 5 replies - 1 through 5 (of 5 total)
  • “A link to the server could not be established” It seem like the database server suddenly disconnect your connection.

    By any chance do you use remote database server?

    What version of BB are you using and what versions of PHP and SQL?

    bbPress version 0.9.0.4

    PHP version 5.2.6

    MySQL vesrion 5.0.67-community-log

    Someone told me to change :

    $this->rows_affected = mysql_affected_rows();

    for :

    $this->rows_affected = mysql_affected_rows($this->dbh);

    I’d upgrade to 0.9.0.5 personally but you could try that too :)

    I’ve updated. The bug is still there. I got it fixed by putting into comment

    <?php endif; echo "<!--"; do_action('topicmeta'); echo "-->"; ?>

    I did that because I think that was around where the error occured.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar