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.
Error using punBB module
Re: Error using punBB module
Module need a rework for current CMSms version.seph200x wrote: Line 433 of PunBB.module.php reads:
if ($dbresult !== false && $dbresult->RowCount() > 0)
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.
-
- Forum Members
- Posts: 28
- Joined: Tue Oct 09, 2007 4:33 pm
Re: Error using punBB module
un-freakin-believable. worked like a charm! Thanks cyberman!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.