Info
- 6 posts
- 3 voices
- Started 2 years ago by Madeck
- Latest reply from Madeck
- This topic is resolved
Warning on line 177 of db-mysql.php
-
- Posted 2 years ago #
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?
-
- Posted 2 years ago #
"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?
-
- Posted 2 years ago #
What version of BB are you using and what versions of PHP and SQL?
-
- Posted 2 years ago #
bbPress version 0.9.0.4
PHP version 5.2.6
MySQL vesrion 5.0.67-community-logSomeone told me to change :
$this->rows_affected = mysql_affected_rows();
for :
$this->rows_affected = mysql_affected_rows($this->dbh); -
- Posted 2 years ago #
I'd upgrade to 0.9.0.5 personally but you could try that too :)
-
- Posted 2 years ago #
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.
-
You must log in to post.