After install nopcommerce 3.0, i have get this error when I go to admin page : "Attempted to divide by zero" in PagedList.cs
"
public PagedList(IQueryable<T> source, int pageIndex, int pageSize)
{
int total = source.Count();
this.TotalCount = total;
this.TotalPages = total / pageSize;
if (total % pageSize > 0)
TotalPages++;
this.PageSize = pageSize;
this.PageIndex = pageIndex;
this.AddRange(source.Skip(pageIndex * pageSize).Take(pageSize).ToList());
}
"
The pageSize is come from
public ActionResult BestsellersBriefReportByQuantityList(GridCommand command)
{
if (!_permissionService.Authorize(StandardPermissionProvider.ManageOrders))
return Content("");
var gridModel = GetBestsellersBriefReportModel(command.Page - 1,
command.PageSize, 1);
return new JsonResult
{
Data = gridModel
};
}
May I know where is the GridCommand from? All item count in command is 0
Anyone know what was the issue, i didnt change anything yet