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]
"start=" attribute in News module tag causing Fatal Error in FetchRow()
-
- Forum Members
- Posts: 42
- Joined: Tue Mar 28, 2006 8:05 pm
Re: "start=" attribute in News module tag causing Fatal Error in FetchRow()
This was fixed in 0.13.
To fix it for yourself, find line 104 in News/action.default.php. Change it to:
To fix it for yourself, find line 104 in News/action.default.php. Change it to:
Code: Select all
while ($dbresult && $row = $dbresult->FetchRow())
-
- Forum Members
- Posts: 42
- Joined: Tue Mar 28, 2006 8:05 pm
Re: "start=" attribute in News module tag causing Fatal Error in FetchRow()
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.