Copied to clipboard

Flag this post as spam?

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


  • ianhoughton 281 posts 605 karma points c-trib
    Apr 05, 2013 @ 14:02
    ianhoughton
    0

    Error on submitting uBlogsy comment

    I'm getting the following errors when submitting a post comment:

    Object reference not set to an instance of an object. at uBlogsy.BusinessLogic.EmailService.SendAdminNotificationEmail(String postUrl, Int32 pageId, CommentInfo commentInfo, Int32 commentId) at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe)
    Object reference not set to an instance of an object. at uBlogsy.BusinessLogic.EmailService.SendNotificationEmails(String postUrl, Int32 pageId, Int32 commentId) at uBlogsy.BusinessLogic.EventHandlers.UmbracoExtensions.Document_AfterPublish(Document sender, PublishEventArgs e)

    The comment gets successfully saved under the post with all the relevant fields filled in. No members are getting created in the members section.

    I have the member type setup, the only change I have made is to populate the name and email fields on the contact form from the currently logged in member. You can only access the blog when logged in. The email templates and container have been created, and my smtp settings are:

    <smtp deliveryMethod="SpecifiedPickupDirectory" from="[email protected]">
            <network host="localhost" />
            <specifiedPickupDirectory pickupDirectoryLocation="D:\Documents\Visual Studio 2010\Projects - Development\domain\TestEmails" />
          </smtp>
  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 05, 2013 @ 14:19
    Anthony Dang
    0

    Just a stab in the dark.... try these settings:

    <smtp deliveryMethod="SpecifiedPickupDirectory">

                <specifiedPickupDirectory pickupDirectoryLocation="c:\_maildrop\"/>

     </smtp>

    ensure the folder exists

  • ianhoughton 281 posts 605 karma points c-trib
    Apr 05, 2013 @ 14:32
    ianhoughton
    0

    No same result.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 05, 2013 @ 18:35
    Anthony Dang
    0

    What version of umbraco and ublogsy?

     

  • ianhoughton 281 posts 605 karma points c-trib
    Apr 05, 2013 @ 19:53
    ianhoughton
    0

    sorry, should have said Umbraco 4.11.5 & uBlogsy 2.1.1.2

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 06, 2013 @ 16:36
    Anthony Dang
    0

    Well a null exception error means that somethign was null. Have you deleted or renamed any doctype properties?

    Have you deleted the content of any of the default properties?

    Also, the errors dont have any line numbers....do you have a bigger stacktrace with line nubmers for the errors?

  • ianhoughton 281 posts 605 karma points c-trib
    Apr 21, 2013 @ 12:41
    ianhoughton
    0

    This is the complete stack trace in the Umbraco log

    Object reference not set to an instance of an object. at UmbracoEvents.Document_New(Document sender, NewEventArgs e) at umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) at uHelpsy.Core.UmbracoAPIHelper.CreateContentNode(String nodeName, String nodeTypeAlias, Dictionary`2 properties, Int32 parentId, Boolean publish) at

    uBlogsy.BusinessLogic.CommentService.CreateComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 171 at


    uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 109

    The comment is getting created, but is unpublished and non of the fields are populated.

  • ianhoughton 281 posts 605 karma points c-trib
    Apr 21, 2013 @ 23:07
    ianhoughton
    0

    Eventually tracked it down to a custom event in the App_Code folder that was trying to update a field that didn't exist on a comment document type.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 22, 2013 @ 02:10
    Anthony Dang
    0

    App_code is evil!

    I stay far away from it.

    Good that you figured it out... i had no idea why that was happenning.

     

Please Sign in or register to post replies

Write your reply to:

Draft