HomeHome Product Discus... Product Discus...SmithCartSmithCartTrying to access settings throws a Critical ErrorTrying to access settings throws a Critical Error
Previous
 
Next
New Post
12/16/2010 7:08 AM
 

I am on DNN 5.6 - everything is working as it should in the CMS. I was having issues with the Cart though.

I would go into the settings of the module by hovering over the blue arrow on the Gift Store and selecting Settings. Not to be confused with the Store Admin Menu.

In version SmithCart 03.95.00 - I was able to access this screen, but not able to save the changes. All fields marked required were completed - however I would click update and nothing would happen.

I upgraded to SmithCart03.96.00 - Now when trying to goto the settings page I am shown the following error at the bottom of the pages:

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

Any ideas what is going on here? All permissions on the server are set correctly and the server has recently been rebooted.

 
New Post
12/16/2010 9:14 AM
 

Can you post the error in your dnn event veiwer?

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
12/16/2010 11:13 AM
 

12/16/2010 2:11:25 PM Module Load Exception superadmin$cb ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.6.0
PortalID: 4
PortalName: Ty Cobb - Museum
UserID: 1
UserName: superadmin$cb
ActiveTabID: 442
ActiveTabName: Gift Store
RawURL: /GiftStore/tabid/442/ctl/Module/ModuleId/921/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; AskTB5.6; BO1IE8_v1;ENUS)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d176b648-a088-415f-b80c-c7a16cd95e84
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.ActionBase.get_ActionRoot
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 DotNetNuke.UI.Containers.ActionBase.get_ActionRoot() at DotNetNuke.UI.Containers.ActionBase.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: WEBSERV01

 
New Post
12/16/2010 3:32 PM
 

The settings in the buynow module use the builtin dnn function UpdateTabModuleSetting to save the settings in the dnn TabModuleSettings table so there is no sql code or stored procs we have written to save the buynow module settings when you click update its all builtin dnn functionality.

Here are few suggestions to help troubleshoot/diagnose:

  • Are you able to save other non cart settings like page name and appearance settings?
  • Have you recently upgraded dnn, the cart or moved hosting?
  • Try changing your skin to the default dnn skin and see if that helps.
  • Try installing the latest version of the cart on a new dnn install on your laptop as a test to isolate if the issue is with your portal or the cart.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
12/17/2010 7:43 AM
 
  • Are you able to save other non cart settings like page name and appearance settings? I can't even get to the settings screen.
  • Have you recently upgraded dnn, the cart or moved hosting? I updated to DNN 5.6, but everything else is fine. I have no other issues with anything on the site... if this is a DNN controlled issue - why am I able to access settings of other modules and save them. This is what is confusing me.
  • Try changing your skin to the default dnn skin and see if that helps. Changing the skin still results in the same error.
  • Try installing the latest version of the cart on a new dnn install on your laptop as a test to isolate if the issue is with your portal or the cart... When I try to reinstall the cart I get this... why can't I install it again after removing it?
  • SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dnn_Smith_AddVMatrixDetail' in the database. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.Dnn_Smith_AddVMatrixDetail @ProductID int, @YAxisTitle varchar(50), @MatrixItemID1 int, @MatrixItemID2 int, @MatrixItemID3 int, @MatrixItemID4 int, @MatrixItemID5 int, @MatrixItemID6 int, @MatrixItemID7 int, @MatrixItemID8 int, @MatrixItemID9 int, @MatrixItemID10 int AS INSERT INTO Dnn_Smith_VariantMatrixDetail (ProductID, YAxisTitle, MatrixItemID1,MatrixItemID2,MatrixItemID3,MatrixItemID4,MatrixItemID5,MatrixItemID6,MatrixItemID7, MatrixItemID8,MatrixItemID9, MatrixItemID10) VALUES (@ProductID,@YAxisTitle, @MatrixItemID1,@MatrixItemID2,@MatrixItemID3,@MatrixItemID4,@MatrixItemID5,@MatrixItemID6,@MatrixItemID7, @MatrixItemID8,@MatrixItemID9,@MatrixItemID10) SELECT SCOPE_IDENTITY
 
New Post
12/17/2010 7:44 AM
 

Installed it on a brand new install of DNN 5.6 - completely fresh.. install went fine... when I try to access the settings I get the error:

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

Same thing as before...

 
New Post
12/17/2010 9:06 AM
 

Open DesktopModules/Smith.BuyNow/Settings.ascx
Add this at line 4 and save the file.

<asp:ScriptManager ID="ScriptManager1" runat="server" />

Does it make a difference in the error?

 
New Post
12/17/2010 9:27 AM
 

I added that right under line 4 (making it line 5) - it did not make a difference... same error.

 
New Post
12/17/2010 9:34 AM
 

I am not a coder.. but does this help anyone here uinderstand why this error is coming up?

http://forums.aspfree.com/net-develop...

 
New Post
12/17/2010 9:35 AM
 

I can't upload the file here, so please email djbaldwin at winhurst.com and I will send you a file to diganose the real problem.

 
New Post
12/17/2010 9:39 AM
 

Actually this is the most common error in .net and the generic response is extremely difficult to diagnose especially when DotNetNuke traps the underlying cause. In every case it is the programmer assuming that an object contains data when it does not.

 
New Post
12/17/2010 10:29 AM
 

Also try opening up settings.ascx and commenting out all the updatepanels

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
12/17/2010 11:01 AM
 
djbaldwin wrote:

I can't upload the file here, so please email djbaldwin at winhurst.com and I will send you a file to diganose the real problem.

I emailed you - thanks.

 
New Post
12/17/2010 11:03 AM
 
skelly wrote:

Also try opening up settings.ascx and commenting out all the updatepanels

-Scott

Scott - I would gladly try this but I am unsure of what to exactly comment out... when you say update panels what exactly are you refering to?

Thanks

 
New Post
12/17/2010 11:42 AM
Accepted Answer 

Comment all the update panels opening and closing tags. Update panels look like this

<asp:UpdatePanel runat="server" ID="UpdatePanel2">

<ContentTemplate>

Make sure you back up the file before changing it so you can rollback if need be.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartTrying to access settings throws a Critical ErrorTrying to access settings throws a Critical Error