Jump to:

23481 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Image Source of Cropped Image Starts With index.php

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

Page: 1
Go to End
Author Topic: 1263 Views
  • xeraa
    Avatar
    Google Summer of Code Hacker
    58 Posts

    Image Source of Cropped Image Starts With index.php Link to this post

    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 %>
    $CroppedImage(100,100)
    <% end_control %>
    <% else_if Projektbild %>
    <% control Projektbild %>
    $CroppedImage(100,100)
    <% end_control %>
    <% else %>
    <img src="/mysite/img/placeholder.gif" alt="Placeholder">
    <% end_if %>
    <div class="popup">
    <p>
    <b>$Title</b><br>
    <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;">
             <p>
                <b>Millions Of Dreads ‘Schwoaza Mann‘</b><br>
                <span class="ausz-author">Maria Legat</span><br>
                                                    <span class="ausz-auszeichnung">1. Platz</span>
                                                 </p>
                                              </div>
                                           </a>
                                        </div>

    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)?

    1263 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.