HomeHome Product Discus... Product Discus...SmithCartSmithCartIssue with adding variants to a productIssue with adding variants to a product
Previous
 
Next
New Post
5/27/2010 1:03 PM
 

It seems that for any product I add a variant to when the Options button is clicked an error "Object reference not set to an instance of an object" occurs instead of displaying the detail page. I am running the newest version of the shopping cart with DNN 5

 
New Post
5/27/2010 3:54 PM
 

When you click the options button is it from the buynow module or the featured products module?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/27/2010 4:00 PM
 

From the BuyNow module. Using the links attached to the product name and icon work, but the Options button causes the error.

 
New Post
5/27/2010 4:07 PM
 

I cant replicate the issue. Can you post a screen shot of your product variants and product detail settings from the cart admin. In the dnn event viewer is it saying that the error is on the productlist page or the productdetail page?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/27/2010 4:15 PM
 

Here is the error from the log while I get the images you requested.

AssemblyVersion: 5.4.0
PortalID: 0
PortalName: Heritage Archivers
UserID: 1
UserName: host
ActiveTabID: 106
ActiveTabName: Project Order
RawURL: /ProjectOrder.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.heritagearchivers.com/ProjectOrder.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: aceb3d2c-fddd-4683-af79-a5c78d921bd0
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.ProductsList.btnSelect_Click
StackTrace:
Message: System.Exception: Unhandled Error: ---> 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.ProductsList.btnSelect_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.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 --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.OnError(EventArgs e) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace

 
New Post
5/27/2010 4:32 PM
 

Requested images found at http://www.heritagearchivers.com/support.aspx

 
New Post
5/27/2010 4:33 PM
 

Ok so it says the error is on the productlist page. Can you confirm that you are running cart version 2.90? Also, since its not happening on my test system I need the following so i can setup the exact settings that you have:

  1. Post a screen shot of your product variants from the product setup screen
  2. Post a screen shot of your product detail settings from the cart admin settings

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/27/2010 4:35 PM
 

Running version 2.89, Image link above

 
New Post
5/27/2010 4:42 PM
 

I'm wondering if this has anything to do with the problem. The version I originally downloaded and installed upon purchase was 2.85. I was provided (on 5/25/10) with the link to versioin 2.89 which I installed in order to fix an issue with the Bill Me Later option. The variants I entered did work at least once upon original creation. I not exactly sure when they went off-line, but I seems it may have been after the update.

 
New Post
5/27/2010 4:46 PM
 

Thats possible you might want to try upgrading to the latest version 2.90 can be downloaded from the downloads page. Or try installing 2.9 on a new dnn install and see if you still get the error with a fresh install that will tell you if the issue accurred after the upgrade.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/27/2010 5:04 PM
 

Upgrading to 2.9 has fixed the problem. Thank you.

 
New Post
5/28/2010 12:09 PM
 

I thouht this was fixed yesterday. I added another item to the group and got a new error when selecting one of the variants from a dropdown.

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. ---> System.Web.HttpException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 
New Post
5/28/2010 12:25 PM
 

Can you make sure that all your sort orders are filled in and unique for the variants.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/28/2010 12:40 PM
 

Yes, they have unique sort orders.

 
New Post
5/29/2010 1:16 AM
 

Can you post a screen shot of your payment detail page settings from the cart admin settings.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartIssue with adding variants to a productIssue with adding variants to a product