Copied to clipboard

Flag this post as spam?

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


  • Erik 6 posts 77 karma points
    Sep 14, 2020 @ 10:13
    Erik
    0

    Error when adding favicon (Umbraco 8)

    Hi! When i try to add favicon to my site the site crashes and i get this error message: enter image description here

    I only encounter this error when i use the file format "ico" and not with PNG. But when adding with PNG, the favicon doesnt change.

    Anyone got any ideas on how to solve this? Thank you.

  • Nik 1614 posts 7260 karma points MVP 7x c-trib
    Sep 14, 2020 @ 10:47
    Nik
    0

    Hi Erik,

    It looks like when an ICO file is uploaded to the Umbraco media library it's being uploaded as a File type instead of an Image type.

    So your exception is being thrown when it tries to convert it from an IPublishedContent to a type of Image.

    If you go into the Umbraco back office, into your media section, and then explicitly upload the ICO file as an Image you should find it resolves the issue.

    Cheers

    Nik

  • Erik 6 posts 77 karma points
    Sep 14, 2020 @ 11:09
    Erik
    1

    Hi Nik,

    That solved it! Thank you so much!

Please Sign in or register to post replies

Write your reply to:

Draft