Page 1 of 1

RowCount warnings, how to fix

Posted: Mon Oct 09, 2006 8:25 pm
by Dr.CSS
If you upgrade your site and try to login, or at any time, and start getting error mess. that say something along these lines...

Fatal error: Call to undefined function: rowcount() in /something/something/something/modules/someModule/SomeModule.module.php on line something

FTP to site and find modules/TheModule/TheModule.module.php, right click and view/edit, at least in Filezilla that's how, and on line ### change rowcount to recordcount, it may be RowCount which would be RecordCount, watch for correct upper/lower case syntax....

This may not always be the TheModule.module.php file, what ever the error message string says that is the file and line number you need to go to, and it may find another file in that module or another module, just keep doing it untill it gives no more errors.

I had quite a few older modules that needed this done to them when I upgraded to 1.0.2 from 0.13 and they all work fine now.

  Hope This Helps  8)

Re: RowCount warnings, how to fix

Posted: Tue Oct 17, 2006 10:09 pm
by jeffunk
Nice Tip!! Fixed me right up, when gastbuch broke after upgrading!!  :)

Re: RowCount warnings, how to fix

Posted: Mon Dec 04, 2006 7:24 pm
by chilsta
Thanks Mark,

Was worried there for a minute!

C*

Re: RowCount warnings, how to fix

Posted: Tue Jul 21, 2009 10:47 am
by benz1
Apologies for resurrecting this very old thread but I'm trying to upgrade a very old version of CMSMS (0.13!) for a friend but get this error on the public home page when I try the first upgrade to v1 -

Call to undefined method pear_ResultSet::RowCount() in /home/account/public_html/domain/lib/content.functions.php(663) : eval()'d code on line 7

The error message appears to relate to the lib/content.functions.php file rather than a module but the only occurrences of RowCount() I found in the whole installation are in the Calendar module. Replacing these with RecoordCount() made no difference as did uninstalling all modules and in fact removing the whole modules folder.

Anyone have any ideas what could be causing this error? I'd be grateful for any suggestions.

Thanks,
Benz1

Re: RowCount warnings, how to fix

Posted: Tue Jul 21, 2009 10:57 am
by Dee
It looks like there's a RowCount call in one of your UDT's.

(line 663 of content.functions.php from version 1.0 evals the code from user plugins)

Regards,
D

Re: RowCount warnings, how to fix

Posted: Tue Jul 21, 2009 8:45 pm
by benz1
Dee wrote: It looks like there's a RowCount call in one of your UDT's.

(line 663 of content.functions.php from version 1.0 evals the code from user plugins)
Thanks Dee, you were right, the UDT's were full of them! Replaced with Record and now all works fine. Now I just have to do all the upgrades from v1 to 1.6 :)

Benz1