HomeHome Product Discus... Product Discus...SmithCartSmithCartError after disabling share on categoriesError after disabling share on categories
Previous
 
Next
New Post
11/22/2010 11:57 AM
 
two portals, 5 and 9.

Configured several products and categories on portal 5, added buynow and category menu to product list page and product details and category menu to product details page. All categories were set to share.

Configured several products and categories on portal 9, added buynow and category menu to product list page and product details and category menu to product details page. Categories were NOT set to share.

I decided that I did not want the categories from portal 5 appearing in portal 9 so I removed the share flag from all of them. Went back to the product list page in portal 9 and found "A critical error has occurred. Object reference not set to an instance of an object." underneath the buynow module. I deleted the category menu module on the same page, refreshed the page, and the error cleared. I restored the category menu module from the recycle bin and the error appeared again.

I changed all of the categories in portal 5 back to shared and the error in portal 9 went away.

So it seems that if a category is created initially with the shared flag set and is subsequently shared on another portal, removal of the shared flag breaks the category menu on the other portal. One other note, I did turn on the categories within the buynow module in the second portal with the category menu removed and it worked normally.

It looks like my only way around this is to delete all categories and products on the first portal and re-install them with shared disabled. Is there a better way?

SC 3.92, DNN 5.5.1

Thanks,

Dana Richard

 
New Post
11/23/2010 7:07 AM
 
More Info...slightly different problem

Have done completely clean install, rebuilt both portals separately...absolutely nothing shared. Created a new category and manufacturer on each portal (categories are NOT shared), and successfully imported a different set of products into each portal. After doing so I added the category menu module to the buynow page of portal 1. I then went to portal 2 and tried to add the category menu module to its buynow page and immediately got A critical error has occurred.
Object reference not set to an instance of an object.

I then deleted the category menu module from portal 2 buynow page, refreshed the buynow page, and the error cleared. I then went back to portal 1 and deleted the category menu module and tried to add it back in to portal 2 but it still fails. So it seems that there is a bug when adding the category menu module to a second portal once it has been added to the first portal.

This really needs to be fixed for us to move forward.

Thanks,

Dana Richard

Here's the event log:

AssemblyVersion: 5.5.1
PortalID: 5
PortalName: EVCAero - Global Aeronautical Charts
UserID: 1
UserName: evchost
ActiveTabID: 157
ActiveTabName: Home
RawURL: /EVC/Default.aspx?alias=evw2k8vsdana/evc/evcaero
AbsoluteURL: /EVC/Default.aspx
AbsoluteURLReferrer: http://evw2k8vsdana/EVC/Default.aspx?alias=evw2k8vsdana/evc/evcaero
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0834675d-be9d-45fc-853a-5c38299e2d0e
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.CategoryMenu.CategoryMenu.Page_Load
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 Smith.DNN.Modules.CategoryMenu.CategoryMenu.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:
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartError after disabling share on categoriesError after disabling share on categories