|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
On many of my imported items I am getting this message when clicking to view the item details:
A critical error has occurred.
Object reference not set to an instance of an object.
I cannot view my log file becasue it says my "provider" has disabled it.
|
|
|
|
| |
|
|
|
|
Joined: 10/18/2010
Posts: 79
|
|
|
Lori,
Under the Admin menu there is an Event Log item, please click on that to view your DNN errors. You can cut and paste the error to the forums and we can try and help. It also helps to list your Smith Cart version, DNN version, and SQL version.
Thanks,
Darren
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Hi Darren,
Thanks for your response. Here is the info:
DotNetNuke Community Edition5.5.1
Smith.BuyNowSmith version 4.67.0
SQL 1.0.0
Error Log:
AssemblyVersion: 5.5.1
PortalID: 0
PortalName: Mobility
UserID: -1
UserName:
ActiveTabID: 40
ActiveTabName: PRODUCTS & SERVICES
RawURL: /Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5a97b1f5-08f7-4b99-bdfd-4411d0ed500b
InnerException: Can't get ModuleId for given module name 'Smith.BuyNow'
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.MyToolBox.GetModuleIdByName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Can't get ModuleId for given module name 'Smith.BuyNow' ---> System.ApplicationException: Can't get ModuleId for given module name 'Smith.BuyNow' at Smith.DNN.Modules.BuyNow.MyToolBox.GetModuleIdByName(Int32 tabId, String moduleName) at Smith.DNN.Modules.BuyNow.MyToolBox.GetSmithSettingString(Int32 buyNowTabID, String smithSetting) at Smith.DNN.Modules.FeaturedProducts.FeaturedProducts.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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: DPWEBSVR2850B
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Lori,
At the top of the BuyNow module settings in the "General Store Setup" section, did you set your "Product Detail Page" ?
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Hi Kevin, yes I have the "Product Detail Page" set to a "details-test" page in the General Store Setup area. Screen shot attached:
Lori
|
|
| | Login to download attachment |
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Lori,
In the Product Details module Settings, have you set the BuyNow page name as well?
Do the products entered through the Cart UI produce the same error?
Is the data you are importing from another SmithCart? If so which versions to and from?
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Hi Kevin,
(In the Product Details module Settings, have you set the BuyNow page name as well?)
Yes.
(Do the products entered through the Cart UI produce the same error?)
No, only the products imported from the XLS file produce the error. Products entered through the cart UI display fine, no error messages on details page or at checkout page.
(Is the data you are importing from another SmithCart? If so which versions to and from?)
No, I am importing from an XLS file.
Thanks!
Lori
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Lori,
If the data is coming from a database other than sql server like a unix platform, mainframe or vsam/isam files the data is most likely stored in a different data format and when exported could include characters that may not be visible in ascii so make sure your data is clean of any special characters before importing.
Make sure that alphanumeric fields that have all numbers (i.e. sku) have a single quote in front of the them as excel converts these fields to numbers or scientific notation in some cases if the number is big enough.
To ensure the correct data format, I suggest first copying to notepad before pasting to the SmithCart spreadsheet to strip characters that may not be visible.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Ah, yes...I will try that, thank you.
Lori
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Hi Kevin,
As far as I can tell the XLS file is clean. I reimported and got a new error:
Can't get ModuleId for given module name 'Smith.BuyNow'
Log:
AssemblyVersion: 5.5.1
PortalID: 0
PortalName: Mobility
UserID: 4
UserName: Lori
ActiveTabID: 62
ActiveTabName: DETAILS-TEST
RawURL: /DETAILSTEST.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mobility.dragonpoint.com/DETAILSTEST/tabid/62/ctl/Module/ModuleId/383/Default.aspx
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 94b444ae-394c-498a-beef-a9573433d30b
InnerException: Can't get ModuleId for given module name 'Smith.BuyNow'
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.MyToolBox.GetModuleIdByName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Can't get ModuleId for given module name 'Smith.BuyNow' ---> System.ApplicationException: Can't get ModuleId for given module name 'Smith.BuyNow' at Smith.DNN.Modules.BuyNow.MyToolBox.GetModuleIdByName(Int32 tabId, String moduleName) at Smith.DNN.Modules.BuyNow.MyToolBox.GetSmithSettingString(Int32 buyNowTabID, String smithSetting) at Smith.DNN.Modules.ProductDetail.ProductDetails.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.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: DPWEBSVR2850B
Thank you again for your assistance.
Lori
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Lori,
Alright we are making progress, is this message being displayed on the Product Details page? If so, you need to set the BuyNow Page Name in the ProductDetails modules settings.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 11/30/2011
Posts: 8
|
|
|
Hi Kevin,
As I click around the site, sometimes I get this error, "Object reference not set to an instance of an object." and other times I get the, "Can't get ModuleId for given module name 'Smith.BuyNow'" error on all the product details pages of the imported items. It seems to matter which page I am coming from...but I can't really see a pattern.
Can you walk me through how to set the BuyNow Page Name in the ProductDetails modules settings? I believe I have done this already...but maybe I'm mistaken.
thanks!!
Lori
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Lori,
Do you have any other Smith modules besides the BuyNow and Product Details installed on the pages you are receiving the "Can't get ModuleId for given module name 'Smith.BuyNow'" message?
When receiving the "Object reference not set to an instance of an object." message, what are the steps taken to produce the message? Is there anything logged to the Event Viewer?
To configure the Product Detail module settings hover your mouse over the module context menu (the drop down arrow in the upper right hand corner of the Smith Product Detail module container) and choose settings. Then for the BuyNow Page Name field, select the page where you have added the BuyNow module. This tells the Product Detail module which page to navigate to when the user clicks continue shopping or add to Cart.
Thanks,
|
|
|
|
| |
|
|
|
Joined: 12/21/2010
Posts: 18
|
|
|
We are having exactly the same problem. We have imported our products using the lates import template. Now when we click on a product we get the same error as above. All our cell formatting is set to text in the xls file. What is interesting is that products with no images work fine.
Here is the error we are getting:
4/16/2012 7:27:43 AM Module Load Exception host ModuleId: -1; ModuleDefId: -1; FriendlyName: ... ModuleId: -1 ModuleDefId: -1 FriendlyName: ModuleControlSource: AssemblyVersion: 5.6.2 PortalID: 0 PortalName: Layers Bed Company ....because every layer counts UserID: 1 UserName: host ActiveTabID: 62 ActiveTabName: Purchase RawURL: /BuyOnline/Purchase/tabid/62/ProductID/2/Default.aspx AbsoluteURL: /Default.aspx AbsoluteURLReferrer: http://dev.layersbedcompany.com/BuyOnline.aspx?categoryid=1 UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19 DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: 0c27ce58-7adb-4d01-a9d9-459f0723a649 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:
|
|
|
|
| |
|
|
|
Joined: 1/1/0001
Posts: 0
|
|
|
Hi Richard,
Are you currently running SmithCart v.4.93? I was able to replicate a similar issue in v.4.93 however this issue does not appear to be present in v.4.98 currently in testing soon to be released. If you would like to use our test environment or if you would like to receive a beta version of the Cart prior to the release to confirm this, please send an email with a link to this post to kevin@smith-consulting.com.
Thanks,
|
|
|
|