All post_thumbnail attribute images disappeared after update

Permalink
I've had this happen on two sites when updating to 5.6.3.3. One site I migrated to 5.7 so I'm using the page list block and showing the thumbnails that way - but the site that is still 5.6.3.3 is still missing them. As far as I can tell the view.php in the page list block is configured correctly... does anyone know what exactly it was in this version that changed the image attribute... page list block... something?

I've tried removing and re-adding the attribute, deleting and re-adding the thumbnails, removing and re-adding the page list block... I can't get them to come back. Help?

 
wilfordbrimley replied on at Permalink Reply
I am still needing help on this. I can't get my thumbs back no matter what I do??

I followed this tutorial:
http://concrete5tricks.com/blog/page-attributes-thumbnail-images/...

Here is my code:

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="ccm-page-list">
   <?php foreach ($pages as $page):
      // Prepare data for each page being listed...
      $title = $th->entities($page->getCollectionName());
      $url = $nh->getLinkToCollection($page);
      $target = ($page->getCollectionPointerExternalLink() != '' && $page->openCollectionPointerExternalLinkInNewWindow()) ? '_blank' : $page->getAttribute('nav_target');
      $target = empty($target) ? '_self' : $target;
      $description = $page->getCollectionDescription();


No images are showing (and as a side note, although I removed the output of the date it is still showing up).
hutman replied on at Permalink Reply
hutman
What do you get if you change it to look like this? It should spit something out that will be helpful. Also, did you clear your cache?

$img = $page->getAttribute('blog_post_image');
echo 'img = '.$img;
if ($img) {
         $thumb = $ih->getThumbnail($img, 100, 9999, false);
   var_dump($thumb);
} else {
   echo 'img is blank';
}
wilfordbrimley replied on at Permalink Reply 2 Attachments
It does not output anything. =(

I attached a screenshot of my attribute and one of the pages properties, here is the site:http://www.iliketocookstuff.com/food/... , and my code is below (I commented the old info and inserted what you recommended, which is what is currently uploaded to the site. The cache has been cleared as well. Thanks so much for responding and any help is appreciated!

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
$ih = Loader::helper('image'); //<--uncomment this line if displaying image attributes (see below)
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="ccm-page-list">
   <?php foreach ($pages as $page):
      // Prepare data for each page being listed...
      $title = $th->entities($page->getCollectionName());
      $url = $nh->getLinkToCollection($page);
      $target = ($page->getCollectionPointerExternalLink() != '' && $page->openCollectionPointerExternalLinkInNewWindow()) ? '_blank' : $page->getAttribute('nav_target');
      $target = empty($target) ? '_self' : $target;
      $description = $page->getCollectionDescription();
hutman replied on at Permalink Reply
hutman
Did you clear the cache? Because the Page List block gets cached and won't show changes until you clear the cache.
wilfordbrimley replied on at Permalink Reply
Yes I've cleared the cache numerous times while troubleshooting this - no changes!
hutman replied on at Permalink Reply
hutman
Comparing your code from your previous post (not the original) what is being put on this page does NOT match the code, because if you can look at the code you will see that the <div class="thumb"> should show all the time, and it is not there, blank or otherwise.

Is this file a Custom Template for the Page List block? Are you 100% sure that the correct Custom Template is selected?
wilfordbrimley replied on at Permalink Reply
From the previous post I did away with a custom template and just modified the default view.php (which is how I had it before the update) - this is currently what is uploaded to the site (with the thumb div) - I can't understand why it is not showing! I have all caching disabled in the settings as well.
hutman replied on at Permalink Reply
hutman
So if you could just go through and verify a few things hopefully we can figure this out.

Go to the page and get into Edit Mode, verify there is no Custom Template selected.
Did you upload this file to /concrete/blocks/page_list/view.php?
Is there a file in /blocks/page_list/view.php?
wilfordbrimley replied on at Permalink Reply
There is definitely no custom template selected right now. I am uploading to the concrete page_list directory.

I just tested this on a brand new site that was built with 5.6.3.3 and it will not display thumbnails there either, with either editing the default view.php or with adding a custom template.
wilfordbrimley replied on at Permalink Reply
Actually, it does work on the other site with custom template. So it seems like a caching issue - because I tried again with a custom template on the site I'm working on and it won't even show up in the custom template options in the drop-down menu after uploading via FTP and clearing the cache. I'm on Firefox