HomeHome Product Discus... Product Discus...SmithCartSmithCartObject Reference Error after finalizing order?Object Reference Error after finalizing order?
Previous
 
Next
New Post
3/7/2011 12:47 PM
 

I had properly tested my site with 4.1 after upgrading to 4.21 our custom gateway does not seem to work. I can step through the whole checkout process - however after finalizing and order I am now presented with the following error on the cart page:

A critical error has occurred.
Object reference not set to an instance of an object.

Can I downgrade to 4.1 from 4.21 just to check this... or can someone at smith please contact me. I have the site live and now the cart checkout is not working. Any help would be greatly appreciated.

Thanks.

 
New Post
3/7/2011 1:03 PM
 

Please rollback your live site to 4.1 so its processing orders again and setup a test environement where you can install and test the latest version of the cart 4.21 to make sure everything is working before going live. Its always a good idea to install and test new versions of modules on your test site before installing to live.

Thanks,

Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/7/2011 1:04 PM
 

Also please post the error message from your dnn event viewer.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/7/2011 1:11 PM
 

I did test a few orders before this went live. So I am not sure why this happened... here is an error from the event viewer:

3/7/2011 3:38:30 PM Page Load Exception AssemblyVersion: 5.6.1; PortalID: 4; PortalName< ...
AssemblyVersion: 5.6.1
PortalID: 4
PortalName: Ty Cobb - Museum
UserID: -1
UserName:
ActiveTabID: 442
ActiveTabName: Gift Store
RawURL: /GiftStore/tabid/442/ctl/Confirm/mid/989/Default.aspx/$metadata
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.3615)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0d489b47-df89-49d4-8df8-07cb47fd69e5
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Confirm.Page_Load
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.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: WEBSERV01

 
New Post
3/7/2011 1:11 PM
 

So you are saying that I can install 4.1 on top of 4.21? This will roll me back?

 
New Post
3/7/2011 1:17 PM
 

No dnn doesnt allow downgrading modules like that you will need to restore from your server backup.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/7/2011 1:25 PM
 

I keep backups for 7 days... anything older is truncated. So this won't work. As I said though. I did test this and I know that the order did go through at least 2 times on my tests before making this live. Does the event log tell you anything?

I know how to backup the products and start from sratch... should I unstall and restore my products back to 4.1?

 
New Post
3/7/2011 7:59 PM
 

yes!


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/8/2011 7:18 AM
 

OK... I have went back to 4.1 when I know it was working... however I still get an error... here again is the event viewer log:

AssemblyVersion: 5.6.1
PortalID: 4
PortalName: Ty Cobb - Museum
UserID: -1
UserName:
ActiveTabID: 442
ActiveTabName: Gift Store
RawURL: /GiftStore/tabid/442/ctl/Confirm/mid/997/Default.aspx?id=1206318D-53FE-4886-AA1C-93B18055DB2A
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: fb70cd5d-ba41-4e26-bc53-575212005e1c
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Confirm.GetItemTaxTotal
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.GetItemTaxTotal() at Smith.DNN.Modules.BuyNow.Confirm.GetTax() 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: WEBSERV01

Any ideas here? This was working before. I changed nothing - this is a complete rollback to 4.1 - Also what is the correct return URL for my store?

http://www.tycobbmuseum.org/GiftStore...

http://www.tycobbmuseum.org/GiftStore...

http://www.tycobbmuseum.org/GiftStore...

I assume it is the last one... am I correct?

 
New Post
3/8/2011 7:28 AM
 

Also... when I do submit an order and it goes through. I will get an email stating what was ordered and I goto this URL:

http://www.tycobbmuseum.org/GiftStore...

I get an order page, but with no order data?? Why is this? The email states what was on the order:

Thank You! Your order is confirmed.
Order Confirmation - Order ID:
Shipping Information
James DeRosa
7332 Southern Blvd
Boardman OH 44512

Telephone:330-726-0429
jderosa@cboss.com

Billing Information





Payment Type: CBOSS Checkout
Account No:
Order Details:
Product Name Quantity Unit Price
Sub Total : $0.00
Shipping & Handling : $0.00
Sales Tax 0% : $0.00
Total : $0.00

 
New Post
3/8/2011 8:25 PM
Accepted Answer 

What settings do you have for your taxes? Are you sure you have the taxes configured correctly?

Thanks,

Christian

 
New Post
3/9/2011 6:54 AM
 

Couple things I found to be the issues.

1. Was the return URL from the gateway... I fixed this and it got rid of the object reference error.

2. I don't know why this is but the tax field was an issue as you stated... It is fine with 7.0 not 7.00 removed the trailing value and this also seemed to smooth things out.

I reinstalled everything from scratch and all seems to be working now. Scary when clients are banging doors down.

 
New Post
3/9/2011 4:38 PM
 

Glad that worked for you and you were able to get it fixed!

Thanks,

Christian

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartObject Reference Error after finalizing order?Object Reference Error after finalizing order?