Error
Call to a member function thumbnail() on boolean Error thrown with message "Call to a member function thumbnail() on boolean" Stacktrace: #7 Error in /home/dh_5pbcy5/this-generation.com/site/templates/interview.php:88 #6 require in /home/dh_5pbcy5/this-generation.com/kirby/vendor/getkirby/toolkit/lib/tpl.php:22 #5 Tpl:load in /home/dh_5pbcy5/this-generation.com/kirby/kirby/component/template.php:103 #4 Kirby\Component\Template:render in /home/dh_5pbcy5/this-generation.com/kirby/kirby.php:681 #3 Kirby:template in /home/dh_5pbcy5/this-generation.com/kirby/kirby.php:669 #2 Kirby:render in /home/dh_5pbcy5/this-generation.com/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /home/dh_5pbcy5/this-generation.com/kirby/kirby.php:751 #0 Kirby:launch in /home/dh_5pbcy5/this-generation.com/index.php:16
Stack frames (8)
7
Error
/
home
/
dh_5pbcy5
/
this-generation.com
/
site
/
templates
/
interview.php
88
6
require
/
vendor
/
getkirby
/
toolkit
/
lib
/
tpl.php
22
5
Tpl
load
/
kirby
/
component
/
template.php
103
4
Kirby
\
Component
\
Template
render
/
kirby.php
681
3
Kirby
template
/
kirby.php
669
2
Kirby
render
/
kirby
/
component
/
response.php
29
1
Kirby
\
Component
\
Response
make
/
kirby.php
751
0
Kirby
launch
/
home
/
dh_5pbcy5
/
this-generation.com
/
index.php
16
/
home
/
dh_5pbcy5
/
this-generation.com
/
site
/
templates
/
interview.php
      <div class = "comments--view--btn">VIEW COMMENTS</div>
    <?php else : ?>
      <!-- add margin just in case there are no related interviews (prevents collapse) -->
      <div class = "comments--view--btn" style = "margin-bottom: 5rem;">VIEW COMMENTS</div>
    <?php endif ?>
 
    <div class="comments--wrap">
      <div class = "comments--wrap--inner">
        <!-- update with url -->
        <div class="fb-comments" data-href="<?php echo $page->url() ?>" data-width="50%" data-numposts="10"></div>
      </div>
    </div>
 
    <?php if ($page->related()->toStructure()->first()) : ?>
      <h2 class = "interview--footer--related--title">Related Interviews</h2>
      <section class = "grid--index">
        <?php foreach($page->related()->toStructure() as $related): ?>
          <?php $index++; ?>
          <?php $relatedPage = $page->parent()->children()->find($related); ?>
          <?php if ($relatedPage->thumbnail()->isNotEmpty()) : ?>
 
            <div class = "grid--index--cell">
              <a href="<?php echo $relatedPage->url()?>">
              <h2>
                <?php echo $relatedPage->title()->text() ?>
              </h2>
              <?php $thumb = $relatedPage->image($relatedPage->thumbnail()) ?>
              <?php $imgWidth = $thumb->height(); ?>
              <?php $imgHeight = $thumb->height(); ?>
              <?php if ($thumb->orientation() == 'landscape') :?>
                <div class = "grid--index--cell__landscape">
                  <!-- <p echo $thumb->focusCrop(1000, 670) ?> -->
                  <?php if ($imgWidth >= 1000) : ?>
                    <?php echo $thumb->focusCrop(1000, 670) ?>
                  <?php else : ?>
                    <?php if ($imgWidth > 500) : ?>
                      <?php echo $thumb->focusCrop(500, 335) ?> 
                    <?php else : ?>
                      <?php echo $thumb->focusCrop(375, 250) ?> 
                    <?php endif ?>
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
vendor
/
getkirby
/
toolkit
/
lib
/
tpl.php
/**
 * Tpl
 *
 * Super simple template engine
 *
 * @package   Kirby Toolkit
 * @author    Bastian Allgeier <bastian@getkirby.com>
 * @link      http://getkirby.com
 * @copyright Bastian Allgeier
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */
class Tpl extends Silo {
 
