Developer forum

Forum » Ecommerce - Standard features » Order Discount causing yellow screen of death

Order Discount causing yellow screen of death

Terri Donahue
Terri Donahue
Reply

We are running 9.4.8 of Dw. When a new order discount is created, a yellow screen of death results when either the order field value is entered or an assigned voucher code is entered. The discount has to be disabled for the site to work again for the affected user. I looked through the bug fixes for newer version of 9.4 but did not see where this behavior has already been reported.

Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.CreateOrderLine(Discount discount, Order order, OrderLine parentOrderLine) +1157
   Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.GetDiscountOrderLine(Order order, Discount orderDiscount, OrderLine orderline) +1022
   Dynamicweb.Ecommerce.Orders.Discounts.DiscountProvider.ProcessExclusiveDiscounts(Order order) +423
   Dynamicweb.Ecommerce.Orders.OrderService.CalculateDiscounts(Order order) +3894
   Dynamicweb.Ecommerce.Cart.Frontend.HandleDiscountAndTaxes(Order cart, Boolean fromBackend) +56
   Dynamicweb.Ecommerce.Frontend.Cart.CartPageTemplateExtender.ExtendTemplate(Template template) +79
   Dynamicweb.Frontend.Renderer.RenderPageTemplateExtenders(Template Template) +793
   Dynamicweb.Frontend.Renderer.RenderPage(Template template, PageViewModel pageViewModel) +6243
   Dynamicweb.Frontend.PageView.SetPageTemplateValues() +793
   Dynamicweb.Frontend.PageView.Output() +926
   Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +220
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +497
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 


Replies

 
Nicolai Pedersen
Reply

Hi Terri

I've asked QA to look into this. Can you provide a dump or 2 of where you input your data?

Thanks!

 
Terri Donahue
Terri Donahue
Reply

Here ya go: https://www.screencast.com/t/8GkDbbhB

 

The same thing happens if you use a code rather than a voucher list.

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Terri

We cannot reproduce this on our latest 9.4 - we probably did fix this. Do you have the option to upgrade to the latest 9.4 and see if that fixes the issue?

BR Nicolai

Votes for this answer: 1
 
Terri Donahue
Terri Donahue
Reply

Hi Nicolai,

An upgrade did indeed fix the issue.

Thanks,
Terri

 
Nicolai Pedersen
Reply

Great!

Thanks, and sorry about the inconvenience...

BR Nicolai

 

You must be logged in to post in the forum