Hello,
I recently upgraded my DNN website from version 9.13.9 to 10.1.1, and I’m encountering the following error during page rendering:
System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Containers.Title.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.d__249.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult() at System.Web.UI.Page.d__523.MoveNext() --- End of inner exception stack trace --- This seems to be triggered by the DotNetNuke.UI.Containers.Title control during the OnPreRender phase.
DotNetNuke.UI.Containers.Title
OnPreRender
I’ve checked for custom containers and modules, and the error persists across multiple pages. Everything was functioning normally prior to the upgrade.
Can you please advise:
If this is a known issue with version 10.1.1?
Whether there are any changes to container handling or the Title control that could cause this?
Any recommended fixes or workarounds
Let me know if more information is needed.
Thank you for your assistance.
Best regards
Can you post the registrations that are on top of the used container?
I am getting this same error when I perform a Test upgrade locally. It seems as though any module container that uses a Title will break the entire page causing a 500 error. AbsoluteURL:/Default.aspx DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID:3702b74a-9c21-436d-9e60-3011229b05eb AssemblyVersion:10.1.2 PortalId:1 UserId:-1 TabId:54 RawUrl:/Default.aspx?tabid=54&error=An+unexpected+error+has+occurred&content=0 Referrer:https://dnnhost2test.local/About-Us UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 ExceptionHash:GFbP3h6hxc0I0yURxtHhLTaYhx4= Message:Object reference not set to an instance of an object. StackTrace: InnerMessage:Object reference not set to an instance of an object. InnerStackTrace: at DotNetNuke.UI.Containers.Title.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.d__249.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult() at System.Web.UI.Page.d__523.MoveNext() Source: FileName: FileLineNumber:0 FileColumnNumber:0 Method: Server Name: SERVERNAME
In the affected module's settings, so long as I set "Module Container" to "" or to something like "Xcillion - NoTitle" then everything appears to work normally. If I select any module container that has a title, it gives the above error. For others with this issue who are looking for a workaround. You could remove all the module containers with titles prior to updating, or if you've already updated and you have at least one unaffected page (like your login page maybe) and you can log in and Navigate to Pages > "Page Name" > Advanced, and update the module settings on any given page here and remove the module containers with titles. I have a rather large website where removing the titles from every module isn't a viable option. This is the only other person I see discussing this issue, so I haven't been able to resolve it for myself.
That's weird, I just tested the Xcillion H2 Title container on DNN 10.1.2 and it works as expected. You don't have Apollo Localization on this site do you, or any other extension that manipulates the content? Can you check if the register looks like this in the container you use? https://github.com/dnnsof...ainers/title.ascx#L2
Are there specific types modules with which you have this issue?
Can you try if this also happens on a newly create page with a new module?
Posted By Shivam S on 10/13/2025 12:06 PM If this is a known issue with version 10.1.1?
No, it's not.. Are these Multi language sites?
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.