  public static $data = array();
 
  public static function load($_file, $_data = array(), $_return = true) {
    if(!file_exists($_file)) return false;
    ob_start();
    extract(array_merge(static::$data, (array)$_data));
    require($_file);
    $_content = ob_get_contents();
    ob_end_clean();
    if($_return) return $_content;
    echo $_content;
  }
 
}
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
kirby
/
component
/
template.php
    if($template instanceof Page) {
      $page = $template;
      $file = $page->templateFile();
      $data = $this->data($page, $data);
    } else {
      $file = $template;
      $data = $this->data(null, $data);
    }
 
    // check for an existing template
    if(!file_exists($file)) {
      throw new Exception('The template could not be found');
    }
 
    // merge and register the template data globally
    $tplData = tpl::$data;
    tpl::$data = array_merge(tpl::$data, $data);
 
    // load the template
    $result = tpl::load($file, null, $return);
 
    // reset the template data
    tpl::$data = $tplData;
 
    return $result;
 
  }
 
}
 
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
kirby.php
      }
 
      return $template;
 
    }
 
    // return a fresh template
    return $this->template($page, $data);
 
  }
 
  /**
   * Template configuration
   *
   * @param Page $page
   * @param array $data
   * @return string
   */
  public function template(Page $page, $data = array()) {
    return $this->component('template')->render($page, $data);
  }
 
  public function request() {
    if(!is_null($this->request)) return $this->request;
    return $this->request = new Request($this);
  }
 
  public function router() {
    return $this->router;
  }
 
  public function route() {
    return $this->route;
  }
 
  /**
   * Starts the router, renders the page and returns the response
   *
   * @return mixed
   */
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
kirby.php
        }
 
      }
 
      // try to fetch the template from cache
      $template = $this->cache()->get($cacheId);
 
      // fetch fresh content if the cache is empty
      if(empty($template)) {
        $template = $this->template($page, $data);
        // store the result for the next round
        $this->cache()->set($cacheId, $template);
      }
 
      return $template;
 
    }
 
    // return a fresh template
    return $this->template($page, $data);
 
  }
 
  /**
   * Template configuration
   *
   * @param Page $page
   * @param array $data
   * @return string
   */
  public function template(Page $page, $data = array()) {
    return $this->component('template')->render($page, $data);
  }
 
  public function request() {
    if(!is_null($this->request)) return $this->request;
    return $this->request = new Request($this);
  }
 
  public function router() {
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
kirby
/
component
/
response.php
 * @link      http://getkirby.com
 * @copyright Bastian Allgeier
 * @license   http://getkirby.com/license
 */
class Response extends \Kirby\Component {
 
  /**
   * Builds and return the response by various input
   * 
   * @param mixed $response
   * @return mixed
   */
  public function make($response) {
 
    if(is_string($response)) {
      return $this->kirby->render(page($response));
    } else if(is_array($response)) {
      return $this->kirby->render(page($response[0]), $response[1]);
    } else if(is_a($response, 'Page')) {
      return $this->kirby->render($response);      
    } else if(is_a($response, 'Response')) {
      return $response;
    } else {
      return null;
    }
 
  }
 
}
/
home
/
dh_5pbcy5
/
this-generation.com
/
kirby
/
kirby.php
    // check for a valid route
    if(is_null($this->route)) {
      header::status('500');
      header::type('json');
      die(json_encode(array(
        'status'  => 'error',
        'message' => 'Invalid route or request method'
      )));
    }
 
    // call the router action with all arguments from the pattern
    $response = call($this->route->action(), $this->route->arguments());
 
    // load all language variables
    // this can only be loaded once the router action has been called
    // otherwise the current language is not yet available
    $this->localize();
 
    // build the response
    $this->response = $this->component('response')->make($response);
 
    // store the current language in the session
    if(
        $this->option('language.detect') &&
        $this->site()->multilang() &&
        $this->site()->language()
      ) {
      s::set('kirby_language', $this->site()->language()->code());
    }
 
    return $this->response;
 
  }
 
  /**
   * Register a new hook
   *
   * @param string/array $hook The name of the hook
   * @param closure $callback
   */
