[Bb-trac] Re: [bbPress] #745: When using mysqli extension,
db connect fails
bbPress
bb-trac at lists.bbpress.org
Sun Sep 30 06:46:36 GMT 2007
#745: When using mysqli extension, db connect fails
----------------------------+-----------------------------------------------
Reporter: mdawaffe | Owner:
Type: defect | Status: new
Priority: high | Milestone: 0.8.4 & Pings
Component: Administration | Version: 0.8.3
Severity: major | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by chrishajer):
I just posted in the forum:
I think the problem is with <a href="http://trac.bbpress.org/browser/trunk
/bb-includes/db-mysqli.php#L80">line 80 in db-mysqli.php</a>:
if ( !empty($this->charset) && version_compare(mysql_get_server_info(),
'4.1.0', '>=') )
I think mysql_get_server_info() should be mysql'''i'''_get_server_info()
As it stands, the error produces a warning and prevents the charset from
ever being set. Making that mysqli_get_server_info makes the warnings go
away.
--
Ticket URL: <http://trac.bbpress.org/ticket/745#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list