Copied to clipboard

Flag this post as spam?

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


  • Simon 4 posts 74 karma points
    Jul 19, 2017 @ 10:34
    Simon
    0

    Unable to retrieve media url

    Hi Vitaly,

    Really like the plugin, useful way of keeping global settings for a site.

    I'm hitting an issue though trying to get an image url from a media picker...

    I've used your example wrapper for it...

    var test1 = ConfigurationHelper.MediaUrl("sidebarCallbackDefaults.callbackImage.image");
    

    but i keep getting the following error...

    System.MissingMethodException: 'Method not found: 'Int32 Umbraco.Web.UmbracoHelper.GetIdForUdi(Umbraco.Core.Udi)'.'
    

    Any thoughts on how to fix?

    I've tried both the String & IPublishedContent wrapper methods and no joy

    Simon

  • Alex Skrypnyk 5444 posts 20367 karma points MVP 3x admin c-trib
    Jul 19, 2017 @ 12:10
    Alex Skrypnyk
    0

    Hi Simon

    What version of Umbraco are you using?

    Thanks,

    Alex

  • Alex Skrypnyk 5444 posts 20367 karma points MVP 3x admin c-trib
    Jul 19, 2017 @ 12:12
    Alex Skrypnyk
    1
    Umbraco.Web.UmbracoHelper.GetIdForUdi(Umbraco.Core.Udi) 
    

    Works only since 7.6.2 verion

  • Delete 61 posts 449 karma points
    Jul 19, 2017 @ 13:01
    Delete
    0

    Hi Simon,

    Alex is absolutely right!

    If you use Umbraco 7.6.x and higher, you have to use uConfiguration 7.6.0.0.

    If the Umbraco 7.5.x you have to use uConfiguration 7.5.10.0.

    Thank you for your positive feedback.

    Best regards,

    Vitaly

  • Delete 61 posts 449 karma points
    Jul 19, 2017 @ 13:02
    Delete
    0

    Hi Simon,

    Please see a message above! ))

  • Simon 4 posts 74 karma points
    Jul 20, 2017 @ 09:48
    Simon
    0

    Hi,

    We're using Umbraco 7.6.1 & uConfigeration 7.6.0.0

  • Alex Skrypnyk 5444 posts 20367 karma points MVP 3x admin c-trib
    Jul 20, 2017 @ 09:49
    Alex Skrypnyk
    1

    Hi Simon

    Please upgrade your solution to latest.

    Thanks,

    Alex

  • Delete 61 posts 449 karma points
    Jul 20, 2017 @ 09:59
    Delete
    0

    Simon,

    Udi was added in the 7.6.2.

    https://our.umbraco.org/contribute/releases/762/

    Could you update to 7.6.2 and higher or you can try to use uConfiguration 7.5.10.0

    Thanks

  • Delete 61 posts 449 karma points
    Jul 20, 2017 @ 09:50
    Delete
    1

    Hi Simon,

    Very, very strange.

    I'll check this version.

  • Simon 4 posts 74 karma points
    Jul 20, 2017 @ 09:59
    Simon
    0

    I'll upgrade it now and have a try - cheers for the really fast responses!!

  • Simon 4 posts 74 karma points
    Jul 20, 2017 @ 11:46
    Simon
    0

    You guys are absolutely right, upgraded to 7.6.4 and it works like a charm.

    Thanks so much for the assistance

  • Delete 61 posts 449 karma points
    Jul 20, 2017 @ 11:48
    Delete
    0

    You are welcome!!! ))

    Vitaly

Please Sign in or register to post replies

Write your reply to:

Draft