Hi,
We have been getting errors on DotNetNuke production site when trying to access the Site Setting page and add/edit articles using the DNNArticle module on our site. The error on the page displays "A critical error has occurred. Object reference not set to an instance of an object."
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.NullReferenceException: Object reference not set to an instance of an object. atDotNetNuke.Services.FileSystem.FolderManager.GetFolders(Int32 portalID, String permissions, Int32 userID) atDotNetNuke.Web.UI.WebControls.DnnFilePicker.LoadFolders() at DotNetNuke.Web.UI.WebControls.DnnFilePicker.AddFolderArea() at DotNetNuke.Web.UI.WebControls.DnnFilePicker.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.Web.UI.WebControls.DnnFilePicker.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.LoadAjaxPanel() at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) --- End of inner exception stack trace --- at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)
We resolved the issue by deleting all my extra folders that I didn't need and deleted the Folders table - you haveto do both at the same time or it recreates the folders, then I did a recursive synch and this rebuilt the Folders table. But the issue re-occur today, the same issue.
I checked and there's a folder called "DNNArticleLightBoxContent" that is huge, but we do use this folder at all. Last time we deleted this folder, apparently it came back. I suspect this is the cause of the error. Is there any way to eliminate this folder creation? How was it generated in the first place?
Thank you for your help.
Sushan