Copied to clipboard

Flag this post as spam?

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


  • ianhoughton 281 posts 605 karma points c-trib
    Mar 25, 2013 @ 14:39
    ianhoughton
    0

    Relative virtual path error - Inserting image Tinymce

    I'm using version 4.11.5 and getting this a 500 error (/umbraco/controls/Images/ImageViewerUpdater.asmx/UpdateImage ) in Fiddler when selecting / inserting images in the RTE:

    {"Message":"The relative virtual path \u0027award\u0027 is not allowed 
    here.","StackTrace":" at System.Web.VirtualPath.Create(String virtualPath, 
    VirtualPathOptions options)\r\n at 
    System.Web.VirtualPathUtility.ToAbsolute(String virtualPath, String 
    applicationPath)\r\n at umbraco.controls.Images.ImageViewer.LookupData()\r\n at 
    umbraco.controls.Images.ImageViewer.DataBind()\r\n at 
    umbraco.controls.Images.ImageViewerUpdater.UpdateImage(Int32 mediaId, String 
    style, String linkTarget)","ExceptionType":"System.ArgumentException"}

    I don't get this issue on another 4.11.4 website on the same machine. I've also copied the Umbraco & Umbraco_client folders from the original 4.11.5 download without success.

  • Sebastiaan Janssen 5053 posts 15508 karma points MVP admin hq
    Mar 25, 2013 @ 14:55
    Sebastiaan Janssen
    0

    Do you know where that 'award' path is coming from? Is this something you've set somewhere?

  • ianhoughton 281 posts 605 karma points c-trib
    Mar 25, 2013 @ 15:06
    ianhoughton
    0

    I've added a field called fileName onto the image media type. This was populated with 'award'. I've just removed this field and it's now working ok. I presume that 'fileName' is a reserverd name ?

  • Sebastiaan Janssen 5053 posts 15508 karma points MVP admin hq
    Mar 25, 2013 @ 15:13
    Sebastiaan Janssen
    100

    Aah, you are absolutely right, I just had a quick look at the source code and guess what? So yeah, give it a different name and you should be good to go!

     

                    // TODO: Remove "Magic strings" from code.

                    var pFile = m.getProperty("fileName");

Please Sign in or register to post replies

Write your reply to:

Draft