Fatal error: Call to a member function representation() on boolean in /home/content/36/11990136/html/watfordbid/kirby/kirby.php on line 302
Kirby CMS Debugger
Whoops \ Exception \ ErrorException (E_ERROR)
Call to a member function representation() on boolean Whoops\Exception\ErrorException thrown with message "Call to a member function representation() on boolean" Stacktrace: #0 Whoops\Exception\ErrorException in /home/content/36/11990136/html/watfordbid/kirby/kirby.php:302
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
kirby.php
302
/
home
/
content
/
36
/
11990136
/
html
/
watfordbid
/
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([

Environment & details:

Key Value
Kirby Toolkit v2.5.12
Kirby CMS v2.5.12
empty
empty
empty
empty
empty
Key Value
TMPDIR /home/content/36/11990136/tmp
PHPRC /home/content/36/11990136/html/
TEMP /home/content/36/11990136/tmp
PHP_FCGI_CHILDREN 0
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /web/cgi-bin
SHLVL 0
SPI TRUE
TMP /home/content/36/11990136/tmp
PHP_FCGI_MAX_REQUESTS 100000
SCRIPT_NAME /index.php
REQUEST_URI /news-service-excellence-awards-2018-winners.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /~penknife/watfordbid/news-service-excellence-awards-2018-winners.php
REMOTE_PORT 33626
SCRIPT_FILENAME /var/chroot/home/content/36/11990136/html/watfordbid/index.php
SERVER_ADMIN support@secureserver.net
CONTEXT_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html
REQUEST_SCHEME http
DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html
REMOTE_ADDR 34.228.38.35
SERVER_PORT 80
SERVER_ADDR 50.63.32.1
SERVER_NAME watfordbid.co.uk
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at watfordbid.co.uk Port 80</address>
LD_LIBRARY_PATH /web/httpd24/lib
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST watfordbid.co.uk
HTTP_IF_MODIFIED_SINCE Mon, 18 Feb 2019 19:06:28 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/)
PARENT_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html
GD_PHP_HANDLER x-httpd-php5-6
userlimit_limit 50
userlimit_name 11990136
REAL_USERNAME penknife
SUBDOMAIN_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html/watfordbid
GD_ERROR_DOC .errordocs/missing.html
REDIRECT302
XID 11990136
REAL_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html/watfordbid
DOMAIN_NAME watfordbid.co.uk
SCRIPT_URI http://watfordbid.co.uk/news-service-excellence-awards-2018-winners.php
SCRIPT_URL /news-service-excellence-awards-2018-winners.php
UNIQUE_ID XL5D3LioLgMAACJ7aLMAAAAj
REDIRECT_STATUS 200
REDIRECT_PARENT_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html
REDIRECT_TMPDIR /home/content/36/11990136/tmp
REDIRECT_TEMP /home/content/36/11990136/tmp
REDIRECT_TMP /home/content/36/11990136/tmp
REDIRECT_PHPRC /home/content/36/11990136/html/
REDIRECT_GD_PHP_HANDLER x-httpd-php5-6
REDIRECT_userlimit_limit 50
REDIRECT_userlimit_name 11990136
REDIRECT_REAL_USERNAME penknife
REDIRECT_SUBDOMAIN_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html/watfordbid
REDIRECT_GD_ERROR_DOC .errordocs/missing.html
REDIRECT_REDIRECT302
REDIRECT_XID 11990136
REDIRECT_REAL_DOCUMENT_ROOT /var/chroot/home/content/36/11990136/html/watfordbid
REDIRECT_DOMAIN_NAME watfordbid.co.uk
REDIRECT_SCRIPT_URI http://watfordbid.co.uk/news-service-excellence-awards-2018-winners.php
REDIRECT_SCRIPT_URL /news-service-excellence-awards-2018-winners.php
REDIRECT_UNIQUE_ID XL5D3LioLgMAACJ7aLMAAAAj
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1555973084.7869
REQUEST_TIME 1555973084
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler