Module Discussions
Template error
Last Post 7/23/2009 11:10 PM by David O'Leary. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
Please login to post a reply.
Author Messages Not Resolved
sagsUser is Offline
New Member
New Member
Posts:9
Avatar

--
5/24/2009 07:37 PM  
I made a copy of the Article Details Standard Template with other name, then I edited it and removed the ASP code for "author" and DNN returned me back the following error:

Error: Unable to load the Article Details page.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at EfficionConsulting.Articles.ArticleDetailsTemplateBase.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

It seems to be related to the Article Details Template Base that is invoked in the Standard Details Template.

Editing in the same way the lists templates does not give me any error.

Any idea?
David O'LearyUser is Offline
Efficion Consulting Staff
Posts:123
Avatar

--
6/29/2009 10:13 PM  
For now, please set, visible="false", on the Author control rather than removing it. I will modify the code for the next version to ensure it verities the control exists before acting on it.
David O'LearyUser is Offline
Efficion Consulting Staff
Posts:123
Avatar

--
7/23/2009 11:10 PM  
I've now changed the code so that Detail templates will not require any particular field to be included in the template. This change will be included in version 4.1.
Please login to post a reply.

Active Forums 4.2