HomeHome Product Discus... Product Discus...SmithCartSmithCartAdmin Order Details Null ReferenceAdmin Order Details Null Reference
Previous
 
Next
New Post
9/9/2013 12:22 PM
 

We are having issues viewing the order details for any order:

========================================

AbsoluteURLReferrer
: http://siteurl/Admin/StoreAdmin/tabid/119/ctl/ManageOrders1/mid/1084/Default.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID: 3dcfe76a-1ba7-4bb5-b1c4-39ef7c17ab9a

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: Smith.DNN.Modules.BuyNow.ManageOrderDetail.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.ManageOrderDetail.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 ---



==============================

1) Include the version of the cart that you are running. 
5.60.0

2) Include the version of SQL Server that you are running.
SQL Server 2008

3) Include the version of DNN that you are running.
7.0.6

4) Give a general overview of the settings that you are using. For example, "I am using the Ship by Quantity Ordered" or "The Categories module is on two pages; one with the Featured Products and one on the BuyNow page.
Very basic setup.  However, we have imported our products from Catalook via SQL.  This error occurs though regardless of whether the product was imported or created through the admin.  Doesn't appear to be tied to the user either, but I have only tried 2 so far, still testing.

 
New Post
9/9/2013 12:48 PM
 
I upgraded to 5.62.0, tried a few other admins, etc.

I am thinking this is data related.  I have tried doing full config of a pure product vs an imported product, pure user vs imported user, etc.   I still get the error every time though.
 
New Post
9/9/2013 2:36 PM
 
After 5.62.0 things got much worse.  Now in addition to not being able to access the order details page, I can't get at a few of the buynow modules for certain categories (we are using 1 per category, each on its own page):

DNN Error Log attached.  Starts with the Admin view Order details issue.  The following errors after that all are generated on a single buynow module access.  Not all buynow modules are behaving this way, just certain categories.
 
 Login to download attachment
New Post
9/9/2013 4:21 PM
 
Hi Brad,

Is this a clean install of SmithCart 5.60 and DNN 7.0.6?

Regarding moving your products over from another system, did you use the Product Import feature? This allows you to upload an Excel spreadsheet to load all of your Products.

Please see the following link for more info about the Product Import: http://www.smith-consulting.com/Forum...

Thanks!
 
New Post
9/10/2013 6:31 AM
 
This is an upgrade.  The site was previously running DNN 4.9.5 and Catalook. 

I couldn't use the import as it did not import enough of the information, or allow us to maintain foreign key indexes to the old data for a period of time.  I thought with a reasonable level of matching data and tracing inserts we wouldn't have an issue doing this via SQL.

Further testing this morning shows even more lack of null checks.  The final page of checkout now chokes and throws:

2013-09-10 08:14:33,131 [dev1][Thread:30][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Smith.DNN.Modules.BuyNow.Step2.ibNext_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)

 
New Post
9/10/2013 7:56 AM
 
I downgraded back to 5.60 by restoring a backup, and that has resolved many of the issues.

The original issue I also found the cause.  If you have many BuyNow modules sharing data, and you try to use the View Order Details function without first configuring that particular BuyNow module, it will throw that Null Reference error.

I appear to be back in business.

However, as a developer myself, a suggestion to better handle Nulls by either setting defaults, or displaying friendly errors such as "Hey, you need to setup this module still!" would be appreciated.
 
New Post
9/10/2013 2:15 PM
 
Hi Brad,

Glad to hear you found the cause of the error you were receiving.

Also thanks for your feedback, that's a great suggestion and I will pass this along to our programmers.

Thanks!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartAdmin Order Details Null ReferenceAdmin Order Details Null Reference