Copied to clipboard

Flag this post as spam?

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


  • Bo Jacobsen 606 posts 2404 karma points
    May 03, 2019 @ 08:06
    Bo Jacobsen
    0

    Mediaprotect: Error indexing mediaitem

    Hi.

    We are using Umbraco Cloud version 8.0.2 with Media Protect version 2.8.0

    We are getting this error on all our Custom Files.

    Message:
    Mediaprotect: Error indexing mediaitem
    
    
    Exception:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at MediaProtect.Core.TypeExtensions.MediaExtensions.IsCropped(IMedia media)
       at MediaProtect.Core.TypeExtensions.MediaExtensions.GetUmbracoFile(IMedia media)
       at MediaProtect.Core.TypeExtensions.MediaExtensions.ToMediaProtectIndexItem(IMedia media)
       at MediaProtect.Core.Services.Index.IndexService.IndexNode(IMedia mediaItem)
    
  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    May 05, 2019 @ 11:17
    Richard Soeteman
    0

    Hi Bo,

    Think that one is solved with the following hotfix https://www.dropbox.com/s/zr9naxzotdmdji7/mediaprotect21_1.zip?dl=0

    Hope this helps,

    Richard

  • Bo Jacobsen 606 posts 2404 karma points
    May 08, 2019 @ 10:34
    Bo Jacobsen
    0

    Hi Richard.

    Thanks for that. Will it also be included in a future version?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    May 08, 2019 @ 11:08
    Richard Soeteman
    0

    Yes this will be the next version indeed

  • Mark Bowser 273 posts 860 karma points c-trib
    Dec 03, 2021 @ 00:18
    Mark Bowser
    0

    Richard, we are experiencing this problem right now on an Umbraco 8.8.3 site using MediaProtect 2.8.4. We were previously using MediaProtect 2.8.1 and upgraded because we were having this issue. I'm still seeing my logs fill with this exception when I reindex my Media Protect indexes.

    Can you give me any insight into the problem? Is there something we can do to shake it loose?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 03, 2021 @ 07:09
    Richard Soeteman
    0

    Hi Mark,

    The above fix is in latest versions. Did you try to re-index and is there an item in recycle bin maybe?

    Best,

    Richard

  • Mark Bowser 273 posts 860 karma points c-trib
    Dec 03, 2021 @ 16:18
    Mark Bowser
    0

    We did try to reindex and that's when we see a lot of the above exceptions. I'll bet there are items in the recycle bin. If we clear that out, you think it will solve the problem?

    The other piece of the puzzle is that this was previously an Umbraco 7 site. It was upgraded to v8 last year and it may be that we are just now noticing the problem. Do you think there could be a problem with the tables or the data there?

  • Damien Holley 180 posts 541 karma points
    Aug 26, 2022 @ 02:24
    Damien Holley
    0

    Did the reinstall work? what was the resolution?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 04, 2021 @ 09:35
    Richard Soeteman
    0

    Could be that tables changed indeed. Try re-install?

Please Sign in or register to post replies

Write your reply to:

Draft