HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical error on details page...Critical error on details page...
Previous
 
Next
New Post
2/8/2011 11:04 AM
 

I have a store setup here:

http://tymuseum.cboss-staged.com/Gift...

If you click on any category on the left and then a product you will get the following error when being routed to the product details page:

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

I am on Smith Cart 4.0 - any thoughts?

Thanks.

 
New Post
2/8/2011 11:15 AM
 

Tried deleting the details page and recreate a different one to see if I could get this to go away... and now on my settings page at the very bottom I get this error and cannot save the new details page:

Error: Buy Now is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Settings.LoadSettings() --- End of inner exception stack trace ---

Now if you try going to the details of a product - it will just go to the home page because there is nothing speicifed now. Any help would be appreciated.

 
New Post
2/8/2011 3:49 PM
 

I would recommend doing a clean install (instructions here). Also, can you please post the detailed error from the event viewer?

Thanks,

Christian

 
New Post
2/9/2011 6:30 AM
 

Here are the details... I would like to look at this (the error log) first. I have this on an Instance that has two sites with this module... If I do an uninstall I am afraid that the I will get into more issues with this.

The odd thing is on the other portal with this cart there are no errors at all. Why would this one portal all of a sudden have errors?

ModuleId: 939
ModuleDefId: 139
FriendlyName: Buy Now
ModuleControlSource: DesktopModules/Smith.BuyNow/ProductsList.ascx
AssemblyVersion: 5.6.1
PortalID: 4
PortalName: Ty Cobb - Museum
UserID: 1
UserName
ActiveTabID: 442
ActiveTabName: Gift Store
RawURL: /GiftStore/tabid/442/ctl/Module/ModuleId/939/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; BO1IE8_v1;ENUS)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5cdbb4ac-534d-4a49-b102-e9bf0e02e4e6
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Settings.LoadSettings
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Settings.LoadSettings() --- End of inner exception stack trace ---
Source:
Server Name: WEBSERV01

 
New Post
2/9/2011 9:28 PM
Accepted Answer 

I just tried to replicate this on the www7 test portal and also you wern't able to to reproduce it so I'm not sure exactly what the issue with your portal is. If you can reproduce the issue on the www7.smith-consulting.com test site then its a bug in the cart and we can fix it, if you cant reproduce it on the www7 test portal then the issue is something specific to your dnn install or server environment or something with your cart install possibly has gotten out of the sync. I recommend that you install the latest version of the cart on a new dnn install on your laptop to test.

Christian

 
New Post
2/10/2011 6:09 AM
 
Christian wrote:

I would recommend doing a clean install (instructions here). Also, can you please post the detailed error from the event viewer?

Thanks,

Christian

If I perform a clean install... I need to make sure that I back up every single cart item, setting and image... how do I make sure I have a clean export so that after reinstalling I can get this back up and running fairly quick? There is nothing in the manual for doing this. Please advise. Thanks.

 
New Post
2/10/2011 4:06 PM
 

This is the easiest/fastest method to backup your data and then import it after doing a fresh install:


In SQL Management Studio

  1. Connect to the database you are exporting "from" or importing “to”
  2. Right click on the database you are exporting from to start the Import/Export wizard
  3. Select the "Tasks" item, then either click on the "Import Data..." or "Export Data..." menu item.
  4. Follow the wizard

Here are the cart tables that contain data that needs to be backed up:



Smith_Products
Smith_Product_Variants
Smith_Categories
Smith_CategoryProduct
Smith_Manufacturer
Smith_Orders
Smith_OrderDetails
Smith_Customer
Smith_PayHist



Here is a good link that explains how to export/import data using SQL Server:
http://www.databasejournal.com/features/mssql/article.php/3580216/SQL-Server-2005-Import--Export-Wizard.htm


I recommend exporting to sql server tables instead of flat files or xls because you will encounter less data type conversion errors when importing the data to the cart tables if you are importing sql server to sql server.

If you have your database in xls you can also use the smithcart import feature

Christian

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical error on details page...Critical error on details page...