SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
576 stars 348 forks source link

"Failed to load viewstate" when examining footer in CMS #3354

Closed MicahO closed 4 years ago

MicahO commented 5 years ago

Prerequisites

Description

Error block appears when navigating to footer zone in CMS/Pages. (found on our church's Azure/RMS8.3 installation, verified on demo site)

Steps to Reproduce

  1. Go to AdminTools>CMS Configuration>Pages>Internal Homepage>Reporting>Data Views

http://rock.rocksolidchurchdemo.com/page/103?Page=145&ExpandedIds=12%2c105%2c144&Redirect=false

  1. On "Main Zone" block, click on the box that says "Main (2)" on the right and change to "Footer (1)".
  2. See error

Expected behavior:

There should be no error box.

Actual behavior:

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at RockWeb.Blocks.Cms.PageZoneBlocksEditor.AddAdminControls(BlockCache block, Panel pnlLayoutItem) at RockWeb.Blocks.Cms.PageZoneBlocksEditor.rptBlocks_ItemDataBound(Object sender, RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at RockWeb.Blocks.Cms.PageZoneBlocksEditor.ShowDetailForZone(String zoneName) at RockWeb.Blocks.Cms.PageZoneBlocksEditor.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Versions

┆Attachments: image.png | image.png

nairdo commented 5 years ago

We have not been able to reproduce this using the steps provided. Please feel free to re-open this if you have another reliable way of re-creating this issue.

MicahO commented 5 years ago

Thanks for re-opening. Here's a better description of the bug, for those interested.

https://www.youtube.com/watch?v=TuwLjysNq48

MicahO commented 4 years ago

@nairdo @RileyGspark This bug appears to be fixed in 11.1; do you want to mark it as fixed and closed?

nairdo commented 4 years ago

@MicahO Sure will! Thanks for testing and letting us know.