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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Image Source of Cropped Image Starts With index.php


Go to End


1668 Views

Avatar
xeraa

Community Member, 58 Posts

20 August 2010 at 8:55pm

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