1

Closed

DNN 7.2.1Object reference not set to an instance of an object.

description

I'm getting an error in DNN 7.2.1 when using the module.
I installed the module, placed it on a page and when I for instance uncheck the "Hide Page Extensions" option, I get the error:

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

In the event log:

AssemblyVersion:7.2.1

PortalID:0

PortalName:Website Name

UserID:6

UserName:host

ActiveTabID:5047

ActiveTabName:X3 URL management

RawURL:/Admin/X3-URL-management

AbsoluteURL:/Default.aspx

AbsoluteURLReferrer:http://dnnmoduletest/Admin/X3-URL-management UserAgent:Mozilla/5.0 (Windows NT 6.0; rv:26.0) Gecko/20100101 Firefox/26.0

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:e68dd252-4e70-447a-be61-b9c03ea99a51

InnerException:Object reference not set to an instance of an object.

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:X3.DnnUrlManagement.PortalEdit.ddlPage_SelectionChanged

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 X3.DnnUrlManagement.PortalEdit.ddlPage_SelectionChanged(Object sender, EventArgs e)
at DotNetNuke.Web.UI.WebControls.DnnDropDownList.OnSelectionChanged(EventArgs e)
at DotNetNuke.Web.UI.WebControls.DnnDropDownList.<CreateChildControls>b__3(Object sender, EventArgs args)
at System.Web.UI.WebControls.HiddenField.OnValueChanged(EventArgs e)
at System.Web.UI.WebControls.HiddenField.RaisePostDataChangedEvent()
at System.Web.UI.WebControls.HiddenField.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()
at System.Web.UI.Page.RaiseChangedEvents()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---

Source:

Server Name: ***

BTW, this is a test install which also has the latest version of iFinity installed (but not active).
But I guess that should not be the problem?

Thanks, Timo
Closed Jan 31, 2014 at 2:55 PM by jmathis
Should be fixed with latest patch

comments

jmathis wrote Jan 31, 2014 at 2:21 PM

The code throwing the error is something I stole from the DNN source code. In looking at it, it appears the page selected in the page drop down list does not exist or can't be found. I can add some null checking to the logic, but in the meantime, see if perhaps the page in question is in the recycle bin or something unusual like that.

jmathis wrote Jan 31, 2014 at 2:53 PM

I fixed it with the latest patch.

Note: this patch is compiled against DNN 7.2.1.

wrote Jan 31, 2014 at 2:55 PM

Timo_Design wrote Feb 1, 2014 at 10:26 AM

Thanks for the quick fix!