A site has just gone live and we are getting the following error - sometimes:
System.InvalidOperationException: Nullable object must have a value. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at TeaCommerce.SessionController.get_CurrentOrder() at TeaCommerce.Razor.TeaCommerce.GetOrder()
The code around that area is
if (this.order == null) { this.order = TeaCommerce.GetOrder(); }
Is there something wrong with that code?
I only want to do a "GetOrder" if an order does not currently exist (and is stored in "order").
Nullable object must have a value
A site has just gone live and we are getting the following error - sometimes:
The code around that area is
Is there something wrong with that code?
I only want to do a "GetOrder" if an order does not currently exist (and is stored in "order").
(edit doesn't work, so I've replied to myself!)
The variable "order" is defined as:
Hi Gordon,
Are you using cookies? And an older version than 1.4.3.0? Then that might be the problem --> http://www.teacommerce.net/en/documentation/revision-history.aspx
/Rune
Not 100% sure what version is installed ... how do I check?
Hi Gordon,
Check the "Installed Packages" Tea Commerce should be there and in there the version number.
/Rune
Ah yes ... 1.4.3.0 BETA 2 ... should I try installing the released 1.4.3.0 ?
Yes, do that. See if that fixes it. You haven't had problems with this before?
/Rune
I can't recreate the problem, but the Umbraco log is showing it has happened a few times.
Should I turn off cookie usage until I am able to update the site?
Yes, you should do that if you can. Looks very much like the cookie problem, which we have fixed in the latest release.
/Rune
is working on a reply...