When a comment is submitted an error message is being displayed but the comment is displaying as intended in the "Comments to Approve" section. The bigger issue is that the e-mail notification on comment submittal is not being sent. I am using version 4.7.1.1.
Thank you to everyone who keeps the forum active it has been tremendously helpful on many occasions.
I have the same error! I'm using Umbraco v 4.7.2 (Assembly version: 1.0.4500.21031) and uBlogsy 2.1.0.0.
In the umbracoLog table is only the entrie: Failure sending mail.
If I write a comment, then the comment is shown in the dashboard, but the e-mail notification is not being sent!
The smtp settings in web-config are right, because a lot of other umbraco-website on the same server has the same settings and mails are being sent. But this is my first website with uBlogsy...
So I have updated my web config file to include the appropriate smtp settings for Gmail. Under the uBlogsy "Contact Info" tab I have added a valid "Contact Email" and checked the "Comment Notification" checkbox. Despite this, I have not yet been able to receive e-mails when a user submits a comment. As far as error reporting goes, when the comment is submitted, the query string callback parameter indicates that there was an error but checking the error log does not reveal anything related to a failure sending the email. If anyone has any ideas on how to fix this they would be greatly appreciated.
When a comment is submitted an error message is being displayed
Error : An error has occurred. Please try again later.
in umbracolog table i found error
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) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 72 at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 119
I am having the same problem on one of my sites, using ublogsy 2.1.0.0 on umbraco 4.7.2. i have set up my site to use the gmail account as mentioned above but am still getting the error. In the umbraco log table i have the error bellow;
Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at uBlogsy.BusinessLogic.EmailService.GetEmailTemplateNode(Int32 pageId, String templateName) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 241 at uBlogsy.BusinessLogic.EmailService.GetEmailProperties(Int32 pageId, String emailTemplateName, String& emailBody, String& subject, String& replyToAddress, String& adminContactEmail) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 131 at uBlogsy.BusinessLogic.EmailService.SendAdminNotificationEmail(String postUrl, Int32 pageId, CommentInfo commentInfo, Int32 commentId) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 172 at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 128
u did mention creating a ubogsy member type, i have a uBlogsy Subscriber type created do i need another and what settings do i need for the type if i do and dont know if i am right but take it the subscribe option creates these users (am actually intending to disable the subscrbie option but dnt know how either) any suggestions.
I am recieving the following error when i post a comment:
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) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 72 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 119
After reading the rest of this post i noticed i was missig the uBlogsy member type or any thing related to membership. Can you please guide me to what i would need to add to fix this error.
Ok, so i created a new Umbraco site with not content nodes, etc and installed and now no SQL error, thanks for the advice, not the task of moving my data over :(
So tried to post a comments and now recieve this: String was not recognized as a valid DateTime. at System.DateTime.Parse(String s) at uBlogsy.BusinessLogic.Models.SubscriptionMetaData..ctor(String subscriptionMetaDataString) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\Models\SubscriptionMetaData.cs:line 23 at uBlogsy.BusinessLogic.SubscriptionService.<GetSubscriptionMetaData>b__6(String x) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 147 at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at uBlogsy.BusinessLogic.SubscriptionService.MetaDataContains(Int32 pageId, String email) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 164 at uBlogsy.BusinessLogic.SubscriptionService.SubscribeToPost(Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 64 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 119
Also a side note, i see that there is suppose to be an XML file for the Email templates but i cannot find it anywhere ... where should it be and what should the name be, i would like to set up the emails
Clear out any existing members and subscription meta data in comment containers. Also what are your computer's regional settings? both the computer you're using and the one that umbraco is running on (if different).
Email tempaltes are not in content nodes for easier editing.
Sorry that should have said "Email tempaltes are NOW in content nodes for easier editing."
Templates are under the Email templates container node. It's all wired up and should just work. Modify the html in the RTE if you need to change the tempalte.
i have the three templates there but in the field "Email TEmplate NAme" there is nothing. and now i am getting the following errors. I have tried added the email template names manual in the DB but it doesnt do anything. the comments are there but members dont get created and no emails sent. using gmail smtp settings.
Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at uBlogsy.BusinessLogic.EmailService.GetEmailTemplateNode(Int32 pageId, String templateName) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 258 at uBlogsy.BusinessLogic.EmailService.GetEmailProperties(Int32 pageId, String emailTemplateName, String& emailBody, String& subject, String& replyToAddress, String& adminContactEmail) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 141 at uBlogsy.BusinessLogic.EmailService.SendAdminNotificationEmail(String postUrl, Int32 pageId, CommentInfo commentInfo, Int32 commentId) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 184 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 128
[UmbracoExamine] (InternalMemberIndexer)Field "InternalMemberIndexSet" is listed multiple times in the index set "email". Please ensure all names are unique
Unfortunately the Umbraco package installer has been a bit tempermental lately.
I would try to completely uninstall the comment package, also delete the member type and any members. Then try a re-install.
Also, you did not have to edit the db directly. You could have also changed the label type to a textbox, done your change, then changed it back to a label.
Ok, so after i switched it to a text field and updated the comments work Great! Now if it will just create the members ill be happy but that isnt a deal breaker
uBlogsy comment submit error
When a comment is submitted an error message is being displayed but the comment is displaying as intended in the "Comments to Approve" section. The bigger issue is that the e-mail notification on comment submittal is not being sent. I am using version 4.7.1.1.
Thank you to everyone who keeps the forum active it has been tremendously helpful on many occasions.
Which version of ublogsy are you using?
What do your smtp settings look like in your web.config?
I am using uBlogsy v2.0.0.1. Here are my smtp settings from web.config:
<smtp>
<network host="127.0.0.1" userName="username" password="password" />
</smtp>
I have a feeling a few things are missing. Thanks for the quick response and uBlogsy, it is a great package.
Do you have an smtp server on that machine?
If not, you can always use gmails :)
<smtp from="[email protected]">
<network host="smtp.gmail.com" password="xxxxxxxxxx" userName="gmailname"/>
</smtp>
Hi Anthony:I have this issue as well...I have configured the smtp settings as discribed here.
I'm using Umbraco v 4.7.2 (Assembly version: 1.0.4500.21031) and uBlogsy v 2.0.0.0
Are there any erros in the umbracoLog table?
I have the same error! I'm using Umbraco v 4.7.2 (Assembly version: 1.0.4500.21031) and uBlogsy 2.1.0.0.
In the umbracoLog table is only the entrie: Failure sending mail.
If I write a comment, then the comment is shown in the dashboard, but the e-mail notification is not being sent!
The smtp settings in web-config are right, because a lot of other umbraco-website on the same server has the same settings and mails are being sent. But this is my first website with uBlogsy...
Can anyone help?
I have found a error in the web.config. The smtp-settings has one wrong char... Now, it work's :-)
Thanks for suggesting Umbraco Logs. I missed to set "Required SSL" in settings. Thanks again.
Don'e you just love config errors :)
So I have updated my web config file to include the appropriate smtp settings for Gmail. Under the uBlogsy "Contact Info" tab I have added a valid "Contact Email" and checked the "Comment Notification" checkbox. Despite this, I have not yet been able to receive e-mails when a user submits a comment. As far as error reporting goes, when the comment is submitted, the query string callback parameter indicates that there was an error but checking the error log does not reveal anything related to a failure sending the email. If anyone has any ideas on how to fix this they would be greatly appreciated.
Thanks again Anthony for the previous feedback.
What does your smtp settings look like?
Have you tried it with the gmail settings in my reply above?
I used the settings you mentioned earlier:
<smtp from="[email protected]">
<network host="smtp.gmail.com" password="gmailPassword" userName="gmailName"/>
</smtp>
with my password and username in place of the temporary placeholders.
Hello Dom
Try this..
<smtp from="[email protected]">
<network host="smtp.gmail.com" userName="username" password="password" enableSsl="true" />
</smtp>
-Vikram
Hi,
When a comment is submitted an error message is being displayed
Error : An error has occurred. Please try again later.
in umbracolog table i found error
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) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 72 at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 119
Please any one help for me..
Does the ublogsy member type exist?
Hi anthony,
I am having the same problem on one of my sites, using ublogsy 2.1.0.0 on umbraco 4.7.2. i have set up my site to use the gmail account as mentioned above but am still getting the error. In the umbraco log table i have the error bellow;
Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at uBlogsy.BusinessLogic.EmailService.GetEmailTemplateNode(Int32 pageId, String templateName) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 241 at uBlogsy.BusinessLogic.EmailService.GetEmailProperties(Int32 pageId, String emailTemplateName, String& emailBody, String& subject, String& replyToAddress, String& adminContactEmail) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 131 at uBlogsy.BusinessLogic.EmailService.SendAdminNotificationEmail(String postUrl, Int32 pageId, CommentInfo commentInfo, Int32 commentId) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 172 at uBlogsy.BusinessLogic.CommentService.SubmitComment(HttpRequest request, Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\CommentService.cs:line 128
u did mention creating a ubogsy member type, i have a uBlogsy Subscriber type created do i need another and what settings do i need for the type if i do and dont know if i am right but take it the subscribe option creates these users (am actually intending to disable the subscrbie option but dnt know how either) any suggestions.
thanks in advance
Denford
GetEmailTemplateNode is failing. Probably because the node is not published. Re-publish the email templates.
If that doest work, can you paste a screen grab of your content tree.
I am recieving the following error when i post a comment:
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) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 72 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 119
After reading the rest of this post i noticed i was missig the uBlogsy member type or any thing related to membership. Can you please guide me to what i would need to add to fix this error.
Thanks, Jon
Try reinstalling the package.
I have tried to reinstall numerous times. But even on the first install and re-installs i get this:
Error updating item: umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery ---> System.Data.SqlClient.SqlException: String or binary data would be truncated. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at umbraco.DataLayer.SqlHelper`1.ExecuteNonQuery(String commandText, IParameter[] parameters) --- End of inner exception stack trace --- at umbraco.DataLayer.SqlHelper`1.ExecuteNonQuery(String commandText, IParameter[] parameters) at umbraco.cms.businesslogic.datatype.DefaultData.set_Value(Object value)
Random umbraco db errors ... eek!
Try a fresh install of Umbraco?
just replaced all umbraco file dll, etc
Ok, so i created a new Umbraco site with not content nodes, etc and installed and now no SQL error, thanks for the advice, not the task of moving my data over :(
So tried to post a comments and now recieve this: String was not recognized as a valid DateTime. at System.DateTime.Parse(String s) at uBlogsy.BusinessLogic.Models.SubscriptionMetaData..ctor(String subscriptionMetaDataString) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\Models\SubscriptionMetaData.cs:line 23 at uBlogsy.BusinessLogic.SubscriptionService.<GetSubscriptionMetaData>b__6(String x) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 147 at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at uBlogsy.BusinessLogic.SubscriptionService.MetaDataContains(Int32 pageId, String email) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 164 at uBlogsy.BusinessLogic.SubscriptionService.SubscribeToPost(Int32 pageId, CommentInfo commentInfo, Boolean subscribe) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\SubscriptionService.cs:line 64 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 119
Which versions of umbraco and ublogsy?
Umbraco, 4.11.1 and uBlosy 2.1.1.2
Also a side note, i see that there is suppose to be an XML file for the Email templates but i cannot find it anywhere ... where should it be and what should the name be, i would like to set up the emails
Clear out any existing members and subscription meta data in comment containers. Also what are your computer's regional settings? both the computer you're using and the one that umbraco is running on (if different).
Email tempaltes are not in content nodes for easier editing.
but i can creat Email content nodes. Where do i find those email templates and how to i create a new email node and select that template
Sorry that should have said "Email tempaltes are NOW in content nodes for easier editing."
Templates are under the Email templates container node. It's all wired up and should just work. Modify the html in the RTE if you need to change the tempalte.
i have the three templates there but in the field "Email TEmplate NAme" there is nothing. and now i am getting the following errors. I have tried added the email template names manual in the DB but it doesnt do anything. the comments are there but members dont get created and no emails sent. using gmail smtp settings.
Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at uBlogsy.BusinessLogic.EmailService.GetEmailTemplateNode(Int32 pageId, String templateName) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 258 at uBlogsy.BusinessLogic.EmailService.GetEmailProperties(Int32 pageId, String emailTemplateName, String& emailBody, String& subject, String& replyToAddress, String& adminContactEmail) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 141 at uBlogsy.BusinessLogic.EmailService.SendAdminNotificationEmail(String postUrl, Int32 pageId, CommentInfo commentInfo, Int32 commentId) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\EmailService.cs:line 184 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 128
[UmbracoExamine] (InternalMemberIndexer)Field "InternalMemberIndexSet" is listed multiple times in the index set "email". Please ensure all names are unique
Unfortunately the Umbraco package installer has been a bit tempermental lately.
I would try to completely uninstall the comment package, also delete the member type and any members. Then try a re-install.
Also, you did not have to edit the db directly. You could have also changed the label type to a textbox, done your change, then changed it back to a label.
It's not creating any member, was there suppose to be a members group also? what about web.config changes for membership?
Ok, so after i switched it to a text field and updated the comments work Great! Now if it will just create the members ill be happy but that isnt a deal breaker
Thanks for your quick responses
So i found the members are being all created with "uBlogsySafePrefix_"email. Is this correct?
Sorry for the late reply. I've been ultra busy.
Did you resolve this?
And yes the prefix is on purpose as to not conflict with other members types.
is working on a reply...