Shopping Cart License? Error

Brandon Prudent asked on May 17, 2018 07:21

Getting a strange error from this line of code:

Cart.UpdateQuantity(cartItem.ID, quantity);
Cart.Save();
Cart.Evaluate();

Specifically from the Cart.Save() function. Seems like the cart was working 100% fine just moments ago, and now is kirking out over this licensing issue. Any thoughts on how to correct it? A more full stacktrace is below.

[LicenseException: License for feature 'FullContactManagement' not found.]
   CMS.LicenseProvider.LicenseHelperInternal.ReportLicenseError(String redirectUrl, String message) +133
   CMS.LicenseProvider.LicenseHelper.ReportFailedLicenseCheck(FeatureEnum feature, String domain, Boolean throwError) +645
   CMS.LicenseProvider.LicenseService.CheckLicense(FeatureEnum feature, String domain, Boolean throwError) +75
   CMS.DataEngine.AbstractInfoProvider`3.SetInfo(TInfo info) +177
   CMS.ContactManagement.ContactMembershipInfoProvider.SetInfo(ContactMembershipInfo info) +105
   CMS.ContactManagement.DefaultContactRelationAssigner.Assign(MemberTypeEnum memberType, BaseInfo relatedObject, ContactInfo contact, IContactDataPropagationChecker checker) +330
   Kentico.Ecommerce.ShoppingCart.SetCustomerRelationAndUpdateContact(CustomerInfo customerInfo) +148
   Kentico.Ecommerce.ShoppingCart.SaveCustomer() +127
   Kentico.Ecommerce.ShoppingCart.Save(Boolean validate) +104
   Sologic.Website.Lib.Services.Order.Update(Int32 skuId, Int32 quantity) in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website.Lib\Services\Order.cs:265
   Sologic.Website.Lib.Services.Order.Update(Int32 skuId, Boolean increment) in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website.Lib\Services\Order.cs:252
   Sologic.Website.Lib.Services.Order.Add(Int32 skuId) in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website.Lib\Services\Order.cs:230
   Sologic.Website.Controllers.CartController.Add(Int32 id) in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website\Controllers\CartController.cs:36
   lambda_method(Closure , ControllerBase , Object[] ) +141
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229

Oddly, when I try and clear the cart, I get a different error:

[SimpleDataClass.AddIDWhere]: The object is missing the ID column 'ShoppingCartID' value, the operation cannot be performed.

  [Exception: [SimpleDataClass.AddIDWhere]: The object is missing the ID column 'ShoppingCartID' value, the operation cannot be performed.]
   CMS.DataEngine.SimpleDataClass.AddIDWhere(DataQuery q, String columnName) +153
   CMS.DataEngine.SimpleDataClass.Delete(Boolean preserveData) +157
   CMS.DataEngine.AbstractInfoBase`1.DeleteData() +472
   CMS.DataEngine.AbstractInfoProvider`3.DeleteInfo(TInfo info) +315
   Kentico.Ecommerce.ShoppingService.DeleteShoppingCart(ShoppingCart cart) +40
   Sologic.Website.Lib.Services.Order.Destroy() in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website.Lib\Services\Order.cs:285
   Sologic.Website.Controllers.CartController.Clear() in C:\TeamCity\buildAgent\work\25f3e607f5bd130d\Website\Controllers\CartController.cs:64
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229

Thoughts?

Correct Answer

Michal Samuhel answered on May 17, 2018 10:56

Hi Brandon,

What version are you on? Are you using MVC model? This looks like a bug, that was fixed in 11.07. New version of NuGet, along with hotfix should help if that is the case.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brandon Prudent answered on May 17, 2018 20:05

Hey Michal, thanks for the response. That was exactly the problem! After applying the hotfix & updating the nuget packages it is working as expected :)

0 votesVote for this answer Mark as a Correct answer

Victor Hugo Garcia answered on March 6, 2019 19:08

Hello friends,

I am facing the same exact issue on an WebApi project. However, I'm using Kentico 11.0.24.

Any idea about this issue?

0 votesVote for this answer Mark as a Correct answer

Michal Samuhel answered on March 8, 2019 09:07

Hi Victor,

Is it the same API and error stack trace?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.