HomeHome Product Discus... Product Discus...SmithCartSmithCartError when changing quantity and using shipping calculatorError when changing quantity and using shipping calculator
Previous
 
Next
New Post
11/10/2011 10:46 AM
 

We're running into an object reference error under the following conditions:

  • site configured to use shipping calculator (or free shipping after previously setting site use use shipping calculator)
  • cart contains only products added to cart via querystring parameter (?ProductId=xxxxx)
  • shipping not calculated

If you then attempt to update the quantity the result is the following message in the Log Viewer.  This is an example with UPS, but a similar error occurs with the GetUSPSRates method.  Haven't tested any others.

 

DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Smith.DNN.Modules.BuyNow.Cart.BuildUPSRequest(String accessKey, String userId, String password) at Smith.DNN.Modules.BuyNow.Cart.GetUPSRates() at Smith.DNN.Modules.BuyNow.Cart.GetShippingRates() at Smith.DNN.Modules.BuyNow.Cart.CalShippingRates() at Smith.DNN.Modules.BuyNow.Cart.btnUpdate_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 
New Post
11/10/2011 6:44 PM
 
Hi Ted,

Which version of the Cart and DNN are you currently running?

Do the product you are adding to the Cart via the querystring include variants?

Which Shipping Methods do you have selected for the UPS Shipping Calculator?

Please post a screenshot of your Cart Settings.

Thanks,
 
New Post
11/15/2011 10:01 AM
 

Version 4.65.

Products do not include any variants.
 
We have all available UPS methods selected.  UPS Ground through UPS Worldwide Saver.  Note, this is not limited to UPS.  We confirmed the same with USPS.
 
Attached is a copy of shipping settings.  If you want more let me know.
 
 Login to download attachment
New Post
11/16/2011 2:56 PM
 
Hi Ted,

Which version of DNN are you running?

Thanks,
 
New Post
7/5/2012 11:18 AM
 
We're running versino 5.6.7 of DNN.
 
New Post
7/5/2012 1:20 PM
 

Hi Ted,

Are you still currently running SmithCart v.4.65? I believe this issue may have already been resolved in a recent release of the Cart as I am not able to replicate this issue on our test portal running v.5.0. Would you mind logging into our test site to replicate the issue. This will determine if the issue is with the latest version of the cart or an issue with your specific dnn portal/cart install.

Please send me an email with a link to this post to kevin@smith-consulting.com I will send you login credentials.

Thanks,

 
New Post
7/18/2012 11:50 AM
 
Kevin, the issue does appear to be resolved in the new version. Thank you!
 
New Post
7/18/2012 6:05 PM
 
Hi Ted,

Glad we were able to help and thanks for posting back with an update!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartError when changing quantity and using shipping calculatorError when changing quantity and using shipping calculator