Copied to clipboard

Flag this post as spam?

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


  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Apr 17, 2012 @ 12:26
    Biagio Paruolo
    0

    JSON error when submit post

    With last UBlogsy package, I've JSON error when try to submit post. So Umbraco don't publish post.

    Why?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 23, 2012 @ 01:05
    Anthony Dang
    0

    Please paste the error here

    What verson of Umbraco and ublogsy are you using?

    Also, what other packages are installed?

     

  • Greyhound 102 posts 124 karma points
    Jun 15, 2012 @ 12:56
    Greyhound
    0

    Hi,

    First off, great piece of work and thanks for making it available.

    I'm also getting a JSON error but ONLY in IE9, Chrome works fine. Details as follows:

    IE9
    umbraco v 4.7.2 (Assembly version: 1.0.4500.21031)
    UBlogsy Version: 2.1.0.0

    Other installed packages
    NivoSlider for Umbraco V0.5

    Actions so far:
    Added the UBlogsy document types to "Allowed" under my main content node
    Moved the UBlogsy root node under my main content node

    The existing blogs show up fine and I can add year, month and day folders. The issue occurs as shown below when I try and add a blog:

    Line: 390
    Error: 'JSON' is undefined

    Any pointers would be much appreciated.

  • Greyhound 102 posts 124 karma points
    Jun 15, 2012 @ 14:42
    Greyhound
    0

    Ok - solved this although I'm not sure whether its the correc thing to do.

    As this is only happening in IE I found this post:
    http://www.devcurry.com/2010/12/resolve-json-is-undefined-error-in.html

    So.... I added a reference to json2
    Download it here and put it in the "/umbraco/js" folder and call it json2.js
    https://github.com/douglascrockford/JSON-js

    To add the reference I put it in the "/umbraco/editcontent.aspx" file as follows:

    <umb:JsIncludeID="JsInclude4"runat="server"FilePath="js/json2.js"PathNameAlias="UmbracoRoot"/>

    I can now add and edit blog posts without any issues in IE. Hope that helps someone and if anyone can tell me the correct way to do this I would be grateful.

  • 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