DNN Modules Gone Missing…

Ran into an REALLY confounding problem today – my localhost DNN sites stopped rendering module content. No errors, just no modules.

After digging around in Default.aspx, I found my way into the injectModule method of Skin.vb. After tracing around in here for a while, I found that the visibility of the module was being controlled by a cookie…

If Not Request.Cookies(“_Tab_Admin_Content” & PortalSettings.PortalId.ToString) Is Nothing Then
   blnContent = Boolean.Parse(Request.Cookies(“_Tab_Admin_Content” & _ 
      PortalSettings.PortalId.ToString).Value)
End If

Somehow the cookie for http://Localhost/dnn had been set so that it had _Tab_Admin_Content set to false. The net effect is that no modules would be rendered.

I’m not sure how this cookie got set, but it was a dog to track down.    

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s