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:
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
Error on submitting uBlogsy comment
I'm getting the following errors when submitting a post comment:
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:
Just a stab in the dark.... try these settings:
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="c:\_maildrop\"/>
</smtp>
ensure the folder exists
No same result.
What version of umbraco and ublogsy?
sorry, should have said Umbraco 4.11.5 & uBlogsy 2.1.1.2
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?
This is the complete stack trace in the Umbraco log
The comment is getting created, but is unpublished and non of the fields are populated.
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.
App_code is evil!
I stay far away from it.
Good that you figured it out... i had no idea why that was happenning.
is working on a reply...