Developer forum

Forum » Development » Intercept exceptions

Intercept exceptions

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a site where a customer gets the following exception when logging in:

I think this has to do with loading a cart that doesn't exist anymore but we're not sure. Is there a way I can intercept this exception and perform some logging or maybe remove the cart cookie when it's present? We don't have direct access to the end user so I can't see their cookies or ask them to clear them.

Thanks!

Imar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I Believe this has been fixed in latest versions. Bug #14109, also see this thread: https://doc.dynamicweb.com/forum/ecommerce-standard-features?ThreadID=87875

I think this is related to an integration where orderlines are added that does not have orderline IDs.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Gotcha. We're on 9.15.8 and the fix is in 9.15.9 so that may explain it. Any options to intercept and clear the cookies myself in the meantime while we prepare for an upgrade?

Thanks!

Imar

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Not a cookie issue.

CartLoaded notification - remove orderlines with no orderlineid and/or products that no longer exists.

Or use Standard.Page.Loaded notification and remove the cart cookie?

Or just add the Dynamicweb.Ecommerce.dll from that bugfix version.

 

You must be logged in to post in the forum