Error message when user posts a blog comment

rated by 0 users
Answered (Verified) This post has 3 verified answers | 7 Replies | 3 Followers

Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
By: Daniel Rae
Posted: Mon, Jun 16 2008 5:36 AM

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?

 
  • Post Points: 20 |

Answered (Verified) Verified Answers

afscrome
Top 10 Contributor
2,727 Posts
Points 40,160
TelligentSupportTeam
Answered (Verified) By: afscrome
Posted: Sun, Aug 3 2008 4:12 PM In reply to

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.

 
Answered (Verified)
  • Post Points: 20 |
afscrome
Top 10 Contributor
2,727 Posts
Points 40,160
TelligentSupportTeam
Answered (Verified) By: afscrome
Posted: Mon, Aug 4 2008 5:32 AM In reply to

Does your blog have more than one owner?  Does changing the owner to just your username fix the problem?

 
Answered (Verified)
  • Post Points: 20 |
Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
Answered (Verified) By: Daniel Rae
Posted: Mon, Aug 4 2008 5:51 AM In reply to

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.

 
Answered (Verified)
  • Post Points: 5 |

All Replies

Ken Robertson
Top 10 Contributor
5,180 Posts
Points 47,450
CS Developers
By: Ken Robertson
Posted: Mon, Jun 16 2008 11:57 AM In reply to

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.

 
  • Post Points: 20 |
Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
By: Daniel Rae
Posted: Tue, Jun 17 2008 3:48 AM In reply to

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?

 
  • Post Points: 5 |
Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
By: Daniel Rae
Posted: Tue, Jul 29 2008 7:15 AM In reply to

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

 
  • Post Points: 20 |
afscrome
Top 10 Contributor
2,727 Posts
Points 40,160
TelligentSupportTeam
Answered (Verified) By: afscrome
Posted: Sun, Aug 3 2008 4:12 PM In reply to

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.

 
Answered (Verified)
  • Post Points: 20 |
Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
By: Daniel Rae
Posted: Mon, Aug 4 2008 3:32 AM In reply to

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 Big Smile

 
  • Post Points: 20 |
afscrome
Top 10 Contributor
2,727 Posts
Points 40,160
TelligentSupportTeam
Answered (Verified) By: afscrome
Posted: Mon, Aug 4 2008 5:32 AM In reply to

Does your blog have more than one owner?  Does changing the owner to just your username fix the problem?

 
Answered (Verified)
  • Post Points: 20 |
Daniel Rae
Top 75 Contributor
287 Posts
Points 3,975
Answered (Verified) By: Daniel Rae
Posted: Mon, Aug 4 2008 5:51 AM In reply to

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.

 
Answered (Verified)
  • Post Points: 5 |
Page 1 of 1 (8 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com