Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Heather 20 posts 41 karma points
    Jan 22, 2013 @ 15:32
    Heather
    0

    Bug when posting a comment

    Hello, I've just installed uBlogsy 2.1.1.1 onto my Umbraco 4.7.2 web site

    I've used this plugin countless times but I seem to be getting an error this time around.

    The blog works fine except for posting a comment. On submitting a comment, I get the following error.

    I can also not see the comment tab on the Content page in Umbraco.

    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.]
       uBlogsy.Web.usercontrols.uBlogsy.Contact.btnSubmit_Click(Object sender, EventArgs e) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy HG\uBlogsy\uBlogsy\usercontrols\uBlogsy\Contact.ascx.cs:182
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    
  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 22, 2013 @ 16:15
    Anthony Dang
    0

    This is the line in question:

    var res = CommentService.Instance.SubmitComment(Request, m_PageId, commentInfo, cbxSubscribe.Checked);
    
    Is the checkbox on the page?

  • Heather 20 posts 41 karma points
    Jan 22, 2013 @ 16:18
    Heather
    0

    Ahhh no it isn't, I removed it ...

    I added the code back and now go through to the error message "An error has occurred. Please try again later. "

  • Heather 20 posts 41 karma points
    Jan 22, 2013 @ 16:19
    Heather
    0

    The comment is appearing in Umbraco underneath the created blog post though

  • Rick 92 posts 278 karma points
    Jan 29, 2013 @ 21:14
    Rick
    0

    Hi,

    I too, am experiencing this exact error / behaviour.

    When a user submits a comment, an error displays on the page "An error has occurred. Please try again later". However, the comment appears as an un-published node underneath the blog post in Umbraco.

    The error in my umbracoLog table is:

    Object reference not set to an instance of an object.
      at umbraco.cms.businesslogic.Content.CreateContent(ContentType ct)
      at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String LoginName, String Email, MemberType mbt, User u)
      at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String Email, MemberType mbt, User u)
      at uBlogsy.BusinessLogic.SubscriptionService.SubscribeToPost(Int32 pageId, CommentInfo commentInfo, Boolean subscribe)
      at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe)

    I've read elsewhere that this is an error related to creating the member within Umbraco. However, I'm not sure how to rectify this or what the Member type alias should be (because none exist at the moment!) in Umbraco.

    Please can anyone help as I'm tearing my hair out with this one and I'm afraid to say that there is not much of it left!

    Many thanks in advance,

    Rick

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 30, 2013 @ 16:45
    Anthony Dang
    0

    Heather, what are your smtp settings?

    Rick, does the member type exist?

     

  • Rick 92 posts 278 karma points
    Jan 30, 2013 @ 16:56
    Rick
    0

    Hi Anthony,


    That's just it - it doesn't exist, but I don't know what Member Type Alias it should be so that I can re-create it!

    Thank you

  • Amir Khan 1282 posts 2739 karma points
    Feb 13, 2013 @ 17:18
    Amir Khan
    0

    I'm getting this same error, any update on this?

  • Heather 20 posts 41 karma points
    Feb 13, 2013 @ 17:32
    Heather
    0

    I uninstalled the package and installed again and it seems to have fixed the problem.

    I have a web site that has an awful lot of spam comments, so when clicking on the comment admin tab in Umbraco, nothing loads because there are too many and goes to a server error.

    Is there a quick way in the database to delete unpublished blog comments?

    Thanks!!

  • Amir Khan 1282 posts 2739 karma points
    Feb 13, 2013 @ 17:38
    Amir Khan
    0

    Hi Heather, it works for me as well after republishing. Does the comment succes page seem weird to you? It seemed like the failure page was designed differently...

    Regarding deleteing multiple comments, this may help: http://our.umbraco.org/projects/developer-tools/content-maintenance-dashboard-package

  • Heather 20 posts 41 karma points
    Feb 13, 2013 @ 17:50
    Heather
    0

    Not sure what you mean about comment success. It just hides the form and displays the comment success message in it's place.

    I'll have a look at that package. Was hoping there was a way of  doing it in the database though.

    Thanks for the help Amir!

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 13, 2013 @ 18:48
    Anthony Dang
    0

    Rick you will probably have to either create the membertypes manually, or uninstall then reinstall the package.

    If I were you I'd create a new test instance of umbraco and install it there so you can view the property names.

Please Sign in or register to post replies

Write your reply to:

Draft