|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
DNN 6.00.01 / SmithCart 4.67
I'm a noob with the SmithCart so please bear with me if my problem is too obvious but I've been looking for answers and trying to fix it for days nonstop now - I'm very frustrated.
The issue I'm having is that I get the error "Critical error has occured - Object reference not set to an instance of an object." at different steps of the checkout. It could happen:
-
after I click "Proceed to Checkout"
-
after I enter my shipping info
-
after I enter my billing info
-
after I "Submit Order"
-
after I "Continue" after submitting the order
My cart then says there's no item, but after 1 or multiple refreshes, the items reappear.
I notice more cases where items in the cart disappear, but I'm hoping it's all related to the same cause.
I use manual payment gateway, Purchase Order as the only option, no tax, free shipping, free handling, and no discounts. I've done 2 fresh installs. I have 1 BuyNow page and 1 ProductDetail page, I'm using the MiniCart on both pages. I have only 1 product so I can test better.
I get the bug sometimes (~25%) when going from Add to Cart to end of the checkout process which makes it more frustrating than if it were to happen all the time. Is there a Cart Setting I need to change? Something in the Store Admin I need to add? A Host setting? A cache setting? Please help!!!
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
Without consistently producing the issues you are reporting makes pinpointing the cause very difficult.
Are there any errors logged to the Event Viewer?
Please post a screenshot of your Cart Settings.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
Thanks for the response Kevin! Here is screenshot of my current cart settings. I've done a lot of playing around with it. I'm sorry I can't provide a specific steps where it would occur 100% of the time. Let me know if I could provide anything else that could help. Thanks again!
|
|
| | Login to download attachment |
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
This is the error I keep receiving via the Event Viewer:
UserID: 1
UserName: host
ActiveTabID: 77
ActiveTabName: Shop
RawURL: /Shop/tabid/77/ctl/Confirm/mid/429/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://fash-forward.com/Shop/tabid/77/ctl/Step2/mid/429/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e2efcbd7-e28f-4c36-9531-05ccf44d16a9
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Confirm.GetItemTotal
StackTrace:
Message: 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.Confirm.GetItemTotal() at Smith.DNN.Modules.BuyNow.Confirm.GetTotalAfterTax() at Smith.DNN.Modules.BuyNow.Confirm.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: W06
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
Also:
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Cart.Checkout
StackTrace:
Message: 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.Checkout() at Smith.DNN.Modules.BuyNow.Cart.btnMakePayment_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(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 ---
and:
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Step1.GetTotalAfterTax
StackTrace:
Message: 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.Step1.GetTotalAfterTax(Boolean useStep1DDTax) at Smith.DNN.Modules.BuyNow.Step1.ibNext_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(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 ---
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
I just tried to re-produce this error on my test portal using your Cart Settings configuration and was unable to reproduce the issues you reported above, but I may not have the exact same configuration as you. Please login to our test site http://www17.smith-consulting.com/ and try to replicate the error. 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 email me at kevin@smith-consulting.com for login credentials.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
The bug always and only occurs on a postback (any postback - Add To Cart, View Cart, Checkout, Next... etc.) Then the BuyNow page where I see the error message, I would see the mini-cart has 0 items :. it must be how SmithCart pulls the Cart data and the way my DNN/SmithCart is configured that is causing the Cart to lose its items in the code. Any insight?
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
To clarify, the issue reported cannot be replicated on our test portal correct? If so, to verify this, you can create a DNN 6.0.1 sandbox on your desktop or laptop using the following link and install SmithCart v.4.67 so you can verify correct behavior which should isolate the issue as being in the Cart or your server/DNN portal setup.
http://www.smith-consulting.com/Forum...
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
I installed the same version of DNN (6.1.1) and SmithCart (4.67) on my localhost and applied the same setting as on my server's version and I was UNABLE to replicate the error.
I notice that the cart empties after 1 minute... simply by refreshing the BuyNow page I see it empty. If I were in the middle of the checkout process, I would receive a null reference exception. What configuration causes this?
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
Who is your hosting provider?
I recommend increasing the maxRequestLength, requestLengthDiskThreshold and executionTimeout values of the httpRuntime node in your application Web.config file.
This should prevent your session from timing out and clearing the Cart.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
I am using WinHost
I have changed all those attributes of httpRuntime in web.config but I still get the same error.
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
When I add to cart, I see the items being inserted into the database (dbo.Smith_ShoppingCart).
Then wait one minute.
Refresh the page and the cart is empty. But the item row in Smith_ShoppingCart is still there.
Add to cart again, and the item is inserted into the database again but with a different CartCookie.
Shouldn't my CartCookie be the same?
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
The behavior you have described above is not typical behavior of SmithCart, there must be something in your environment possibly your server, hosting, IIS, App Pool corruption possibly causing your session to timeout . The following link may help you solve this issue: http://c2itconsulting.blogspot.com/20....
The cause of issue cannot be easily determined and I would recommend having an expert look into this. If you do not have the resources in-house, we are of course available to research and troubleshoot the issue for you. If you would like to hire us, please review our support options here: http://www.smith-consulting.com/Forum...
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/9/2011
Posts: 9
|
|
|
Resolved.
SmithCart caused site to use over 100MB of memory which caused the host to restart the application.
Upgraded host to allow up to 200MB memory.
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Tiffany,
Great news, thanks for posting back with an update in case other experience the same issue.
Thanks,
|
|
|
|