/
home
/
dh_5pbcy5
/
this-generation.com
/
index.php
<?php
 
define('DS', DIRECTORY_SEPARATOR);
 
// load kirby
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
 
// check for a custom site.php
if(file_exists(__DIR__ . DS . 'site.php')) {
  require(__DIR__ . DS . 'site.php');
} else {
  $kirby = kirby();
}
 
// render
echo $kirby->launch();

Environment & details:

Key Value
Kirby Toolkit v2.5.12
Kirby CMS v2.5.12
empty
empty
empty
empty
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
REQUEST_URI /interviews/leo-becerra
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /interviews/leo-becerra
REMOTE_PORT 54794
SCRIPT_FILENAME /home/dh_5pbcy5/this-generation.com/index.php
SERVER_ADMIN webmaster@this-generation.com
CONTEXT_DOCUMENT_ROOT /home/dh_5pbcy5/this-generation.com
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/dh_5pbcy5/this-generation.com
REMOTE_ADDR 3.235.41.241
SERVER_PORT 443
SERVER_ADDR 69.163.224.229
SERVER_NAME www.this-generation.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST www.this-generation.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Fri, 22 Jan 2021 18:27:45 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI www.this-generation.com
HTTPS on
DH_USER dh_5pbcy5
ds_id_39161433
dsid 39161433
SCRIPT_URI https://www.this-generation.com/interviews/leo-becerra
SCRIPT_URL /interviews/leo-becerra
UNIQUE_ID YH9SyrzuFKKD@XcrGdscbAAAANA
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.this-generation.com
REDIRECT_HTTPS on
REDIRECT_DH_USER dh_5pbcy5
REDIRECT_ds_id_39161433
REDIRECT_dsid 39161433
REDIRECT_SCRIPT_URI https://www.this-generation.com/interviews/leo-becerra
REDIRECT_SCRIPT_URL /interviews/leo-becerra
REDIRECT_UNIQUE_ID YH9SyrzuFKKD@XcrGdscbAAAANA
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1618957002.1713
REQUEST_TIME 1618957002
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
REQUEST_URI /interviews/leo-becerra
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /interviews/leo-becerra
REMOTE_PORT 54794
SCRIPT_FILENAME /home/dh_5pbcy5/this-generation.com/index.php
SERVER_ADMIN webmaster@this-generation.com
CONTEXT_DOCUMENT_ROOT /home/dh_5pbcy5/this-generation.com
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/dh_5pbcy5/this-generation.com
REMOTE_ADDR 3.235.41.241
SERVER_PORT 443
SERVER_ADDR 69.163.224.229
SERVER_NAME www.this-generation.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST www.this-generation.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Fri, 22 Jan 2021 18:27:45 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI www.this-generation.com
HTTPS on
DH_USER dh_5pbcy5
ds_id_39161433
dsid 39161433
SCRIPT_URI https://www.this-generation.com/interviews/leo-becerra
SCRIPT_URL /interviews/leo-becerra
UNIQUE_ID YH9SyrzuFKKD@XcrGdscbAAAANA
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.this-generation.com
REDIRECT_HTTPS on
REDIRECT_DH_USER dh_5pbcy5
REDIRECT_ds_id_39161433
REDIRECT_dsid 39161433
REDIRECT_SCRIPT_URI https://www.this-generation.com/interviews/leo-becerra
REDIRECT_SCRIPT_URL /interviews/leo-becerra
REDIRECT_UNIQUE_ID YH9SyrzuFKKD@XcrGdscbAAAANA
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1618957002.1713
REQUEST_TIME 1618957002
0. Whoops\Handler\PrettyPageHandler