Copied to clipboard

Flag this post as spam?

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


  • Matt 14 posts 34 karma points
    Apr 08, 2010 @ 13:15
    Matt
    0

    ImageGen intermittently not displaying images - a new caching bug in 2.2.1?

    Hi,

    This is a cryptic one, so I'll try to provide as much info as possible

    I'm using the latest 2.2.1.X version of ImageGen.

    On our site, we have 2 images being sourced from img.youtube.com. Both images have different resize/tweak requirements. Intermittently, one of the images does not display (could be either one). After a fair bit of inspection using fiddler2, I found out that when the image doesn't load, the response from imagagen.ashx is:

    -------------------------------

    HTTP/1.1 200 OK
    Cache-Control: private
    Content-Length: 51
    Content-Type: text/html; charset=utf-8
    Server: Microsoft-IIS/7.5
    X-AspNet-Version: 2.0.50727
    X-Powered-By: ASP.NET
    Date: Thu, 08 Apr 2010 10:30:24 GMT

    The node to be removed is not a child of this node.

    -------------------------

    If I then go and look at the index.xml, the XML is not valid xml - it seems to have a chunk missing. I can post an example corrupt file for you to see if you want.

    I've managed to create a cut-down HTML page that shows this error in action. Its a very simple HTML page with 2 of the same images in, with different sizes. In say 20 refreshes, you should find at least a couple of occurences of the image being missing. This test HTML page was placed at the root of our umbraco site to test, so you'll need to add it to an umbraco site....

     

    <html class="no-js" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="generator" content=
    "HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" />
    <title>Test</title>
    </head>
    <body id="homepage">
    <div id="container">
    <div class="fl_l ml_80 box_300 mt_40 listings clear_l">
    <h2>Most popular</h2>
    <ul class="listing1">
    <li>
    <div class="image"><a href=
    "/articles/northern-quarter-tour.aspx"><img src=
    "/umbraco/ImageGen.ashx?&amp;image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&amp;align=center&amp;valign=center&amp;AltImage=/assets/images/discover/imagenotavailable.jpg&amp;width=140&amp;height=97&amp;crop=resize" /></a></div>
    <div class="text">
    <h4><a href="#">A Tour of the Northern Quarter</a></h4>
    </div>
    </li>
    </ul>
    <div class="clear">&#194;&nbsp;</div>
    </div>
    <div class="fl_l ml_120 box_380 mt_30 colour_1 related">
    <div class="image"><a href=
    "/articles/northern-quarter-tour.aspx"><img src=
    "/umbraco/ImageGen.ashx?&amp;image=http://img.youtube.com/vi/RSZ6x559PmM/hqdefault.jpg&amp;width=380&amp;height=214&amp;crop=resize&amp;align=center&amp;valign=center&amp;AltImage=/assets/images/discover/imagenotavailable.jpg" /></a></div>
    <div class="text">
    <h4><a href="#">A Tour of the Northern Quarter</a></h4>
    </div>
    </div>
    </div>
    </body>
    </html>

  • Matt 14 posts 34 karma points
    Apr 14, 2010 @ 10:22
    Matt
    0

    Any update on this? I'm pretty certain this is a valid live bug in imagegen.....

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 17, 2010 @ 12:27
    Douglas Robar
    0

    Thanks for the bug report when using remote images. This is not, as yet, and officially supported feature of ImageGen 2 but will be in ImageGen 3 so I thank you for the report. I'll check into it and let you know what I find.

    cheers,
    doug.

  • Matt 14 posts 34 karma points
    Apr 27, 2010 @ 08:30
    Matt
    0

    Ok, well thanks for the update. Keen to know what you find (as well as any workarounds for now).

     

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft