Error
Call to a member function representation() on bool Error thrown with message "Call to a member function representation() on bool" Stacktrace: #3 Error in /var/www/html/kirby/kirby/kirby.php:299 #2 Kirby:{closure} in /var/www/html/kirby/kirby/vendor/getkirby/toolkit/helpers.php:282 #1 call in /var/www/html/kirby/kirby/kirby.php:733 #0 Kirby:launch in /var/www/html/kirby/index.php:18
Stack frames (4)
3
Error
/
kirby.php
299
2
Kirby
{closure}
/
vendor
/
getkirby
/
toolkit
/
helpers.php
282
1
call
/
kirby.php
733
0
Kirby
launch
/
var
/
www
/
html
/
kirby
/
index.php
18
/
var
/
www
/
html
/
kirby
/
kirby
/
kirby.php
      // visit the currently active page
      $page = ($lang)? $site->visit($path, $lang) : $site->visit($path);
 
      // redirections for files and invalid representations
      if($site->representation !== null) {
 
        // get the filename
        $filename = rawurldecode(basename($path));
        $pagepath = dirname($path);
 
        // check if there's a page for the parent path
        if($parent = $site->find($pagepath)) {
          // check if there's a file for the last element of the path
          if($file = $parent->file($filename)) {
            return go($file->url());
          }
        }
 
        // prevent invalid representation routes
        if($site->representation === '' || $site->representation != $page->representation()) {
          return $site->errorPage();
        }
 
      }
 
      return $page;
 
    };
 
    // tinyurl handling
    $routes['tinyurl'] = $this->component('tinyurl')->route();
 
    // home redirect
    $routes['homeRedirect'] = array(
      'pattern' => $this->options['home'] . '(\..*)?',
      'action'  => function($extension = null) {
        // ignore invalid extensions
        if($extension === '.') $extension = '';
 
        redirect::send(url::build([
/
var
/
www
/
html
/
kirby
/
kirby
/
vendor
/
getkirby
/
toolkit
/
helpers.php
 
/**
 * Facepalm typo alias
 * @see csrf()
 */
function csfr() {
  return call('csrf', func_get_args());
}
 
/**
 * Shortcut for call_user_func_array with a better handling of arguments
 *
 * @param mixed $function
 * @param mixed $arguments
 * @return mixed
 */
function call($function, $arguments = array()) {
  if(!is_callable($function)) return false;
  if(!is_array($arguments)) $arguments = array($arguments);
  return call_user_func_array($function, $arguments);
}
 
/**
 * Parses yaml structured text
 *
 * @param $string
 * @return array
 */
function yaml($string) {
  return yaml::decode($string);
}
 
/**
 * Simple email sender helper
 *
 * @param array $params
 * @return Email
 */
function email($params = array()) {
  return new Email($params);
/
var
/
www
/
html
/
kirby
/
kirby
/
kirby.php
 
    // load all plugins
    $this->plugins();
 
    // start the router
    $this->router = new Router($this->routes());
    $this->route  = $this->router->run($this->path());
 
    // 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;
 
/
var
/
www
/
html
/
kirby
/
index.php
<?php
    define('DS', DIRECTORY_SEPARATOR);
 
    require('vendor' . DS . 'autoload.php');
    include('set-env-vars.php');
 
    // 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.7
Kirby CMS v2.5.7
empty
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI klimaiteklimaite.com
REDIRECT_STATUS 200
HTTPS on
SSL_TLS_SNI klimaiteklimaite.com
HTTP_HOST klimaiteklimaite.com
HTTP_ACCEPT_ENCODING gzip, deflate, br
HTTP_TRACEPARENT 00-83609a5dfaa0c24c3e5677623bcd6b8e-88f3ba5ba60c5c36-00
HTTP_ACCEPT */*
HTTP_USER_AGENT imgix/3.0.0.0
HTTP_CONNECTION keep-alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.41 (Ubuntu)
SERVER_NAME klimaiteklimaite.com
SERVER_ADDR 167.71.53.16
SERVER_PORT 443
REMOTE_ADDR 107.178.207.141
DOCUMENT_ROOT /var/www/html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/html/kirby/index.php
REMOTE_PORT 52683
REDIRECT_URL /kirby/content/4-projects/68-holy-204-exhibition-identity-daad-gallerie/holy_204_booklet_web1.jpg
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /kirby/content/4-projects/68-holy-204-exhibition-identity-daad-gallerie/holy_204_booklet_web1.jpg
SCRIPT_NAME /kirby/index.php
PHP_SELF /kirby/index.php
REQUEST_TIME_FLOAT 1718507623.913
REQUEST_TIME 1718507623
ENVIRONMENT development
FRONTEND_URL https://www.klimaiteklimaite.com/
API_URL https://www.klimaiteklimaite.com/kirby/api
JOBS_API_URL http://localhost:3300/job
Key Value
ENVIRONMENT development
FRONTEND_URL https://www.klimaiteklimaite.com/
API_URL https://www.klimaiteklimaite.com/kirby/api
JOBS_API_URL http://localhost:3300/job
0. Whoops\Handler\PrettyPageHandler