1
Zap_English
NewBB error

I downloaded and installed NewBB Forum 4.33 RC11 (03/14/2016)

XOOPS Version XOOPS 2.5.7.2
PHP Version 5.4.45
mySQL Version 5.5.49

with the xbootstrap theme

The back end works fine. I created all my categories and forums

THe forum list appears and clicking on a forum header is ok, but I get the following error when I click on "New Topic". So I can't create any topics

None All Errors (1) Deprecated (0) Queries (52) Blocks (5) Extra (2) Timers(6)
Errors
Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, resource given in file /modules/newbb/class/online.php line 238

any ideas?

2
Zap_English
Re: NewBB error

I also updated to Forum 4.33 RC12 (04/03/2016) after reading the forums, and I'm still getting the same error

3
zyspec
Re: NewBB error
  • 2016/5/25 3:04

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


First, let me say I haven't tried this but....

It looks to me like in /modules/newbb/class/online.php (the line around 238) should be changed from:
$mysql_version substr(trim(mysqli_get_server_info($xoopsDB->conn)), 03);

to:
$mysql_version substr(trim(mysqli_get_server_info($this->db->conn)), 03);

4
Zap_English
Re: NewBB error

Nope

same error unfortunately

5
geekwright
Re: NewBB error

In XOOPS 2.5.8, the obsolete mysql extension is replaced with mysqli. The two extensions have lots of similarities, but a number of little differences. It looks like this version is depending on the mysqli connection in the new 2.5.8.

This should work:

$mysql_version substr(trim(mysql_get_server_info()), 03);


but ... there may be other problems elsewhere.

Calls that go through the XoopsMySQLDatabase, including everything going through the standard XoopsObject handlers, will work fine without change. But anything that directly uses the mysql_* calls breaks. Since the mysql extension does not exist in the most recent PHP, anything depending on it needs to be changed to continue working.

6
Zap_English
Re: NewBB error

same error.

Login

Who's Online

135 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits