Copied to clipboard

Flag this post as spam?

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


  • Erik 4 posts 75 karma points
    16 days ago
    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 1324 posts 5687 karma points MVP 3x c-trib
    16 days ago
    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 4 posts 75 karma points
    16 days ago
    Erik
    1

    Hi Nik,

    That solved it! Thank you so much!

Please Sign in or register to post replies

Write your reply to:

Draft