We have an image field included in a view with an imagecache formatter. This works fine most of the time, but occcasionally the url for the image becomes invalid so instead of http://example.com/sites/default/... it becomes http:///sites/default/...

Clearing cache fixes this problem but it comes back sporadically.

Any thoughts on what is causing this or ways to debug it appreciated.

Comments

dawehner’s picture

Project: Views (for Drupal 7) » ImageField
Version: 6.x-2.14 » 6.x-3.x-dev

Well the url is generated by imagecache/imagefield, so let's move the issue there.

lambic’s picture

I'm not convinced it's an imagecache issue, as we use imagecache a lot and haven't seen this problem before, but this is the first time we've used it in a view.

delmarr’s picture

I've done further testing on this issue. Displaying the image from 3 different sources in a view; imagecache, drupal filters, and the original file.

When the image broke it was revealed that all sources had invalid urls. I think we can rule out imagecache unless I'm missing something.

Results below.

IMAGECACHE
<img src=" http:///sites/default/files/imagecache/homepage-thumbnail/images/filament-thumb.jpg" alt="" title="" class="imagecache imagecache-homepage-thumbnail imagecache-default imagecache-homepage-thumbnail_default" width="110" height="110">
ORIGINAL
<span class="offscreen"> http:///sites/default/files/images/filament-thumb.jpg</span>
DRUPAL FILTER
<span class="offscreen"> http:///sites/default/files/imagecache/large/images/filament-thumb.jpg</span>

lambic’s picture

Project: ImageField » Views (for Drupal 7)
Version: 6.x-3.x-dev » 6.x-2.14
mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)