Division by Zero on paging enabled
Division by Zero on paging enabled
reiki
Posts: 46Questions: 11Answers: 0
Is there some part of paging that cause "Exception Message: Division by zero" ? i cant find what cause this issue, its only and only happen when paging enabled and going to page other than the first page (first page display table no problem), totalRecords and totalFilteredRecords were correct on first page
Answers
I've never seen that issue before. What does the server return when you see that error? Are you able to link to your page so we can debug?
Colin
Its not possible to link to the page because its still in my local, the error i see is just this
and this is on 1st page which is working fine
my query does not have any division this is the query
its dynamic query and the result will look like this :
UPDATE
I am using pipeline to cache all page and its working now but its no use cause i want to still ajax call every page to minimize query usage (its too long of process now) so i guess the paging it self isnt an issue because i can get it work by pipelining but the Ajax call of paging issue is the problem
If the division isn't taking place in the query maybe it happens somewhere else in your server script. Are you using a Datatables supplied server script or something else?
Kevin