When i log in as one user and click on the name at the top of the page i get a "Object reference not set to an instance of an object" error. It only happens with one user, and i can view that page just fine when i am not logged in, or logged in as someone else.
The error occurs in the following line of code
<%#CommunityServer.Discussions.Components.ForumFormatter.FormatPrivateMessageRecipients((CommunityServer.Discussions.Components.PrivateMessage)Container.DataItem)%>
In case it helps, here's the stack trace
[NullReferenceException: Object reference not set to an instance of an object.] CommunityServer.Discussions.Components.PrivateMessages.GetOriginalRecipient(ForumPost message) +341 CommunityServer.Discussions.Components.ForumFormatter.FormatPrivateMessageRecipients(PrivateMessage message) +25 ASP.themes_leanandgreen_user_userprofile_aspx.__DataBind__control235(Object sender, EventArgs e) in d:\Program Files\Telligent\Community Server 2007\Web\Themes\leanandgreen\User\userprofile.aspx:501 System.Web.UI.Control.OnDataBinding(EventArgs e) +99 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206 System.Web.UI.Control.DataBind() +12 System.Web.UI.Control.DataBindChildren() +204 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216 System.Web.UI.Control.DataBind() +12 System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +130 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +454 CommunityServer.Controls.WrappedRepeater.CreateControlHierarchy(Boolean useDataSource) +142 CommunityServer.Controls.PreTemplatedWrappedRepeaterBase.CreateControlHierarchy(Boolean useDataSource) +369 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53 CommunityServer.Controls.WrappedRepeater.OnDataBinding(EventArgs e) +11 System.Web.UI.WebControls.Repeater.DataBind() +72 CommunityServer.Controls.WrappedRepeater.DataBind() +101 CommunityServer.Controls.PreTemplatedWrappedRepeaterBase.DataBind() +12 CommunityServer.Controls.PreTemplatedWrappedRepeaterBase.OnLoad(EventArgs e) +28 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.AddedControl(Control control, Int32 index) +318 System.Web.UI.ControlCollection.Add(Control child) +146 CommunityServer.Controls.WrappedContentBase.AddContentControls() +117 CommunityServer.Controls.WrappedContentBase.CreateControlHierarchy() +104 CommunityServer.Controls.WrappedContentBase.CreateChildControls() +29 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
More than likely, you site is running a release before CS 2007.1 and you sent a PM to or got a PM from a user that was renamed or deleted. This was a bug that was fixed in CS 2007.1, so I would recommend upgrading to the latest version.
The original issue and the code fix was posted here: http://communityserver.org/forums/p/490548/594212.aspx#594212
I just checked, we are running 2007, Service Pack 1.
But i recently did purge a lot of users from the system, so that would make sence.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com