Unhandled Error!

Call to a member function getThumbnailPath() on bool

Document /modules/cms/classes/cms_controller.php(389) : eval()'d code
Document type PHP document
Line 4
Exception class Error
# Call Stack Code Document Line
16 eval(()) /modules/cms/classes/cms_controller.php 389
15 Cms_Controller->evalWithException('?><? if (isset($product)): $productImage = $product->images ? rtrim(site_url(''),'/') . $product->images[0]->getThumbnailPath("auto", "auto") . '?fbrefresh=' . str_replace(" ", "", microtime()) : ""; if ($productImage != ""): ?> <link rel="image_src" href="<?= $productImage ?>" /> <meta property="og:image" content="<?= $productImage ?>" /> <?php endif; ?> <meta property="og:title" content="<?= h($product->name); ?>" /> <meta property="og:type" content="website" /> <meta property="og:url" content="<?= h(str_replace(":443", "", Phpr::$request->getCurrentUrl())); ?>" /> <? if($product->meta_description != ""): ?> <meta property="og:description" content="<?= h($product->meta_description); ?>" /> <?php endif; endif; ?>', 'CMS page head', 'Product page') /modules/cms/classes/cms_controller.php 659
14 Cms_Controller->render_head(()) /modules/cms/classes/cms_controller.php(389) : eval()'d code 27
13 eval(()) /modules/cms/classes/cms_controller.php 389
12 Cms_Controller->evalWithException('?><?php $inComparison = unserialize(Phpr::$session->get('inComparison', false)); $hasCompare = count($inComparison); $noDistraction = isset($noDistraction) ? $noDistraction : false; ?><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <title><?= h($this->page->title) ?></title> <meta name="description" content="<?= (h($this->page->description) == "" ? "Hand made cuckoo clocks direct from the Black Forest made by Anton Schneider, August Schwer, H&ouml;nes and Rombach &amp; Haas." : h($this->page->description)) ?>"> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel='stylesheet' type='text/css'> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Work+Sans:400,500,700' rel='stylesheet' type='text/css'> <link href="/assets/css/style.css?v=<?= md5(filemtime('assets/css/style.less')); ?>" rel='stylesheet' type='text/css'> <? if(isset($product)) : ?> <? if($product->image_url(0, 380, 500)) : ?> <link href="<?= $product->image_url(0, 380, 500) ?>" type="image/png" rel="image_src" /> <? else: ?> <link href="/resources/images/cuckoo-large.png" type="image/png" rel="image_src" /> <? endif; ?> <? else: ?> <link href="/resources/images/cuckoo-large.png" type="image/png" rel="image_src" /> <? endif; ?> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <!-- Additional head styles/scripts etc --> <? $this->render_head() ?> </head> <? $bodyClass = ""; if($hasFilter) $bodyClass .= ' has-filter'; if($inComparison && isset($category)) { $bodyClass .= ' has-compare'; if ($hasCompare == 3) $bodyClass .= ' comparison-full'; } if ($noDistraction) $bodyClass .= ' no-distraction'; ?> <body class="<?= $bodyClass; ?>"> <div id="compare-bar"> <? $buttonClass = ($hasCompare === 1) ? ' disabled" disabled="disabled' : ''; ?> <a href="#" class="btn btn-default open-comparison <?= $buttonClass; ?>">Compare</a> <div class="boxes"> <? if($hasCompare): ?> <? foreach($inComparison as $product_id): $_product = Shop_Product::create()->find_by_id($product_id); ?> <div class="box" id="comparison-<?= $_product->id ;?>" data-product-id="<?= $_product->id ;?>"> <a href="" class="remove-comparison"><img src="/assets/images/svg/jc-close.svg" class="icon-close replace"></a> <div class="image"> <? $productImage = $_product->image_url(0, 380, 500); if (!$productImage) $productImage = '/resources/images/clock_placeholder.jpg'; ?> <img src="<?= $productImage; ?>" width="380" height="500"> </div> </div> <? endforeach; ?> <? if ($hasCompare < 3): ?> <div class="box empty"></div> <? endif; ?> <? endif; ?> </div> </div> <div class="content-wrapper"> <div id="notification-bar"> <i class="fa fa-truck fa-lg"></i> FREE Delivery: All prices include VAT and import charges <span class="hidden-xs">to mainland UK — see our <a href="/price-promise" class="link">price promise</a> </div> <? /* <div id="notification-bar"> site wide notification</span> </div> */ ?> <div id="header" class="container"> <div class="row"> <div class="col-md-12"> <?php if (!$noDistraction): ?> <a href="#" class="visible-xs hamburger-menu"><i class="fa fa-bars"></i></a> <?php endif; ?> <span class="logo"> <a href="/" title="Cuckoo clocks from the Black Forest"><img src="/assets/images/logo.png" alt="Cuckoo clocks from the Black Forest"></a> </span> <?php if (!$noDistraction): ?> <? $cartNumber = Shop_Cart::get_item_total_num(); $cartTotal = Shop_Cart::total_price(); ?> <a href="/basket/" class="basket pull-right"> <? if ($cartNumber): ?> <span class="hidden-xs hidden-sm"><?= format_currency($cartTotal); ?></span> <em><?= $cartNumber ?></em> <? else: ?> <span class="hidden-xs hidden-sm">£0.00</span> <em> </em> <? endif; ?> <img src="/assets/images/svg/jc-cart.svg" class="icon-cart replace"> </a> <a href="" class="mobile-search pull-right visible-xs"> <img src="/assets/images/svg/jc-search.svg" class="icon-search replace"> </a> <?php endif; ?> </div> </div> <?php if (!$noDistraction): ?> <? $currentCat = $this->page->url; if ( isset($category) ) $currentCat = $category->url_name; if ( isset($product) ) $currentCat = $product->category_list[0]->url_name; ?> <div class="row main-menu "> <div class="col-lg-8 col-md-8 col-sm-9 hidden-xs"> <ul> <li><a href="/shop" class="<? if($currentCat == '/shop'): ?>active<? endif; ?>">All <span class="hidden-sm hidden-xs hidden-md">clocks</span></a></li> <? $categories = Shop_Category::create()->list_root_children("front_end_sort_order"); ?> <? foreach($categories as $cat) : ?> <li> <a href="<?= $cat->page_url('/style') ?>" title="<?= $cat->name ?>" class="<? if($currentCat == $cat->url_name): ?>active<? endif; ?>"> <?= $cat->name ?> </a> </li> <? endforeach; ?> </ul> </div> <div class="col-lg-4 col-md-4 col-sm-3 main-search"> <form action="/shop/"> <? $search = Phpr::$request->getField('search'); ?> <button type="submit" class="hidden-xs"><img src="/assets/images/svg/jc-search.svg" class="icon-search replace"></button> <input type="text" name="search" class="line-input hidden-sm" placeholder="SEARCH CUCKOOS" value=""> <input type="text" name="search" class="line-input x-visible-sm" placeholder="SEARCH" value=""> <div class="suggestions"> <div class="inner" id="suggestions"> </div> </div> </form> </div> </div> <!-- #main-menu --> <?php endif; ?> </div> <!-- #header --> <div class="container"> ', 'CMS partial', 'site:header', array(0)) /modules/cms/classes/cms_controller.php 1048
11 Cms_Controller->render_partial('site:header') /modules/cms/classes/cms_controller.php(389) : eval()'d code 1
10 eval(()) /modules/cms/classes/cms_controller.php 389
9 Cms_Controller->evalWithException('?><? $this->render_partial('site:header'); ?> <section class="main" id="page-<?= $this->page->directory_name; ?>"> <? $this->render_page() ?> </section> <? $this->render_partial('site:footer'); ?>', 'CMS template', 'Default (without sidebar)') /modules/cms/classes/cms_controller.php 216
8 Cms_Controller->open(object(Cms_Page), array(1) [0 => '6233t-kissing-couple']) /controllers/application.php 72
7 Application->On404(()) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/clock/6233t-kissing-couple') /phproad/system/phproad.php 31
2 include('/home/justcuckoos/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/justcuckoos/public_html/boot.php') /index.php 3