This looks like a really useful package that will fit in great with our site unfortunately I'm having a problem. I've set everything up as per the instructions and the comment form displays fine on the pages. However no comments are being saved and the only message I'm getting is "Your comment could not be posted, we're very sorry for the inconvenience.
I'm running Umbraco 4.0.3 on Windows Server 2003, ASP.Net 2.0, SQL Server 2008.
As I say the only message I get is the one above. Sorry I can't give any more details.
Aha! It looks like it is an issue with the email address. If I enter "webmaster@gwsr,com" the comment is saved fine but if I use my own address which is a ".co.uk" one I get the error.
Please forgive my ignorance but this is my first time working with someone else's source for an add on. I've downloaded the source for uComment and the patch you referenced. I've replaced the Base.cs file in the project (I couldn't find BlogLibrary.cs which is in the patch in the project).
When I try and build the project I get the following two errors:
The type or namespace name 'Spam' does not exist in the namespace 'Umlaut.Umb.Blog' (are you missing an assembly reference?) C:\Users\Steve\Documents\Visual Studio 2008\Projects\UComment\UComment\Library\Base.cs 15 23 UComment The type or namespace name 'Interfaces' does not exist in the namespace 'Umlaut.Umb.Blog' (are you missing an assembly reference?) C:\Users\Steve\Documents\Visual Studio 2008\Projects\UComment\UComment\Library\Base.cs 17 23 UComment
The patch I've uploaded is for the blog4umbraco package. This is where I noticed the bug first and so I submited a patch for it. So you can't simply replace the source file if you're using UComment. I should have mentioned that.
But it's very easy to replace the regex in UComment as well.
Just search in the Base.cs for:
privatestaticbool isValidEmail(string email) { Regex r = new Regex(@"^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$");
Has this been updated in the UComment package at all, as I don't think many users would want to download the source to make this change to get a new compilied DLL.
you're right, the two cs files are part of the Blog dll. You need visual studio to exchange the files and rebuild the hole thing after that. If you don't have visual studio or if you're not familiar with it you can download the fixed dll I've uploaded. You can find the link in this thread.
I want to mention that the patch is only for the blog package (and also the fixed dll), not for the UComment package.
Many thanks for this. I've downloaded and updated the DLL and recycled the Application Pool and the comments seem to be working great - which is fantastic - so this is hugely appreciated.
I've noticed one error appearing inside of Umbraco's admin however. When I click on the 'comments' tab in the admin to view comments that have been made I get the following:
Could not load control '/usercontrols/Blog4Umbraco/CommentModeration.ascx'. Error message: System.Web.HttpParseException: The base class includes the field 'UpdatePanel1', but its type (System.Web.UI.UpdatePanel) is not compatible with the type of control (System.Web.UI.UpdatePanel). --->
Mike's problem with the UpdatePanel error is almost certainly because the project (Timsn's update at least) is build with vs2008 and .net 3.5, but Mike's server is using .net 2.0 and ajax 1.0 instead.
Assuming Mike can install .net 3.5 on his server and update the web.config file accordingly the error should go away.
But if he's on a shared host that doesn't have .net35... what are the options? Can a dll or two be put in the /bin folder as could be done when ajax 1.0 wasn't installed on the server?
Ouch! You're right Douglas. I build it with VS2008 and .NET 3.5. That didn't come to my mind...
That's the reason why I can't reproduce it, my server is running with 3.5. To solve the problem temporary for Mike, I can try to rebuild it with .net 2.0
The project itself actually is a .NET 2.0 project. But there is a reference to the System.Web.Extensions.dll which is required for the use of the UpdatePanel. So the UpdatePanel ist only avaiable in .NET 3.5. But maybe your idea to put this dll into the bin folder could to the job.
Hi I'm having the same problem but in Blog4Umbraco_2.0.24.zip package (umb v4.0.3).
I am actually running asp.net 3.5 but I think the problem has something to do with the environment the replacement dll has been recompiled. The original dll works if I revert to it (but obviously loosing the patch that Timsn's made) so that isn't much good.
Douglas's post made me look in web.config and I found this:
Comments not saving
Hi,
This looks like a really useful package that will fit in great with our site unfortunately I'm having a problem. I've set everything up as per the instructions and the comment form displays fine on the pages. However no comments are being saved and the only message I'm getting is "Your comment could not be posted, we're very sorry for the inconvenience.
I'm running Umbraco 4.0.3 on Windows Server 2003, ASP.Net 2.0, SQL Server 2008.
As I say the only message I get is the one above. Sorry I can't give any more details.
Thanks,
Steve
Hi Steve,
Could you check your db if the Comment table has been created ?
If not you can find the create statement here http://ucomment.codeplex.com/SourceControl/changeset/view/36931#585948
Hi Tim,
Yes I can confirm the database table is there. I did trying dropping it and recreating from your SQL but I'm still getting the same message.
Steve
Can you check your /config/restExtensions.config file to see if it has the Ucomment stuff in there
I have the following in the file:
<ext assembly="/bin/UComment" type="UComment.Library.Base" alias="UComment">
<permission method="CreateComment" returnXml="false" allowAll="true" />
<permission method="GetGravatarImage" returnXml="false" allowAll="true" />
</ext>
Thanks,
Steve
Tim,
I don't know if this will help at all but I've done a little more digging on the forum and there is a similar error reported in this thread - http://our.umbraco.org/forum/developers/extending-umbraco/6095-Blog4Umbraco-Gravatar-problem?p=0#comment22069
Steve
Steve,
Can you try a couple of test email addresses ?
Tim,
Aha! It looks like it is an issue with the email address. If I enter "webmaster@gwsr,com" the comment is saved fine but if I use my own address which is a ".co.uk" one I get the error.
Steve
Yes, the regex for the email address validation should really be updated (see the thread that Steve George linked to).
Hi, the regex I submitted in the patch should be able to validate addresses with numbers as well as ".co.uk" ones. Take a look and try it. :)
Yes, email regex in base.cs is the point. For me, I have a dot (.) in the name before (@) and a minus (-) after, both fails.
Unfortunately this problem affects some more Umbraco areas. At the moment I found:
:-(
Immo
Tim,
Please forgive my ignorance but this is my first time working with someone else's source for an add on. I've downloaded the source for uComment and the patch you referenced. I've replaced the Base.cs file in the project (I couldn't find BlogLibrary.cs which is in the patch in the project).
When I try and build the project I get the following two errors:
The type or namespace name 'Spam' does not exist in the namespace 'Umlaut.Umb.Blog' (are you missing an assembly reference?) C:\Users\Steve\Documents\Visual Studio 2008\Projects\UComment\UComment\Library\Base.cs 15 23 UComment
The type or namespace name 'Interfaces' does not exist in the namespace 'Umlaut.Umb.Blog' (are you missing an assembly reference?) C:\Users\Steve\Documents\Visual Studio 2008\Projects\UComment\UComment\Library\Base.cs 17 23 UComment
Apologies for so many questions.
Steve
The patch I've uploaded is for the blog4umbraco package. This is where I noticed the bug first and so I submited a patch for it. So you can't simply replace the source file if you're using UComment. I should have mentioned that.
But it's very easy to replace the regex in UComment as well.
Just search in the Base.cs for:
and replace it with this:
my change to the BlogLibrary.cs is not relevant for the email validation. This was a change I made for better gravatar support.
I see that the ToLower() call isn't necessary here.
So you can simplify it to this:
both of them should work :)
Tim,
Thanks for your help and patience! It's working now.
Steve
Has this been updated in the UComment package at all, as I don't think many users would want to download the source to make this change to get a new compilied DLL.
Warren :)
Will try to get this updated tomorrow.
Thanks Tim, that would be ACE :)
Can anyone tell me the process for updating the base.cs and BlogLibrary.cs in Timsn patch (which I've downloaded)?
I assume that base.cs and BlogLibrary.cs are part of the compiled Umlaut.Umb.Blog.dll
What's the best way of updating this?
Thanks.
Hi Mike,
you're right, the two cs files are part of the Blog dll. You need visual studio to exchange the files and rebuild the hole thing after that. If you don't have visual studio or if you're not familiar with it you can download the fixed dll I've uploaded. You can find the link in this thread.
I want to mention that the patch is only for the blog package (and also the fixed dll), not for the UComment package.
Hi Tim,
Many thanks for this. I've downloaded and updated the DLL and recycled the Application Pool and the comments seem to be working great - which is fantastic - so this is hugely appreciated.
I've noticed one error appearing inside of Umbraco's admin however. When I click on the 'comments' tab in the admin to view comments that have been made I get the following:
Could not load control '/usercontrols/Blog4Umbraco/CommentModeration.ascx'.
Error message: System.Web.HttpParseException: The base class includes the field 'UpdatePanel1', but its type (System.Web.UI.UpdatePanel) is not compatible with the type of control (System.Web.UI.UpdatePanel). --->
Any ideas?
Many thanks,
Mike
I should say I'm using Blog4Umbraco 2.0.24 on Umbraco 4.0.3.
Hmm, I have no idea what that causes. I'll try to reproduce that in some way.
Mike's problem with the UpdatePanel error is almost certainly because the project (Timsn's update at least) is build with vs2008 and .net 3.5, but Mike's server is using .net 2.0 and ajax 1.0 instead.
Assuming Mike can install .net 3.5 on his server and update the web.config file accordingly the error should go away.
But if he's on a shared host that doesn't have .net35... what are the options? Can a dll or two be put in the /bin folder as could be done when ajax 1.0 wasn't installed on the server?
Open to all ideas and suggestions.
cheers,
doug.
Ouch! You're right Douglas. I build it with VS2008 and .NET 3.5. That didn't come to my mind...
That's the reason why I can't reproduce it, my server is running with 3.5. To solve the problem temporary for Mike, I can try to rebuild it with .net 2.0
The project itself actually is a .NET 2.0 project. But there is a reference to the System.Web.Extensions.dll which is required for the use of the UpdatePanel. So the UpdatePanel ist only avaiable in .NET 3.5. But maybe your idea to put this dll into the bin folder could to the job.
Hi I'm having the same problem but in Blog4Umbraco_2.0.24.zip package (umb v4.0.3).
I am actually running asp.net 3.5 but I think the problem has something to do with the environment the replacement dll has been recompiled. The original dll works if I revert to it (but obviously loosing the patch that Timsn's made) so that isn't much good.
Douglas's post made me look in web.config and I found this:
<compilation defaultLanguage="c#" debug="false" batch="false">
<assemblies>
<!-- ASPNETAJAX -->
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
Does this mean anything to anyone? Can anyone help further?
Sorry if I'm coming over all grumpy b#llcks, just seems like a big run around the houses to get .co.uk email addresses working in the comments :(
Thanks as ever,
Barney
aha, do you have the correct web.config? you need the .net 3.5 specific one.
.net 3.5 has the ajax toolkit built in
hth
jay
That done the trick!
Many thanks Jay.
sweet. got there eventually :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.