Posted on 17/08/2022 21:56:10
Hi,
Sometimes when sorting pages the site seems to throw an error. It does not happen always though https://www.screencast.com/t/oPiVbVA7l
Using DevTools I could see it's a 500 error returing a YSOD https://www.screencast.com/t/jeVWmrb0v7d
BR,
Nuno Aguiar
Server Error in '/' Application.
Value cannot be null.
Parameter name: metadata
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: metadata
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: metadata]
Dynamicweb.Content.Items.Queries.Repository..ctor(ItemType metadata) +184
Dynamicweb.Content.Items.Queries.Repository.GetTitle(Item item) +78
Dynamicweb.Content.PageService.HandleItemStructure(Page page) +426
Dynamicweb.Content.PageService.SavePage(Page page) +220
Dynamicweb.Content.Items.Queries.Repository.SynchronizePageStructure(Item currentItem, Boolean updateModificationDate, Item originalItem, ItemContext context, Page page) +154
Dynamicweb.Content.Items.Queries.Repository.SynchronizePageStructure(Item currentItem, Boolean updateModificationDate, Item originalItem, ItemContext context) +376
Dynamicweb.Content.Items.Queries.Repository.Update(IEnumerable`1 items, ItemContext context, Boolean synchronizePages) +4855
Dynamicweb.Content.Items.Queries.Repository.Update(ItemEntry item, ItemContext context) +90
Dynamicweb.Content.Items.ItemEntry.Save(ItemContext context) +309
Dynamicweb.Content.ItemService.UpdateItemSortIndex(String itemType, String itemId, Int32 sortIndex) +108
Dynamicweb.Content.PageService.UpdatePagesOrder(Int32 areaId, Nullable`1 pageId, IEnumerable`1 childPageIdsOrder) +350
Dynamicweb.Admin.PageSort.SaveSorting() +366
Dynamicweb.Admin.PageSort.Page_Load(Object sender, EventArgs e) +411
System.Web.UI.Control.OnLoad(EventArgs e) +108
System.Web.UI.Control.LoadRecursive() +90
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533
|