Skip to content

[Bug]: HTML Module "Version History" Pager Doesn't work #6257

@djamell

Description

@djamell

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

New Install of DNN Version 09.13.06 (0) with Default Website Template.

In the PortalSettings Table I increased the value for MaximumVersionHistory to 20 to keep more versions, but when I view Version History in the HTML Module that has more than 10 versions, the Pager doesn't work. In the Browser Devtools I get the following error when I click on a page number in the Version History Pager:

2024-12-05 07:19:43.726-06:00 [martserver4][D:2][T:13][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.Web.HttpException (0x80004005): The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled.
at System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e)
at System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage)
at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
at System.Web.UI.Page.d__523.MoveNext()
2024-12-05 07:19:43.772-06:00 [martserver4][D:2][T:13][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled. ---> System.Web.HttpException: The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled.
at System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e)
at System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage)
at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
at System.Web.UI.Page.d__523.MoveNext()
--- End of inner exception stack trace ---

Steps to reproduce?

  1. Edit and Save the content of any HTML Module until you have more than 10 versions.
  2. Edit the HTML Module Content and click the :Version Hisstory " Button.
  3. At the bottom of the Versions Grid there are numbered "Pager Links" that when clicked produce the error.

Current Behavior

I think this was covered in "Steps to Reproduce"

Expected Behavior

When the Version History Pager Links are clicked, I should see the next page of Versions of the HTML Content.

Relevant log output

2024-12-05 07:19:43.726-06:00 [martserver4][D:2][T:13][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.Web.HttpException (0x80004005): The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled.
   at System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e)
   at System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage)
   at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
   at System.Web.UI.Page.d__523.MoveNext()
2024-12-05 07:19:43.772-06:00 [martserver4][D:2][T:13][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled. ---> System.Web.HttpException: The GridView 'dgVersions' fired event PageIndexChanging which wasn't handled.
   at System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e)
   at System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage)
   at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
   at System.Web.UI.Page.d__523.MoveNext()
   --- End of inner exception stack trace ---

Anything else?

Nope! It's pretty easy to reproduce the error.

Affected Versions

9.13.6 (latest release)

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions