When I try to use phpbbx tag, all I get is: "Fatal error: Call to a member function on a non-object in /home/reg7/public_html/ba/plugins/function.phpbbx.php on line 67". The line is if( ($result = $db->Execute($sql)) ) global $db is not working, so $db is empy, causing this error. Any thoughts how to fix that problem?
P.S. CMS MS 1.0.4, phpBBx v.0.2beta 1 (although archive is called 0.3 version).
error in phpbbx :(
Re: error in phpbbx :(
global $db is no longer available. Use:
Regards,
D
Code: Select all
global $gCms;
$db =& $gCms->GetDb();D
-
kazkas
Re: error in phpbbx :(
Thanks
There was one more error, something with PO_Insert_ID() not defined, hopefully after deleting PO_ it will work correctly.
-
rosenblum68
Re: error in phpbbx :(
Hey, kazkas, did you ever fix the bug with the Fatal error: Call to undefined method pear_ADOConnection::PO_Insert_ID() ?
-
kazkas
Re: error in phpbbx :(
Yes, I change that intorosenblum68 wrote: Hey, kazkas, did you ever fix the bug with the Fatal error: Call to undefined method pear_ADOConnection::PO_Insert_ID() ?
$group_id = $db->Insert_ID($tablepref . "groups", "group_id");
At least it's working now and I'm having no problems with it.

