Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Child portal wonChild portal won't delete
Previous
 
Next
New Post
9/21/2009 8:15 PM
 

One of my production sites -- DNN 4.9.2 --  has several child portals. In the process of creating a new child portal, I decided to delete one that was no longer being used. That turned out to be a bad decision. The PortalID in question is 2.

* The Host | Portals page reports that Portal 2 is still installed, with 1 user and 3 pages.
* The Tabs table has 21 rows where PortalID = 2
* The  Profile table contains 3,780 rows where PortalID = 2
* PortalID 2 shows up in many other tables, and I assume those rows should have been deleted
* The folder for portal 2 in the file system has been deleted

OK, you get the gist of it. The portal didn't get fully deleted. When attempting to delete it now, from the Host | Portals page, I get this error:

Method: DotNetNuke.Entities.Portals.PortalSettings.GetSiteSettings
Message: System.Exception: Unhandled Error: ---> DotNetNuke.Services.Exceptions.PageLoadException: Error: Site Settings is currently unavailable. ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Error: Site Settings is currently unavailable. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Any advice on how to remove this errant child portal would be greatly appreciated.

 
New Post
9/21/2009 10:42 PM
 

Last I encounterd this, I think I solved it by brute forcing an entry back into the portals and portal alias tables that had the id of the MIA portal. Then, went back into DNN Host settings and deleted it successfully. Obviously , make sure you have the correct entries in such things as the path field in the portals table, etc.

Just curious, do you have an existing entry in either table (portals, portal alias) that reference that portal ID?


Eric Swanzey
www.swanzey.com
 
New Post
9/21/2009 10:44 PM
 

Ah, and make sure you have at least an empty "2" folder in the Portals directory so you don't throw an error on it being missing.


Eric Swanzey
www.swanzey.com
 
New Post
9/22/2009 2:48 PM
 

Thanks for the note. I recreated the Portals\2 folder (and the Portal Alias folder, which was also missing) but no luck. I'm going through the database now, but can't identify what else I might need to change.

* The Portals and PortalAlias tables both contain Portal ID 2.
* The Tabs table seems to contain a full complement of Tabs for Portal ID 2 (Admin, File Manager, User Accounts, etc.)
* The TabModules table contains NO TabID's that relate to Portal ID 2 in the Tabs table. This must be a problem, no?

Error when trying to edit Portal 2 from Host | Portals page:

Method: DotNetNuke.Entities.Portals.PortalSettings.GetSiteSettings
StackTrace:
Message: System.Exception: Unhandled Error: ---> DotNetNuke.Services.Exceptions.PageLoadException: Error: Site Settings is currently unavailable. ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Error: Site Settings is currently unavailable. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetSiteSettings(Int32 PortalId) at DotNetNuke.Modules.Admin.PortalManagement.SiteSettings.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc) at DotNetNuke.Modules.Admin.PortalManagement.SiteSettings.Page_Load(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 --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) at System.Web.UI.TemplateControl.OnError(EventArgs e) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
 

Error when trying to browse to Portal 2 home page (which is in the Tabs table as TabID 217):

Method: DotNetNuke.Entities.Portals.PortalSettings.GetSiteSettings
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetSiteSettings(Int32 PortalId) at DotNetNuke.Entities.Portals.PortalSettings.GetSiteSetting(Int32 PortalId, String SettingName) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Child portal wonChild portal won't delete


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out