Error using punBB module

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
seph200x

Error using punBB module

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

Re: Error using punBB module

Post 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.
charleyhankins
Forum Members
Forum Members
Posts: 28
Joined: Tue Oct 09, 2007 4:33 pm

Re: Error using punBB module

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

Return to “CMSMS Core”