Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Cart issues after upgrading to 9.3.5

Cart issues after upgrading to 9.3.5

Mikkel Ulstrup
Reply

The following is recorded on a standard 9.3.5:

https://www.screencast.com/t/np0MCEi4M

IIS:

https://www.screencast.com/t/eamhOQ3a

https://www.screencast.com/t/UjOd8snLNnH

 

The error occurs only after adding a product to the cart, and after that, on every page. IIS reset will remove the error until a new product is added to the cart.

 

There is a single Custom module in the "Module" table in the database (though this shouldn't matter) with the following values:

2364 CustomModule CustomModule 1 NULL 99 1 NULL NULL NULL NULL NULL 0 NULL 0 NULL 0 NULL NULL ViewModule

 

I can't quite figure out what is causing the error.

 

Kind regards

Mikkel Ulstrup


Replies

 
Mikkel Ulstrup
Reply

The error in text:

[NullReferenceException: Object reference not set to an instance of an object.]

   Dynamicweb.Content.PageService.GetFirstModulePageForArea(Int32 areaId, String moduleSystemName) +374

   Dynamicweb.Ecommerce.Frontend.EcomPageOnOutputSubscriber.CreateProductLink(OrderLine orderline) +168

   Dynamicweb.Ecommerce.Frontend.EcomPageOnOutputSubscriber.CreateInstance(Order cart, Nullable`1 areaId) +1021

   Dynamicweb.Ecommerce.Frontend.EcomPageOnOutputSubscriber.OnNotify(String notification, NotificationArgs args) +204

   Dynamicweb.Extensibility.Notifications.NotificationManager.Notify(String notification, NotificationArgs eventArgs) +861

   Dynamicweb.Frontend.PageView.Output() +715

   Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +220

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +879

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +96

 

 
Mikkel Ulstrup
Reply

I found the problem.

Dynamicweb keeps a long list of paragraphs even though their pages has been deleted. This causes the paragraph tabel to be filled with orphanaged paragraphs (see screendumb)

https://www.screencast.com/t/yYweKsN9CMg

In Dynamicweb.Content.PageService.GetFirstModulePageForArea it finds an orphanaged paragraph, wich causes a null ref when it tries to access a property on the non-existing page.

 

 
Nicolai Pedersen
Reply

Hi Mikkel

Good catch. Will look into it and see how we should solve it. Cannot figure out how you got that bad data though...

Anyways, we probably need to handle it in the Paragraph repo.

Will get back.

Nicolai

 

You must be logged in to post in the forum