Copied to clipboard

Flag this post as spam?

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


  • daniel 13 posts 83 karma points
    Feb 03, 2017 @ 18:12
    daniel
    0

    Images not displaying for me

    I have something like this in my template

                        <div class="profile">
                            <picture>
                                <!--[if IE 9]>
                                <video class="none"><![endif]-->
                                <source srcset="@CurrentPage.desktopImage9" media="(min-width: 1100px)">
                                <source srcset="@CurrentPage.mobileImage9" media="(min-width: 100px)">
                                <!--[if IE 9]></video><![endif]-->
                                <img srcset="@CurrentPage.desktopImage9" alt="@CurrentPage.altText9">
                            </picture>
                        </div><!-- /.profile -->
    
                        <div class="biography">
                            @CurrentPage.Name9
                        </div><!-- /.biography -->
    

    however when I take a look at my page, sometimes the images show and sometimes they don't. this varies upon refresh. I am using Articulate Cropper as an editor to show these images, however i had the same problem when I tried using Media Picker.

    thanks

  • Jason Wise 20 posts 100 karma points
    Feb 03, 2017 @ 19:29
    Jason Wise
    0

    How long has it been since you saved the code? Sometimes it takes a little while for Umbraco to cache correctly. You could also try clearing the cache of the browser you are using and see if that helps!

  • daniel 13 posts 83 karma points
    Feb 03, 2017 @ 19:37
    daniel
    0

    This error has been occurring for days now. Inspecting the missing images shows that the address for them tends to be ~/media/9333/imagename.jpg and whenever I visit the link i get an

    Server Error in '/' Application.

    The resource cannot be found.

    error. However as I mentioned, one refresh sometimes the image reappears. when that does, visiting the image links no longer leads to the error and instead leads to the image.

    thanks

  • Jason Wise 20 posts 100 karma points
    Feb 03, 2017 @ 19:40
    Jason Wise
    0

    Interesting. If you have not tried clearing your browser cache I would give that a try and see if that helps. I often find that most issues I have with Umbraco not showing things is if I clear my cache it helps most of the time. Good Luck!

  • Ronish Potiah 19 posts 171 karma points
    Feb 04, 2017 @ 07:25
    Ronish Potiah
    0

    Hi Daniel,

    I can see that the link is ~/media/9333/imagename.jpg. Normally when you use media picker, the link is relative which should display like: /media/9333/imagename.jpg without the tilde ~

    Try accessing the image directly and see if its work: http://{domain}/media/9333/imagename.jpg. If it works, then there must be a config that is rewriting the image links.

  • daniel 13 posts 83 karma points
    Feb 03, 2017 @ 20:36
    daniel
    0

    thank you, unfortunately clearing the cache doesn't help. Several other users have tested the link in their browser and all relied that the images randomly appear or error out due to not being found. This error occurs across multiple browsers and in incognito mode also.

Please Sign in or register to post replies

Write your reply to:

Draft