Page 1 of 1

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

Posted: Fri May 19, 2006 2:35 pm
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]

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

Posted: Fri May 19, 2006 2:50 pm
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())

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

Posted: Fri May 19, 2006 2:51 pm
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.