Copied to clipboard

Flag this post as spam?

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


  • Tim Finucane 34 posts 60 karma points
    Nov 02, 2010 @ 19:12
    Tim Finucane
    0

    Comments will not save

    I am having trouble getting the comments to save. They always say "Your comment could not be posted, we're very sorry for the inconvenience".

    I used the developer tools in IE to trace the javascript code and I found the following error: "Extension not found or permission denied". This occurs in the following block of code on the blog post page, specifically in the if(data == 0){ part. The error seems to be on the data object. Anyone have any ideas what might be wrong?

        jQuery(document).ready(function(){
             
             
              jQuery("#commentform #email").blur(function(){
                    var email = jQuery("#commentform #email").val();
                                   
                    if(email != ""){
                        var url = "/base/Blog4Umbraco/GetGravatarImage/" + email + "/80.aspx";
                        jQuery.get(url, function(data){
                            if(data != ""){
                                 jQuery("#gravatar").css( "background-image","url(" + data + ")" ).show();
                            }else{
                                jQuery("#gravatar").hide();
                            }
                        });
                    }
              });
               
              jQuery("form").validate({
                  submitHandler: function(form) {
                    jQuery("#commentform").hide();
                    jQuery("#commentLoading").show();
                    jQuery("#commentform #submit").attr("enabled", false);
                   
                    var url = "/base/Blog4Umbraco/CreateComment/2738.aspx";
                   
                    jQuery.post(url, { author: jQuery("#commentform #author").val(), email: jQuery("#commentform #email").val(), url: jQuery("#commentform #url").val(), comment: jQuery("#commentform #comment").val() },
                       function(data){
                      
                       jQuery("#commentLoading").hide();
                       jQuery("#commentPosted").show().removeClass("error");
                      
                        if(data == 0){
                              jQuery("#commentPosted").addClass("error").html(" Your comment could not be posted, we're very sorry for the inconvenience ");
                              jQuery("#commentform").show();
                              jQuery("#commentform #submit").attr("enabled", true);
                        }
                       
                       });
                }
                });
        });
  • Tim Finucane 34 posts 60 karma points
    Nov 04, 2010 @ 20:04
    Tim Finucane
    0

    Ok, so based on the error I'm seeing I found the following other forum post: http://our.umbraco.org/forum/developers/api-questions/2813-Extension-not-found-or-permission-denied-Error

    The code above does indeed have a URL with /base in it: /base/Blog4Umbraco/CreateComment/2773.aspx

    However, I did not see /base in the reserved paths list of the web.config.

    Anyone have any ideas? I really need to solve this problem.

    Thanks,

    Tim

  • Tim Finucane 34 posts 60 karma points
    Nov 04, 2010 @ 20:12
    Tim Finucane
    0

    Also, I found this post on the forum: http://our.umbraco.org/projects/ucomment/using-ucomment/6456-Comments-not-saving

    Unfortunately it throws the following error when I try to go to it:

    An Error Has Occured
    An unexpected error occurred on our website.

    What gives?

  • Tim Finucane 34 posts 60 karma points
    Nov 05, 2010 @ 15:29
    Tim Finucane
    0

    I have found another post with the same issue here: http://our.umbraco.org/projects/collaboration/blog-4-umbraco/using-blog-4-umbraco/9479-Blog-comments-not-saving

    Unfortunately, the solution given there does not work on my site.

    According to the other post the problem seems to revolve around the blog root being in the default root or being down further in the tree. It is when it is down further in the tree that the issue occurs.

    I am desperate for a solution to this problem as I have a live site that the Blog4Umbraco package has been added to and the blog author would really like people to be able to comment.

    Thanks,

    Tim

  • Tim Finucane 34 posts 60 karma points
    Nov 05, 2010 @ 16:20
    Tim Finucane
    0

    Problem solved. My original Blog4Umbraco install did not go smoothly. I was missing the following lines in the restExtensions.config file:

    <ext assembly="Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.Library.Base" alias="Blog4Umbraco">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
    </ext>
  • Jeff Grine 149 posts 189 karma points
    Nov 05, 2010 @ 16:26
    Jeff Grine
    0

    What does restExtensions.config look like? Should be

      <ext assembly="Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.Library.Base" alias="Blog4Umbraco">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
      </ext>
    
  • 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.

Please Sign in or register to post replies