Developer forum

Forum » CMS - Standard features » Sorting pages something hangs

Sorting pages something hangs

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

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

Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I was not able to catch the issue on my test Swift/Rapido/Custom solution based on last DW9.13.11, here is video about my check (Swift like you have shown). Per the exception you hasve posted, the issue may be related to some trash in database left after deleting some item type was used in content. Please, specify the conditions if find out exactly. I've checked general cases realted using new created item type in page and deleting it but it did not affect my chech anyway.  

BR, Oleg QA

 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

Thanks for trying. I can't reproduce it either right now. Not sure what was going on.

 

BR,

Nuno Aguiar

 

You must be logged in to post in the forum