error in phpbbx :(

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
kazkas

error in phpbbx :(

Post 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).
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: error in phpbbx :(

Post by Dee »

global $db is no longer available. Use:

Code: Select all

global $gCms;
$db =& $gCms->GetDb();
Regards,
D
kazkas

Re: error in phpbbx :(

Post by kazkas »

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 :(

Post by rosenblum68 »

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 :(

Post 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.
Locked

Return to “CMSMS Core”