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 /home/zookdkgm/www/kirby/kirby.php:302 #2 Kirby:{closure} in /home/zookdkgm/www/kirby/vendor/getkirby/toolkit/helpers.php:282 #1 call in /home/zookdkgm/www/kirby/kirby.php:743 #0 Kirby:launch in /home/zookdkgm/www/index.php:16
Stack frames (4)
3
Error
/
kirby.php
302
2
Kirby
{closure}
/
vendor
/
getkirby
/
toolkit
/
helpers.php
282
1
call
/
kirby.php
743
0
Kirby
launch
/
home
/
zookdkgm
/
www
/
index.php
16
/
home
/
zookdkgm
/
www
/
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([
/
home
/
zookdkgm
/
www
/
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);
/
home
/
zookdkgm
/
www
/
kirby
/
kirby.php
 
    // load all plugins
    $this->plugins();
 
    // start the router
    $this->router = new Router($this->routes());
    $this->route  = $this->router->run(trim($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;
 
/
home
/
zookdkgm
/
www
/
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
empty
Key Value
USER zookdkgm
SCRIPT_NAME /index.php
REQUEST_URI /pena.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /pena.html
REMOTE_PORT 61572
SCRIPT_FILENAME /home/zookdkgm/www/index.php
SERVER_ADMIN postmaster@z-o-o.fr
DOCUMENT_ROOT /home/zookdkgm/www
REMOTE_ADDR 3.85.63.190
SERVER_PORT 80
SERVER_ADDR 10.13.20.126
SERVER_NAME z-o-o.fr
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 3.85.63.190
HTTP_X_IPLB_UNIQUE_ID 03553FBE:9CE4_D5BA2118:0050_65F91CA4_1B590:5011
HTTP_REMOTE_PORT 40164
HTTP_FORWARDED for=3.85.63.190; proto=http; host=z-o-o.fr
HTTP_X_REMOTE_PROTO http
HTTP_X_REMOTE_IP 3.85.63.190
HTTP_X_REMOTE_PORT 40164
HTTP_X_FORWARDED_PORT 80
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 99c3cc792183fd963a0c1d08820c5ece
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_FOR 3.85.63.190
HTTP_X_PREDICTOR 1
HTTP_HOST z-o-o.fr
ENVIRONMENT production
CFG_CLUSTER cluster013
SCRIPT_URI http://z-o-o.fr/pena.html
SCRIPT_URL /pena.html
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 ZfkcpDfs74LxYiYZm-AYKAAAAAA
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710824612.9052
REQUEST_TIME 1710824612
argv Array ( )
argc 0
Key Value
USER zookdkgm
SCRIPT_NAME /index.php
REQUEST_URI /pena.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /pena.html
REMOTE_PORT 61572
SCRIPT_FILENAME /home/zookdkgm/www/index.php
SERVER_ADMIN postmaster@z-o-o.fr
DOCUMENT_ROOT /home/zookdkgm/www
REMOTE_ADDR 3.85.63.190
SERVER_PORT 80
SERVER_ADDR 10.13.20.126
SERVER_NAME z-o-o.fr
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_REMOTE_IP 3.85.63.190
HTTP_X_IPLB_UNIQUE_ID 03553FBE:9CE4_D5BA2118:0050_65F91CA4_1B590:5011
HTTP_REMOTE_PORT 40164
HTTP_FORWARDED for=3.85.63.190; proto=http; host=z-o-o.fr
HTTP_X_REMOTE_PROTO http
HTTP_X_REMOTE_IP 3.85.63.190
HTTP_X_REMOTE_PORT 40164
HTTP_X_FORWARDED_PORT 80
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_OVHREQUEST_ID 99c3cc792183fd963a0c1d08820c5ece
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_FOR 3.85.63.190
HTTP_X_PREDICTOR 1
HTTP_HOST z-o-o.fr
ENVIRONMENT production
CFG_CLUSTER cluster013
SCRIPT_URI http://z-o-o.fr/pena.html
SCRIPT_URL /pena.html
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 ZfkcpDfs74LxYiYZm-AYKAAAAAA
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710824612.9052
REQUEST_TIME 1710824612
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler