Page 1 of 1

phpbbx error

Posted: Sun Aug 12, 2007 1:21 pm
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. . ...

Re: phpbbx error

Posted: Sun Aug 12, 2007 1:38 pm
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

Re: phpbbx error

Posted: Sun Aug 12, 2007 3:04 pm
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

Re: phpbbx error

Posted: Mon Aug 13, 2007 9:17 pm
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

Re: phpbbx error

Posted: Mon Aug 13, 2007 9:38 pm
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.

Re: phpbbx error

Posted: Mon Aug 13, 2007 11:06 pm
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)

Re: phpbbx error

Posted: Tue Aug 14, 2007 6:26 am
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

Re: phpbbx error

Posted: Tue Aug 14, 2007 8:08 am
by cyberman
alby wrote: Try with:
Thanks for hinting - have post it as patch in project.

Re: phpbbx error

Posted: Tue Aug 14, 2007 11:32 am
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. . .