HomeHome Product Discus... Product Discus...SmithCartSmithCartProblem with products when you click on itProblem with products when you click on it
Previous
 
Next
New Post
5/30/2012 2:57 PM
 

When you click on specific products i.e. http://www.bootplace.com/Storefront/ProductDetails/tabid/64/ProductId/17/Default.aspx you get the generic a critical error has occured. When I look at the event viewer I see this. 

 

UserID: 1

UserName: hostadmin

ActiveTabID: 64

ActiveTabName: Product Details

RawURL: /Storefront/ProductDetails/tabid/64/ProductID/45/10,pull-on,4764,justin,steel-toe/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer:

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: f97af603-2269-4ca4-a894-f13662cd6e53

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

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Web.DDRMenu.DDRMenuControl.OnPreRender

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 DotNetNuke.Web.DDRMenu.DDRMenuControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: MYSERVER

Any ideas?

DNN 06.01.01 (12) smith cart 4.67.0

 

 

 

 
New Post
6/1/2012 1:11 AM
 

Hello,

Are there any differences between the product which are not producing the error and those that are not?

Have all your Variants been assigned Variant Groups?

Thanks,

 
New Post
6/4/2012 8:31 AM
 

So I found the issue, it seems to be from products that we've copied variants. If I pull one of them up, the variants page looks like this http://i.imgur.com/PEyrs.png . However, if you click on any of those variants, there's nothing in the group dropdown. If I go into that product and create the group, then re assign every single one, then the product works. This seems like a bug to me, because copying them is what breaks it. Any ideas on a fix? Going through all the products and updating every single variant would take a really, really long time.

*edit 
I'll note that I'm open to doing something via sql to get things inserted in the correct tables. I can provide a backup of my website if you guys need it to see the issue.

 

*second edit
I've tried doing something on my own, but I don't understand what should be happening within your table structure. It seems to me like the variant group ids in the smith_ProductVariant and smith_ProductVariantGroup tables should match, but mine don't. I was going to write a query updating the smith_ProductVariant table to match the id for the Smith_ProductVariantGroups table, but the smith_ProductVariantGroups table has a column for productid. To me that says that I'm not thinking about how these tables a structured correctly, because in my mind, there's no need for a productid column in the ProductVariantGroups table, you could reference the ProductId from the ProductVariant table. Here's an Excel file of the results of the following query for reference

http://dl.dropbox.com/u/4979877/variants.xlsx

select * from Smith_ProductVariant as pv INNER JOIN Smith_ProductVariantGroup as pvg on pv.VariantGroup = pvg.VariantGroup

 

*third edit

upon further investigation, I was able to fix it with this query

 

SET IDENTITY_INSERT Smith_ProductVariantGroup ON
GO
INSERT INTO Smith_ProductVariantGroup (VariantGroupID, ProductID, VariantGroup, VariantHelpURL, PortalId, Hide)
Select VariantGroupID, ProductID, VariantGroup, '', null, '0' from Smith_ProductVariant where VariantGroupID not in (select VariantGroupID from Smith_ProductVariantGroup)
GO
SET IDENTITY_INSERT Smith_ProductVariantGroup OFF
GO
 
 
However, could we get this bug fixed, so that copying the items works?
 
New Post
6/5/2012 10:25 PM
 

Hello,

I believe this issue has already been resolved in the Cart as I am unable to replicate this issue on our test portal but I may not have the exact same configuration as you. 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 an email with a link to this post to support@smith-consulting.com for login credentials.

Thanks,

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartProblem with products when you click on itProblem with products when you click on it