Page 1 of 1
error in phpbbx :(
Posted: Mon Apr 02, 2007 11:35 am
by kazkas
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).
Re: error in phpbbx :(
Posted: Mon Apr 02, 2007 1:09 pm
by Dee
global $db is no longer available. Use:
Code: Select all
global $gCms;
$db =& $gCms->GetDb();
Regards,
D
Re: error in phpbbx :(
Posted: Mon Apr 02, 2007 4:05 pm
by kazkas
Thanks

There was one more error, something with PO_Insert_ID() not defined, hopefully after deleting PO_ it will work correctly.
Re: error in phpbbx :(
Posted: Fri Apr 06, 2007 6:47 am
by rosenblum68
Hey, kazkas, did you ever fix the bug with the Fatal error: Call to undefined method pear_ADOConnection::PO_Insert_ID() ?
Re: error in phpbbx :(
Posted: Mon Apr 16, 2007 11:24 am
by kazkas
rosenblum68 wrote:
Hey, kazkas, did you ever fix the bug with the Fatal error: Call to undefined method pear_ADOConnection::PO_Insert_ID() ?
Yes, I change that into
$group_id = $db->Insert_ID($tablepref . "groups", "group_id");
At least it's working now and I'm having no problems with it.