RowCount warnings, how to fix

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.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

RowCount warnings, how to fix

Post 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)
Last edited by Anonymous on Wed Oct 25, 2006 6:10 am, edited 1 time in total.
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

Re: RowCount warnings, how to fix

Post by jeffunk »

Nice Tip!! Fixed me right up, when gastbuch broke after upgrading!!  :)
User avatar
chilsta
Forum Members
Forum Members
Posts: 52
Joined: Thu Oct 20, 2005 8:22 pm

Re: RowCount warnings, how to fix

Post by chilsta »

Thanks Mark,

Was worried there for a minute!

C*
benz1
New Member
New Member
Posts: 9
Joined: Mon Jun 16, 2008 3:01 am

Re: RowCount warnings, how to fix

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: RowCount warnings, how to fix

Post 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
benz1
New Member
New Member
Posts: 9
Joined: Mon Jun 16, 2008 3:01 am

Re: RowCount warnings, how to fix

Post 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
Post Reply

Return to “CMSMS Core”