Page 1 of 1

Error using punBB module

Posted: Fri Apr 20, 2007 7:17 am
by seph200x
I'm using CMSms on Windows 2003 server, IIS6 and PHP 5.1.6. I've installed the punBB module and everything seemed to go okay. I created a new template for my secured pages (a copy of my regular template) with the tag {cms_module module='PunBB' action='auth_group'} at the top.

Now, when I'm logged into the punBB (via punBB's login form) and try to access a page that has this new template applied, it lets me view the page as normal. But if I'm not logged into to punBB and try to access the page, I get the following error message.

Fatal error: Call to undefined method pear_ResultSet::RowCount() in D:\inetpub\mywebsite\modules\PunBB\PunBB.module.php on line 433

I'm not sure what I'm supposed to see (a log in form I would think). Line 433 of PunBB.module.php reads:
if ($dbresult !== false && $dbresult->RowCount() > 0)

This syntax looks okay, so I don't know why it's having a problem with it. Lines similar to this appear numerous times through the script, but this is the only trouble I'm having. Any ideas why I'm getting this error? Any help will be greatly appreciated.

Re: Error using punBB module

Posted: Fri Apr 20, 2007 10:41 am
by cyberman
seph200x wrote: Line 433 of PunBB.module.php reads:
if ($dbresult !== false && $dbresult->RowCount() > 0)
Module need a rework for current CMSms version.

Posted line is for AdoDB. But with version 0.13 database layer was changed to AdoDB lite. AdoDB lite does not know RowCount(). Change it to RecordCount() and it should work.

Re: Error using punBB module

Posted: Thu Feb 28, 2008 3:10 am
by charleyhankins
Posted line is for AdoDB. But with version 0.13 database layer was changed to AdoDB lite. AdoDB lite does not know RowCount(). Change it to RecordCount() and it should work.
un-freakin-believable.  worked like a charm!  Thanks cyberman!