Copied to clipboard

Flag this post as spam?

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


  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 09, 2017 @ 09:39
    Paul Seal
    0

    GetMediaByPath returns null

    Hi I'm trying to get a Media Item by media path and I'm using this method

    ApplicationContext.Services.MediaService.GetMediaByPath
    

    The method is just returning null. Please can you help me? I really need to be able to get the item by path.

    I'm using Umbraco version 7.4.3 on this project.

    If you have some alternative code as a workaround, I would really appreciate it.

    Thanks

    Paul

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 09, 2017 @ 16:53
    Paul Seal
    100

    I solved this by upgrading from umbraco v7.4.3 to v7.5.14

  • Danny 49 posts 105 karma points
    Aug 25, 2017 @ 21:10
    Danny
    0

    I'm experiencing this issue on version 7.6.5. Has the bug been reintroduced?

  • Danny 49 posts 105 karma points
    Aug 27, 2017 @ 20:35
    Danny
    0

    To be more specific I'm having this issue when calling ApplicationContext.Services.MediaService.GetMediaByPath in the ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"] .GatheringNodeData event

  • 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