Copied to clipboard

Flag this post as spam?

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


  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Sep 21, 2018 @ 07:17
    Robert Foster
    0

    Exception when social media image property has a deleted image

    Hi, I just hit a problem when I deleted an image from the Media library that was configured in a property associated (through Document Type settings) with the Social Media image:

    SEOChecker.Core.Helpers.MediaInfoHelper.(IPublishedContent ) +42
       SEOChecker.Core.Helpers.MediaInfoHelper.GetByUdi(String mediaUdiString) +146
          SEOChecker.Core.Extensions.UmbracoDocumentExtensions.(String ) +94
             SEOChecker.Core.Extensions.UmbracoDocumentExtensions.GetDefaultImagePropertyValue(IUmbracoDocument doc) +357
          SEOChecker.Core.Extensions.UmbracoDocumentExtensions.GetSocialImage(IUmbracoDocument doc, MediaInfo imageInfo, String mappedSocialImagePropertyAlias, String socialNetwork) +49
          SEOChecker.Library.MetaData.get_FacebookImage() +82
    

    I was obviously able to resolve this by updating the property with a replacement image, but would be good to have this logged instead of throwing the exception...

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Sep 21, 2018 @ 07:20
    Robert Foster
    0

    actually, I had to restore the image, then replace it in the Image picker, save and publish, and then I could delete the original.

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Sep 21, 2018 @ 08:06
    Dave Woestenborghs
    0

    Hi Robert,

    Don't know if this could be handled by my Nexu package. This keeps track of internal links in Umbraco and warns users when they want to delete/unpublish something that is in use.

    https://our.umbraco.com/packages/backoffice-extensions/nexu/

    I don't know the specifics on how this managed, but it could be that your (or Richard) need to write a parser for the property type.

    You can find docs about that here : https://github.com/dawoe/umbraco-nexu/blob/develop/docs/extending.md

    Dave

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Sep 21, 2018 @ 21:05
    Robert Foster
    0

    Hey Dave,

    Yes, been meaning to get that package in there - the property is just a standard Image Picker so shouldn't need a parser; but internally SEOChecker does something with it that causes an exception if the image has been deleted.

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Sep 24, 2018 @ 06:47
    Richard Soeteman
    0

    Hi Robert,

    Thanks for reporting. Will be fixed in next release.

    Best,

    Richard

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Sep 28, 2018 @ 06:15
    Richard Soeteman
    100

    Hi Robert,

    Just fixed this issue. The fix will be in v2.1.1.. Thanks for reporting.

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft