Error
Call to a member function title() on boolean Error thrown with message "Call to a member function title() on boolean" Stacktrace: #7 Error in /home/hl1paomq/public_html/site/templates/file.php:6 #6 require in /home/hl1paomq/public_html/kirby/vendor/getkirby/toolkit/lib/tpl.php:22 #5 Tpl:load in /home/hl1paomq/public_html/kirby/kirby/component/template.php:103 #4 Kirby\Component\Template:render in /home/hl1paomq/public_html/kirby/kirby.php:681 #3 Kirby:template in /home/hl1paomq/public_html/kirby/kirby.php:669 #2 Kirby:render in /home/hl1paomq/public_html/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /home/hl1paomq/public_html/kirby/kirby.php:751 #0 Kirby:launch in /home/hl1paomq/public_html/index.php:16
Stack frames (8)
7
Error
/
home
/
hl1paomq
/
public_html
/
site
/
templates
/
file.php
6
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
/
hl1paomq
/
public_html
/
index.php
16
/
home
/
hl1paomq
/
public_html
/
site
/
templates
/
file.php
<?php snippet('header') ?>
<?php snippet('menus/menu') ?>
<?php
$membres = $page->membre()->split();
foreach($membres as $key=>$membre):
    $membres[$key] = page('membres/les-membres/'.$membre)->title();
endforeach;
$membres = implode(', ', $membres);
$infos = [ $page->date('%d.%m.%Y'), implode(', ', $page->author()->split()), $membres ] ;
?>
 
    <div id="left-side">
        <?php snippet('menus/menu-second') ?>
    </div>
 
  <main id="panel" class="main wide cf" role="main">
        
        <?php if ( (string)$page->une() ) : ?>
            <?php $une = $page->file($page->une()); ?>
            <div class="cover">
                <figure style="<?= $une ? 'background-image:url(' . $une->resize(1000)->url() . ')' : '' ; ?>">
                    <figcaption><?= $une->caption()->kt() ?></figcaption>
                </figure>
            </div>
        <?php endif ?>
        <div class="file-content">
            <h1 class="main-title"><?= $page->title(); ?></h1>
            <div class="h3 introduction"><?= $page->introduction()->kt() ?></div>
            <div class="container">
                <div class="file-infos">
                    <?php
                    foreach($infos as $info):
                        echo "<p class='small'>$info</p>";
                    endforeach;
                    ?>
                </div>
                <div class="text-wrapper">
                    <?= $page->text()->kt() ?>
                </div>
            </div>
/
home
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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
/
hl1paomq
/
public_html
/
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.10
Kirby CMS v2.5.10
empty
empty
empty
empty
Key Value
kirby_session_fingerprint 3e09514f03ba74a5c37438bb71d7a9e4727fbd03
kirby_session_activity 1710839441
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST territoiresdecirque.com
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PROTO https
REDIRECT_UNIQUE_ID ZflWkCc2WjV7srlb8VP9zQAAAFQ
REDIRECT_SCRIPT_URL /ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
REDIRECT_SCRIPT_URI https://territoiresdecirque.com/ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
REDIRECT_PROTO https
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI territoiresdecirque.com
REDIRECT_STATUS 200
UNIQUE_ID ZflWkCc2WjV7srlb8VP9zQAAAFQ
HTTPS on
SCRIPT_URL /ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
SCRIPT_URI https://territoiresdecirque.com/ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
PROTO https
SSL_TLS_SNI territoiresdecirque.com
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME territoiresdecirque.com
SERVER_ADDR 185.2.4.37
SERVER_PORT 443
REMOTE_ADDR 34.229.223.223
DOCUMENT_ROOT /home/hl1paomq/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/hl1paomq/public_html
SERVER_ADMIN webmaster@territoiresdecirque.com
SCRIPT_FILENAME /home/hl1paomq/public_html/index.php
REMOTE_PORT 41350
REDIRECT_URL /ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /ressources/publications/syntheses/espaces-de-cirque-laboratoires-de-politiques-culturelles
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710839440,7168
REQUEST_TIME 1710839440
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler