Error
Call to a member function url() on bool Error thrown with message "Call to a member function url() on bool" Stacktrace: #7 Error in /home/capitalg/IndieCadeEurope/site/templates/festival.php:28 #6 require in /home/capitalg/IndieCadeEurope/kirby/vendor/getkirby/toolkit/lib/tpl.php:22 #5 Tpl:load in /home/capitalg/IndieCadeEurope/kirby/kirby/component/template.php:103 #4 Kirby\Component\Template:render in /home/capitalg/IndieCadeEurope/kirby/kirby.php:646 #3 Kirby:template in /home/capitalg/IndieCadeEurope/kirby/kirby.php:634 #2 Kirby:render in /home/capitalg/IndieCadeEurope/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /home/capitalg/IndieCadeEurope/kirby/kirby.php:716 #0 Kirby:launch in /home/capitalg/IndieCadeEurope/index.php:16
Stack frames (8)
7
Error
/
home
/
capitalg
/
IndieCadeEurope
/
site
/
templates
/
festival.php
28
6
require
/
vendor
/
getkirby
/
toolkit
/
lib
/
tpl.php
22
5
Tpl
load
/
kirby
/
component
/
template.php
103
4
Kirby
\
Component
\
Template
render
/
kirby.php
646
3
Kirby
template
/
kirby.php
634
2
Kirby
render
/
kirby
/
component
/
response.php
29
1
Kirby
\
Component
\
Response
make
/
kirby.php
716
0
Kirby
launch
/
home
/
capitalg
/
IndieCadeEurope
/
index.php
16
/
home
/
capitalg
/
IndieCadeEurope
/
site
/
templates
/
festival.php
  <section class="maintext container">
    <?=$page->text()->kt()?>
  </section>
 
 
    <?php foreach ($page->children() as $edition): ?>
 
      <?php if($edition->images()->first()!==null): ?>
        <img class="topbanner" src="<?=$edition->images()->first()->url()?>">
      <?php endif ?>
      <h2 class="baseline stripes"><p><?=str_replace('</p>', '&nbsp;</p>', str_replace('<br />', '&nbsp;<br>', $edition->title()->html().'&nbsp;'))?></p></h2>
 
      <section class="maintext container">
        <?=$edition->text()->kt()?>
      </section>
 
      <section class="container winners">
        <?php foreach ($edition->winners()->toStructure() as $w): ?>
          <?php $winner = $site->page('programme/jeux/'.$w->game()); ?>
          <a href="<?=$winner->url()?>" class="winner">
            <img src="<?=thumb($winner->images()->first(),array('width'=>700))->url()?>">
            <h3 class="baseline stripes">
              <p>
                <span>&nbsp;<?=$w->prize()?></span><br>
                &nbsp;<?=$winner->title()?>
              </p>
            </h3>
          </a>
        <?php endforeach; ?>
      </section>
 
      <section class="container galerie">
        <?php $i=0;?>
        <?php foreach ($edition->images() as $img): ?>
          <?php if ($i>0): ?>
            <figure onclick="this.classList.toggle('open')">
              <img src="<?=$img->url()?>">
            </figure>
          <?php endif; ?>
          <?php $i++;?>
/
home
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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
/
capitalg
/
IndieCadeEurope
/
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.4
Kirby CMS v2.5.4
empty
empty
empty
empty
empty
Key Value
USER capitalg
SCRIPT_NAME /index.php
REQUEST_URI /en/festival
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /en/festival
REMOTE_PORT 39636
SCRIPT_FILENAME /home/capitalg/IndieCadeEurope/index.php
SERVER_ADMIN postmaster@indiecade-europe.eu
DOCUMENT_ROOT /home/capitalg/IndieCadeEurope
REMOTE_ADDR 35.173.178.60
SERVER_PORT 80
SERVER_ADDR 10.3.20.196
SERVER_NAME indiecade-europe.eu
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 35.173.178.60
HTTP_X_IPLB_UNIQUE_ID 23ADB23C:DBAE_D5BA2104:0050_6605C5F7_1227:1D25
HTTP_REMOTE_PORT 56238
HTTP_FORWARDED for=35.173.178.60; proto=http; host=indiecade-europe.eu
HTTP_X_REMOTE_PROTO http
HTTP_X_REMOTE_IP 35.173.178.60
HTTP_X_REMOTE_PORT 56238
HTTP_X_FORWARDED_PORT 80
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 63eb90c2a66d57bc4f4890021abda527
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_FOR 35.173.178.60
HTTP_X_PREDICTOR 1
HTTP_HOST indiecade-europe.eu
ENVIRONMENT production
CFG_CLUSTER cluster003
SCRIPT_URI http://indiecade-europe.eu/en/festival
SCRIPT_URL /en/festival
GEOIP_LONGITUDE -77.490303
GEOIP_LATITUDE 39.046902
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID ZgXF90Kp6Xf4Rv-H5vCLVgAAAJ0
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711654391.4857
REQUEST_TIME 1711654391
argv Array ( )
argc 0
Key Value
USER capitalg
SCRIPT_NAME /index.php
REQUEST_URI /en/festival
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /en/festival
REMOTE_PORT 39636
SCRIPT_FILENAME /home/capitalg/IndieCadeEurope/index.php
SERVER_ADMIN postmaster@indiecade-europe.eu
DOCUMENT_ROOT /home/capitalg/IndieCadeEurope
REMOTE_ADDR 35.173.178.60
SERVER_PORT 80
SERVER_ADDR 10.3.20.196
SERVER_NAME indiecade-europe.eu
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 35.173.178.60
HTTP_X_IPLB_UNIQUE_ID 23ADB23C:DBAE_D5BA2104:0050_6605C5F7_1227:1D25
HTTP_REMOTE_PORT 56238
HTTP_FORWARDED for=35.173.178.60; proto=http; host=indiecade-europe.eu
HTTP_X_REMOTE_PROTO http
HTTP_X_REMOTE_IP 35.173.178.60
HTTP_X_REMOTE_PORT 56238
HTTP_X_FORWARDED_PORT 80
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 63eb90c2a66d57bc4f4890021abda527
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_FOR 35.173.178.60
HTTP_X_PREDICTOR 1
HTTP_HOST indiecade-europe.eu
ENVIRONMENT production
CFG_CLUSTER cluster003
SCRIPT_URI http://indiecade-europe.eu/en/festival
SCRIPT_URL /en/festival
GEOIP_LONGITUDE -77.490303
GEOIP_LATITUDE 39.046902
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID ZgXF90Kp6Xf4Rv-H5vCLVgAAAJ0
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711654391.4857
REQUEST_TIME 1711654391
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler