Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Bennett 9 posts 30 karma points
    Mar 28, 2017 @ 15:04
    Richard Bennett
    0

    Can no longer add to basket

    Hi

    We are currently having issues adding to our basket on a new website. This has been working and then all of a sudden it stopped. We are running the latest version of both TeaCommerce and Umbraco so we are no a little lost. We did notice that the TeaCommerce section had disappeared within the CMS, but it was showing as installed within the packages section. We added some lines into the applications.config and tress.config in order to get the icon on the left hand side to show and we can now see our shop again within the CMS.

    The error message we are getting back from FormPost.aspx is

        <error><![CDATA[MESSAGE:
    Exception has been thrown by the target of an invocation.
    
    STACKTRACE:
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
    
    INNEREXCEPTION:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSku(IPublishedContent product, VariantPublishedContent variant)
       at TeaCommerce.Umbraco.Configuration.InformationExtractors.PublishedContentProductInformationExtractor.GetSnapshot(String productIdentifier)
       at TeaCommerce.Api.Models.OrderLineCollection.AddOrUpdate(String productIdentifier, Nullable`1 quantity, IDictionary`2 properties, Boolean overwriteQuantity, String bundleIdentifier, String parentBundleIdentifier)
       at TeaCommerce.Api.Web.TeaCommerceHelper.AddOrUpdateOrderLine(Int64 storeId, String productIdentifier, Nullable`1 quantity, IDictionary`2 properties, Boolean overwriteQuantity, String bundleIdentifier, String parentBundleIdentifier)
       at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderLine(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()]]></error>
    

    Any help would be appreciated as we were meant to put the website live today.

    Thanks Richard

  • Richard Bennett 9 posts 30 karma points
    Mar 29, 2017 @ 07:46
    Richard Bennett
    0

    Any ideas, really struggling here and I need the site to go live??

    Thanks Richard

  • Anders Burla Johansen 2560 posts 8256 karma points
    Mar 29, 2017 @ 12:56
    Anders Burla Johansen
    1

    Hi Richard

    Did you upgrade to Tea Commerce 3.2 and is that when it started not working anymore?

    Kind regards

    Anders

  • Laurie 6 posts 37 karma points
    Mar 29, 2017 @ 13:51
    Laurie
    0

    Hello, replying on behalf of Richard, yes the problem did seem to occur with the upgrade, I've done some digging and it seems to be where the product node doesn't have a "sku" field. It tries to fall back to using the Id but for some reason fails to get it.

    I've managed to work around the problem for now by adding a sku field and setting it to the same value as the id.

    Laurie

  • Anders Burla Johansen 2560 posts 8256 karma points
    Mar 29, 2017 @ 14:56
    Anders Burla Johansen
    0

    Hi Laurie

    Thanks for doing some digging. I will add it as a issue on GitHub: https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco

    Do you use variants or just a simple node structure?

    Kind regards

    Anders

Please Sign in or register to post replies

Write your reply to:

Draft