Images not showing on 5.6 site
Permalink
A client of mine has a really old C5 site v5.6. I just noticed that a lot of their banner images etc. are not showing up. No matter what image I select it tries to pull a cached version. I have cash off and have cleared cache numerous times. This is the code in the template view...
No matter what I am trying, it just shows the alt text. When I echo $relPath it shows a cached image path (/files/cache/0d93e3fe1019072b2fc27218cc67b0bf_f38.jpg).
Anyone have any ideas?
<?php defined('C5_EXECUTE') or die("Access Denied."); $c = Page::getCurrentPage(); $f = $controller->getFileObject(); $ih = Loader::helper('image'); $thumb = $ih->getThumbnail($f, 737, 198); $relPath = $thumb->src; ?> <div id="left_h"> <h1> <?php if($controller->altText){ echo $controller->altText; } else { echo $c->getCollectionName();
Viewing 15 lines of 22 lines. View entire code block.
No matter what I am trying, it just shows the alt text. When I echo $relPath it shows a cached image path (/files/cache/0d93e3fe1019072b2fc27218cc67b0bf_f38.jpg).
Anyone have any ideas?
Yes, I did try rescanning. That cache file does not exist. But why won't it just load the image? I rescanned in File Manager, went to the image block and reselected it. Same result :(
Try going to the file manager, click the thumbnail of the image and select 'View'.
Does it display in the View?
If it does not display, then somehow or someone has deleted the original images from the server leaving just the thumbnails that are used by the file manager.
Does it display in the View?
If it does not display, then somehow or someone has deleted the original images from the server leaving just the thumbnails that are used by the file manager.
Does a file exist at the path you posted?