"start=" attribute in News module tag causing Fatal Error in FetchRow()

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
wfunderberg
Forum Members
Forum Members
Posts: 42
Joined: Tue Mar 28, 2006 8:05 pm

"start=" attribute in News module tag causing Fatal Error in FetchRow()

Post by wfunderberg »

All,

I have noticed that whenever I add a number to the "start=" attribute to the News Module tag the system will throw the "Fatal error: Call to a member function FetchRow() on a non-object in D:\Inetpub\wwwroot\modules\News\action.default.php on line 104" error.

The first tag only retrieves the first 5 news items but then right after whenever I call the rest (using special template) thats when it fails. I have tried the start attribute with the summarytemplate attribute removed as well and it still fails.

!This works --> {cms_module module="News" detailpage="News" category="Residents" number="5"}
!This will fail --> {cms_module module="News" detailpage="News" category="Residents" start="6" summarytemplate="titlelist.tpl"}

Using CMSMS Version 0.12.1

Thanks!

Wes

[attachment deleted by admin]
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: "start=" attribute in News module tag causing Fatal Error in FetchRow()

Post by Ted »

This was fixed in 0.13.

To fix it for yourself, find line 104 in News/action.default.php.  Change it to:

Code: Select all

while ($dbresult && $row = $dbresult->FetchRow())
wfunderberg
Forum Members
Forum Members
Posts: 42
Joined: Tue Mar 28, 2006 8:05 pm

Re: "start=" attribute in News module tag causing Fatal Error in FetchRow()

Post by wfunderberg »

Thanks! Another way I found is to add the attribute "number=" to the same tag as "start=" with any number (I used 999) and it works as well.
Post Reply

Return to “Modules/Add-Ons”