[solved] Divide by zero error in news module
Posted: Wed Jun 04, 2008 10:41 pm
Hello, looking for some help here.
I made no changes to the call to the news module but I'm suddenly getting divide by zero errors in both News module 2.6.1 and 2.7.
Here's the call to News module that has started to fail:
And the error:
Lines 176-177 correspond to:
I noticed that pagelimit defaults to 100000. I don't override pagelimit, but even when I overrode it to pagelimit=10 I still get this issue. I have cleared the cache.
Not sure what else to do at this point, any suggestions? TIA
I made no changes to the call to the news module but I'm suddenly getting divide by zero errors in both News module 2.6.1 and 2.7.
Here's the call to News module that has started to fail:
Code: Select all
Action Items {news number="8" detailpage="action-items" category="Action Items" makerssbutton="true"}
{news number="8" detailpage="action-items" category="Action Items" dateformat="%B %e, %Y"}
Code: Select all
Warning: Division by zero in /home/cippicc/public_html/modules/News/action.default.php on line 176
Warning: Division by zero in /home/cippicc/public_html/modules/News/action.default.php on line 177
Code: Select all
$pagecount = (int)($count / $pagelimit);
if( ($count % $pagelimit) != 0 ) $pagecount++;
Not sure what else to do at this point, any suggestions? TIA