Thumbnail Retrieval Error
Permalink Browser Info Environment
Hello! I am trying to create a custom template for the ProBlog List block. Everything works except for retrieving the thumbnail image. Here is my code:
This code is currently returning the error "Fatal error: Call to a member function getThumbnail() on a non-object" on this line:
Please help!
Thanks,
Nick
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); extract($blog_settings); global $c; if (count($cArray) > 0) { ?> <div class="ccm-page-list ccm-page-list-three-col"> <div class="row"> <?php for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; extract($blogify->getBlogVars($cobj)); $content = $controller->getContent($cobj,$blog_settings); $oThumb = $cobj->getAttribute('page_thumbnail'); $thumb = $ih->getThumbnail($oThumb, 320, 200, true); ?>
Viewing 15 lines of 43 lines. View entire code block.
This code is currently returning the error "Fatal error: Call to a member function getThumbnail() on a non-object" on this line:
$thumb = $ih->getThumbnail($oThumb, 320, 200, true);
Please help!
Thanks,
Nick
Type: | Discussion |
---|---|
Status: | New |