phpbbx error

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.
Post Reply
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

phpbbx error

Post by manurevah »

hello,

i'm wondering if anyone has been using the phpbbx plugin to integrate a proper forum into cms made simple, i'm also open to other forum solutions too so long as it uses the same user database as frontend users.

i followed the instructions meaning:
- install phpbb2 in domain.tld/forum
- install plugin phpbbx
- create a page with the tag:  {phpbbx tablepref="cms_phpbb_" dir="forum"} 

and with this a i get an error message:
  Fatal error: Call to a member function on a non-object in /var/..snip../domain.tld/plugins/function.phpbbx.php on line 68

that line would be:

Code: Select all

 if( ($result = $db->Execute($sql)) ) 
i'm not sure if the error comes from the $db or $sql

any ideas are bienvenue. . ...
alby

Re: phpbbx error

Post by alby »

manurevah wrote: that line would be:

Code: Select all

 if( ($result = $db->Execute($sql)) ) 
i'm not sure if the error comes from the $db or $sql
Try with:

1) substitute

Code: Select all

global $db;
with

Code: Select all

global $gCms;
$db =& $gCms->GetDb();

2) and:

Code: Select all

$group_id = $db->PO_Insert_ID($tablepref . "groups", "group_id");
with

Code: Select all

$group_id = $db->Insert_ID($tablepref . "groups", "group_id");
Alby
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: phpbbx error

Post by manurevah »

thanks alot for your response.

i tried that (i actually found a similar topic in italian  http://forum.cmsmadesimple.org/index.ph ... 1.msg69547, posted by "Alby" : ] , however i wasn't sure i understood)
i still get the same error:
Fatal error: Call to a member function on a non-object in /var/...snip.../domain.tld/plugins/function.phpbbx.php on line 68
alby

Re: phpbbx error

Post by alby »

manurevah wrote: Fatal error: Call to a member function on a non-object in /var/...snip.../domain.tld/plugins/function.phpbbx.php on line 68
Print your #68 line

Alby
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: phpbbx error

Post by manurevah »

hmm, line 68 is still the same old

Code: Select all

 if( ($result = $db->Execute($sql)) )
: ]


maybe i should recall some infos, and if you need more please don't hesitate to tell me. .

- CMS Made Simple 1.1 "Samoa"
- phpbbx0.2beta3.zip
- php4  4.3.10-22  (sarge) (yes i know, i'll soon be migrating)
- apache 1.3.33-6sarge3 (dito)

voilà, any help mucho welcome.  i've been playing around with other solutions like SMF, but i think phpbbx seems like the cleanest way to have users that can be logged into cmsms and the forum with the same user/pass etc. . .  maybe a plugin to go the other way around .. ..  .?  : ]

bona sierra.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: phpbbx error

Post by Dr.CSS »

- CMS Made Simple 1.1 "Samoa"
- phpbbx0.2beta3.zip is this still zipped or did you unzip it before installing, I know silly ?....  ;)
- php4  4.3.10-22  (sarge) (yes i know, i'll soon be migrating)
- apache 1.3.33-6sarge3 (dito)
alby

Re: phpbbx error

Post by alby »

manurevah wrote:

Code: Select all

 if( ($result = $db->Execute($sql)) )
$db is not Adodb object.
1. Have you substitute in ALL file (there are about seven item: global $db;)
2. Have you sure that you have overwrite (permission on file?)

Alby
cyberman

Re: phpbbx error

Post by cyberman »

alby wrote: Try with:
Thanks for hinting - have post it as patch in project.
manurevah
Forum Members
Forum Members
Posts: 37
Joined: Fri Aug 03, 2007 2:24 pm

Re: phpbbx error

Post by manurevah »

Mark, yes i unzipped it, i can be a distracted one but i managed to unzip it first..  : ]


Alby,  thanks for pointing that out, so i replaced all the "global $db" as mentioned and it seems to work, what happens now is that i get automatically logged into phpbb2 and that is just so fine. .. .  \o/

i just wonder now what happens if people register from the phpbb page.. . .. . 

anyway thank you so much. . .
Post Reply

Return to “CMSMS Core”