Search In
Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13. More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed! Less than 25 tickets left - get yours now!
I've tried installing nForum on 3 different Umbraco installations (that are fully operational) and everytime the forum root displays just fine, but whenever I try to actually use the forum (e.g. create a category) or press the "Edit Profile" button I get the error below. I'm running:
umbraco v 4.7.1.1 (Assembly version: 1.0.4393.24044)
And I've tried using the forum as it is, or integrated it into my Masterpages/website (the root showed just fine again, same problem.. ).
Any ideas? :(
Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] nForum.BusinessLogic.Models.ForumMember..ctor(Nullable`1 memberId) +206 nForum.BusinessLogic.MembershipHelper.ReturnMember(Nullable`1 memberid) +179 nForum.BusinessLogic.BaseForumUsercontrol.get_CurrentMember() +50 nForum.usercontrols.nForum.membership.ForumMemberProfileEdit.LoadProfile() +17 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063
Its a problem with the members, do you have a custom property or something on the members? Best thing would be to grab the source and debug, that will show you exactly what the problem is.
I have a custom Member Type nd Group, but that's it. Upon install the forum member types are created, can't they play along with other types/groups?
Update: I've tried creating a new user of Forum User type and added him only to the ForumUser membergroup ignoring the rest of my membergroups/types. No difference.. I manually created a Forum Category in the Umb. backend, it cast an error but created the category - when I click on it though the Object reference error is the same.
Also, it seems that the Examine assembly doesn't load correctly? I've checked all the quicksteps on your blog checking that everything is there, which it is even in the examine config and settings, but when I try to use the search or the member search feature I get the follow:
Could that be what's wrong with the general forum?
This is upon click on my Forum category (Any ideas? :( ):
I get the same problem. For me the forum only works when it is at the root level.When I put it under the Home node the category pages that previously worked error:
[NullReferenceException: Object reference not set to an instance of an object.] nForum.usercontrols.nForum.ForumTopics.GetTopicsFromCategory() +526 nForum.usercontrols.nForum.ForumTopics.Page_Load(Object sender, EventArgs e) +62 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063
Works: Content Forum - http://localhost/forum.aspx Test Category - http://localhost/test-category.aspx
Does not work: Content Home Forum - http://localhost/forum.aspx Test Category - http://localhost/forum/test-category.aspx (Errors)
I have also tried creating the test category before and after moving the forum under Home and its the same result.
Any help appreciated.
Hi Behati,
My issue was caused by me merging the templates and missing off the runat="server" on the head tag.
Maybe you have a similar problem, if not follow the debug instructions here and it should point you in the right direction.
www.blogfodder.co.uk/2012/1/12/nforum-v15-released point 6
Regards,Nick
Its so hard to try and tell you what the issues are when you are installing into a custom scenario. As I mention on my blog, I have tested and tested in normal scenarios, as you can see from the video above. And also outlined the properties and files which should be present in the install.
But when it comes to custom installs/full customisations, then as I mention in my blog - Grab the source code off codeplex, and then debug it using the 'attach to process' trick and you'll quickly and easily find the issue.
There is a link in my blog post which Nick has posted above that gives you a lot of tutorials on how to attach to process and debug an umbraco site using VS.
The thing is, I've tried installing nForum on a blank 4.7 installation too, with the same result :( Both locally and on my Windows Server 2008 R2 x64 it bugs out.
I haven't had time to get and debug the source code yet, but I'm confused as to why this seems to be happening on all my nForum installations.
Update: I fixed it by uninstalling nForum, then removing any trace I could find of it in the config files and in the ExamineIndexes,I then removed all my members and membertype (oi humbug), installed nForum and manually created all my members again as Forum Users (having removed the other type).
It seems that nForum doesn't play along when there are other types than Forum Users, even if they won't be using the forum.
Hi Guys,
I'm also getting the same error. I installed nForum under my master templates. Everything working fine but when I clicked on Category link it come with error "object reference not set to an instance of an object".
Error details:
Object reference not set to an instance of an object. at nForum.usercontrols.nForum.ForumTopics.GetTopicsFromCategory() at nForum.usercontrols.nForum.ForumTopics.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive()
Please advise any help as I'm new to umbraco/nForums.
Thanks
Jazz
Please get the source and step through you'll find the answer in about 2 minutes, saves us spending 20mins to hours going backwards and forwards taking pot luck guesses.