Copied to clipboard

Flag this post as spam?

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


  • Richard 146 posts 168 karma points
    May 28, 2010 @ 10:22
    Richard
    1

    Blog comments not saving

    I have a site with this Blog package. When a comment is posted I get the Javascript message "Your comment has been posted, thank you very much", but the comment does not appear to be saved. If I enter the URL (/base/Blog4Umbraco/CreateComment/<nodeID>.aspx) I get the message "Extension not found or permission denied". Should the /Base package have been installed and if so what shoud the configuration file look like?

    Thanks

    Richard

    Umbraco 4.0.3

    Windows 2003/IIS6

  • Lee 1123 posts 3059 karma points
    May 28, 2010 @ 10:43
    Lee
    0

    I had this problem on a site I was building, it "seemed" to happen when the blog wasn't the default opening site/node.  As in I already had a site, and installed the blog afterwards and moved it under the home node.

    I didn't look any further into it as the client decided they didn't want comments on the blog, so I just removed them - But I'd love to know what the problem was, I always said I try to replicate locally when I finished as it was bugging me (But never did)

  • Bert 128 posts 251 karma points
    May 28, 2010 @ 11:56
    Bert
    0

    Which database are you using?

  • Richard 146 posts 168 karma points
    May 28, 2010 @ 12:17
    Richard
    0

    Database is SQL server 2005.

  • Richard 146 posts 168 karma points
    May 28, 2010 @ 16:17
    Richard
    0

    Lee, what do you mean by "blog wasn't the default opening site/node". How is the blog made the default?

  • Lee 1123 posts 3059 karma points
    May 31, 2010 @ 17:00
    Lee
    0

    Just tried this again, and again the comments are now not saving, I already have a site running in Umbraco - Say for arguments sake I have installed runway or CWS.  Now if I install blog4umbraco I get in my initial tree

    - Home (My current site)
    - Blog (Blog4umbraco)
    - Recycle Bin

    Now I don't want it like this, I want it under the home node and to inherit the styles from my site so move the blog and remove the stylesheet macro and replace it with my own one

    - Home
    ---- Text Page
    ---- Blog
    ---- You get the idea
    - Recyle Bin

    Once the blog has moved, the comments do not work and you get a message in the create blog dashboard usercontrol saying

    To activate the blog post creator, you need to have access to at least one blog

    But if I DIDN'T have a pre-built site, say a blank install or didn't install runway or CWS first - and it was just the blog as the default opening site/node everything seems to work fine.. Comments etc...

    I'm going to try and debug everything tomorrow when I have more time and the kids are not constantly hassling me ;) ... lol

  • Lee 1123 posts 3059 karma points
    May 31, 2010 @ 17:00
    Lee
    0

    @ Bert - SQL Server Express

  • Lee 1123 posts 3059 karma points
    May 31, 2010 @ 17:03
  • Lee 1123 posts 3059 karma points
    Jun 08, 2010 @ 08:58
    Lee
    0

    Well still Mystified by this?  I just cannot get the comments to save?  Anyone else manage to look into this?

  • Lee 1123 posts 3059 karma points
    Jun 11, 2010 @ 09:37
    Lee
    1

    Ok I have figured this out, don't ask me why but... I moved the blog JS references to be the last references in my <head> tag (Right at the bottom)

      <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"></script> 
      <script type="text/javascript" src="/Scripts/Blog4Umbraco/blog4umbraco.js"></script> 

    And the AJAX form works fine now :S

     

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

    Lee,

    I am running into this exact same problem; however, moving the blog JS reference to the end of my head tag does not do the trick. I know your last post here was 5 months ago, but has anything new come up with this?

    I should not that I am using Umbraco 4.5.2 and Blog4Umbraco 2.0.26 for 4.5.

  • Tim Finucane 34 posts 60 karma points
    Nov 05, 2010 @ 16:19
    Tim Finucane
    3

    Lee,

    I found my problem. My original Blog4Umbraco install did not go as smooth as possible. I was missing the following lines in the restExtensions.config:

    <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>
  • Dan 1250 posts 3747 karma points admin c-trib
    Nov 11, 2010 @ 11:30
    Dan
    0

    I'd like to add here that the assembly reference in the restExtensions.config file should be exactly as per Tim's previous post.  In my installation it had the reference there but the path to the assembly started '/bin/' - in 4.5 there's no need to include the reference to the bin folder as it's assumed that all assemblies are there in the core.  Hope this helps somebody at some point.

  • Martin 48 posts 69 karma points
    Dec 23, 2010 @ 23:40
    Martin
    0

    Dan - 6 weeks later and indeed it has. Thanks!

    Martin

  • bob baty-barr 1180 posts 1294 karma points MVP
    Mar 06, 2011 @ 21:25
    bob baty-barr
    0

    @Tim... thank you so much for your post -- it is exactly what i needed!

     

  • Viral Shah 32 posts 61 karma points
    Nov 12, 2011 @ 07:32
    Viral Shah
    0

    @Tim and @Dan -

    Many thanks for this - This was exact same issue in 4.7 as well.

  • Pete 213 posts 285 karma points
    Aug 13, 2012 @ 17:07
    Pete
    0

    Don't know if anyone has come across this problem.

    I'm getting this error on BlogPostListComments.xslt :

    Error occured
    
    System.Xml.Xsl.XslTransformException: Extension object 'urn:BlogLibrary' does not contain a matching 'GetCommentsForPost' method that has 1 parameter(s).
    at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind()
    at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags)
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    BlogLatestComments.xslt. Gets this error:

    System.Xml.Xsl.XslTransformException: Extension object 'urn:BlogLibrary' does not contain a matching 'GetCommentsForBlog' method that has 1 parameter(s).

     

    The dll is in the bin folder though and this is my xlst config: (Umlaut.Umb.Blog.dll)

    <?xml version="1.0" encoding="utf-8" ?>
    <XsltExtensions>
    <ext assembly="umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib"></ext>
    <ext assembly="Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.Library.Base" alias="BlogLibrary">
        <permission method="CreateComment" returnXml="false" allowAll="true" />
        <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
    </ext>
    </XsltExtensions>

  • Den Gordo 29 posts 49 karma points
    Sep 05, 2012 @ 18:29
    Den Gordo
    0

    I couldn't install blog4umbraco package on my 4.7 because of number of errors so I installed StarterKit Blog 1.2 and had the same issue with comments not stored. And because I have /bin/Runway.Blog.dll only this lines worked for me in restExtensions.config:

    <ext assembly="Runway.Blog" type="Runway.Blog.Library.Base" alias="umbBlog">
            <permission method="CreateComment" returnXml="false" allowAll="true" />
            <permission method="GetGravatarImage" returnXml="false" allowAll="true" />
    </ext>
  • Den Gordo 29 posts 49 karma points
    Sep 05, 2012 @ 18:34
    Den Gordo
    0
  • 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