Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Image Source of Cropped Image Starts With index.php




20 August 2010 at 8:55pm Google Summer of Code Hacker, 58 Posts

One of my includes looks like this:

<div class="bubbleInfo" id="id$ID">
<a href="$Top.URLSegment/get/$ID" class="trigger">
<% if VideoThumbnail %>
<% control VideoThumbnail %>
<% end_control %>
<% else_if Projektbild %>
<% control Projektbild %>
<% end_control %>
<% else %>
<img src="/mysite/img/placeholder.gif" alt="Placeholder">
<% end_if %>
<div class="popup">
<span class="ausz-author">$Member.FirstName $Member.Surname</span><br>

Every now and then the output in the browser looks like this:

<div id="id85" class="bubbleInfo">
   <a class="trigger" href="auszeichnungen-09/get/85">
            <img alt="croppedimage600350 rasta" src="/index.php/assets/Uploads/_resampled/croppedimage100100-croppedimage600350-rasta.png">
      <div class="popup" style="opacity: 0;">
            <b>Millions Of Dreads ‘Schwoaza Mann‘</b><br>
            <span class="ausz-author">Maria Legat</span><br>
                                                <span class="ausz-auszeichnung">1. Platz</span>

Which is totally broken due to the src="/index.php/assets/Uploads/_resampled/croppedimage100100-croppedimage600350-rasta.png" - that image cannot be found of course.

mod_rewrite is enabled on the site and this section is included in a partial-caching section.
It "only" happens a few times per week and ?flush=all fixes the problem, but this is not an acceptable solution.
Could it be that the partial cache thinks that mod_rewrite is not enabled? But why would it try to use the fallback on a cropped image, that's not necessary under any circumstances.

Has anyone seen that problem, any hints how to fix it or should I file a bug report (I'm hesitating a bit because the problem is hard to reproduce - it just occurs again and again)?