hi all,
I'm getting an error message when posting blog comments. The comment is still posted, but the standard Oops message appears after hitting submit.
Error details are:
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.] CommunityServer.MailRoom.Components.WeblogEmails.WeblogFeedbackNotification(WeblogPost post, WeblogPost parent) +239 CommunityServer.Blogs.Components.WeblogEmailNotificationModule.csa_PostPostUpdate(IContent content, CSPostEventArgs e) +255 CommunityServer.Components.CSPostEventHandler.Invoke(IContent content, CSPostEventArgs e) +0 CommunityServer.Components.CSApplication.ExecutePostEvent(Object EventKey, IContent content, ObjectState state, ApplicationType appType, PostTarget target) +105 CommunityServer.Components.CSEvents.AfterPost(IContent content, ObjectState state, ApplicationType appType) +36 CommunityServer.Blogs.Components.WeblogPosts.Add(WeblogPost post, User user, Int32& postID) +154 CommunityServer.Blogs.Controls.WeblogPostCommentForm.Submit_Click(Object sender, EventArgs e) +1042 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Any ideas?
Daniel,
The error is occuring when sending out emails to subscribers of that blog when a new post is made to that blog.
Can you open up the cs_SectionSubscriptions table in your database, filter the results to show only those records where the SectionID is the same as the SectionID of the problamatic blog. Check that all the records appear valid - e.g. all contain an email address etc.
If you can't see any obvious problems, and are desperate to solve the problem, you could always delete all the records for that specific section and start the subscriber list from scratch, although that will mean you lose any subscribers to that blog.
CS Documentation - now available in downloadable PDF form
My CS Site
Does your blog have more than one owner? Does changing the owner to just your username fix the problem?
A ha,
I had something funny in as the owner of this blog. I had put in a name that was not actually a username.
Thanks Ken and Alex for this.
Did you recently rename or delete a user that was marked as an owner on the blog? It looks like there could be an issue there... it stores the old username, tries to get them, but fails to find the user.
No i don't think so Ken. I haven't specified an owner for any of my blogs as the field is marked as optional in the 'manage all blogs' part of the control panel.
Cheers for looking though... any other ideas?
Investigated this further - the error only occurs in one of my blogs, not all. The meesage is still posted or held for moderation even though there is an error.
Could I get some help with this please?
Error message:
Object reference not set to an instance of an object. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } 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.] CommunityServer.MailRoom.Components.WeblogEmails.WeblogFeedbackNotification(WeblogPost post, WeblogPost parent) +238 CommunityServer.Blogs.Components.WeblogEmailNotificationModule.csa_PostPostUpdate(IContent content, CSPostEventArgs e) +255 CommunityServer.Components.CSPostEventHandler.Invoke(IContent content, CSPostEventArgs e) +0 CommunityServer.Components.CSApplication.ExecutePostEvent(Object EventKey, IContent content, ObjectState state, ApplicationType appType, PostTarget target) +105 CommunityServer.Components.CSEvents.AfterPost(IContent content, ObjectState state, ApplicationType appType) +36 CommunityServer.Blogs.Components.WeblogPosts.Add(WeblogPost post, User user, Int32& postID) +154 CommunityServer.Blogs.Controls.WeblogPostCommentForm.Submit_Click(Object sender, EventArgs e) +1042 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
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.
[NullReferenceException: Object reference not set to an instance of an object.] CommunityServer.MailRoom.Components.WeblogEmails.WeblogFeedbackNotification(WeblogPost post, WeblogPost parent) +238 CommunityServer.Blogs.Components.WeblogEmailNotificationModule.csa_PostPostUpdate(IContent content, CSPostEventArgs e) +255 CommunityServer.Components.CSPostEventHandler.Invoke(IContent content, CSPostEventArgs e) +0 CommunityServer.Components.CSApplication.ExecutePostEvent(Object EventKey, IContent content, ObjectState state, ApplicationType appType, PostTarget target) +105 CommunityServer.Components.CSEvents.AfterPost(IContent content, ObjectState state, ApplicationType appType) +36 CommunityServer.Blogs.Components.WeblogPosts.Add(WeblogPost post, User user, Int32& postID) +154 CommunityServer.Blogs.Controls.WeblogPostCommentForm.Submit_Click(Object sender, EventArgs e) +1042 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Ok cheers.
the strange thing is, the cs_SectionSubscriptions table is empty. People don't tend to (or know how to) subscribe to blogs on my Community.
Any other ideas
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com