Copied to clipboard

Flag this post as spam?

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


  • Chrismcr 2 posts 72 karma points
    Oct 01, 2015 @ 08:58
    Chrismcr
    0

    Merchello/Bazaar Basket Problems (IShipmentRateQuote shipmentRateQuote)?

    Hello,

    Few details about installations:

    Umbraco Version: 7.2.6

    Merchello 1.11.0

    Merchello.Bazaar.StoreOnly 1.11.0

    I am now coming back with the error:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Merchello.Core.Models.LineItemExtensions.AsLineItemOf(IShipmentRateQuote shipmentRateQuote) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Models\LineItemExtensions.cs:266
       Merchello.Core.Sales.SalePreparationBase.AddShipmentRateQuoteLineItem(IShipmentRateQuote shipmentRateQuote) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Sales\SalePreparationBase.cs:799
       Merchello.Core.Sales.SalePreparationBase.SaveShipmentRateQuote(IShipmentRateQuote approvedShipmentRateQuote) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Sales\SalePreparationBase.cs:204
       Merchello.Bazaar.Controllers.BazaarPaymentMethodFormControllerBase.ConfirmSale(CheckoutConfirmationForm model) +377
       lambda_method(Closure , ControllerBase , Object[] ) +126
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +273
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +38
       System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +119
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452
       System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +33
       System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240
       System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +74
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
       System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    

    I have made sure I have filled in all the shipping weights and other variants for each of the products, but cant get past this error once I have filled out the billing and shipping forms and pressed "confirm sale" on the next page.

    Shipping Countries and Methods have been set with Ranges.

    All items have been set to shippable.

    Struggling to find where the problem might lie, any help would be greatly appreciated.

    Thank you in advance

  • TimMather 67 posts 78 karma points
    Oct 26, 2015 @ 12:30
    TimMather
    1

    We are also having the same problem, any ideas?

    Thanks

    Tim

  • Andy 10 posts 81 karma points
    Apr 19, 2016 @ 18:27
    Andy
    0

    Did anyone get anywhere with this; I am having the same problem :(

  • Andy 10 posts 81 karma points
    Apr 23, 2016 @ 14:05
    Andy
    0

    I am still have a bit of a problem; I am using the Braintree payment provide; on checking the code I have seen that most of the models variables are null:

    <input class="selected-shipmethod-key" id="ShipMethodKey" name="ShipMethodKey" type="hidden" value="00000000-0000-0000-0000-000000000000" />
    <input class="selected-paymentmethod-key" id="PaymentMethodKey" name="PaymentMethodKey" type="hidden" value="00000000-0000-0000-0000-000000000000" />
    <input id="customer-token" name="CustomerToken" type="hidden" value="" />
    <input id="ReceiptPageId" name="ReceiptPageId" type="hidden" value="0" />
    <input name="__RequestVerificationToken" type="hidden" value="GoBuMcBw8Je5hJCxLg4_deaWjRP-tZ4aeMzZxrlgn4sOfK0lJkn33RyDFwGYCUng3Yktouj2WHoK9GhIb69AQTPt7sRgemPDKS_r7TPNCki8dzyfl9TBu9ZWrMfiX_dk0" />
    

    Do you need to pass these through to the CheckoutConfirmationForm variable in the RenderForm method?

    If anyone could point me in the right direction would be ace and I am a little stuck at the moment

    Here is the full error I am getting:

    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.]
       Merchello.Core.Models.LineItemExtensions.AsLineItemOf(IShipmentRateQuote shipmentRateQuote) +83
       Merchello.Core.Checkout.CheckoutShippingManagerBase.AddShipmentRateQuoteLineItem(IShipmentRateQuote shipmentRateQuote) +32
       Merchello.Web.CheckoutManagers.BasketCheckoutShippingManager.SaveShipmentRateQuote(IShipmentRateQuote approvedShipmentRateQuote) +28
       Merchello.Bazaar.Controllers.BazaarPaymentMethodFormControllerBase.ConfirmSale(CheckoutConfirmationForm model) +549
       lambda_method(Closure , ControllerBase , Object[] ) +138
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +228
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +34
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +38
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +70
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +41
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +71
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +386
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +386
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +386
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +38
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +186
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1073.0
    
Please Sign in or register to post replies

Write your reply to:

Draft