Error
Call to a member function url() on null Error thrown with message "Call to a member function url() on null" Stacktrace: #7 Error in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/site/templates/fullwidth.php:47 #6 require in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/vendor/getkirby/toolkit/lib/tpl.php:22 #5 Tpl:load in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/kirby/component/template.php:103 #4 Kirby\Component\Template:render in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/kirby.php:681 #3 Kirby:template in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/kirby.php:669 #2 Kirby:render in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/kirby/kirby.php:751 #0 Kirby:launch in /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/index.php:16
Stack frames (8)
7
Error
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
site
/
templates
/
fullwidth.php
47
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
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
index.php
16
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
site
/
templates
/
fullwidth.php
    <div class="ci-contentbg ci-contentbg-md" style="background-image: url('<?php echo $bgimage_md ?> ')"></div>
    <div class="ci-contentbg ci-contentbg-xs" style="background-image: url('<?php echo $bgimage_xs ?> ')"></div>
    </div>
    <div class="wrap_ wide_ ci-wide-content">
        <div class="text ci-maintext">
            <?= $page->text()->kirbytext() ?>
        </div>
    </div>
    
 
    
 
  </main>
 
<div class="ci-debug">
    <div><?= $page->diruri() ?></div>
    <div><?= $kirby->urls()->assets() ?></div>
    <div> <?= $page->coverimage()->url() ?></div>
    <div> <?= $page->coverimage()->root()?></div>
    <div> <?= $page->image()->url()?></div>     
</div>
<?php snippet('footer') ?>
 
 
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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;
  }
 
}
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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;
 
  }
 
}
 
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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
   */
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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() {
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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;
    }
 
  }
 
}
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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
   */
/
is
/
htdocs
/
wp10565564_L5J4TG57TU
/
www
/
fijol-prod
/
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
REDIRECT_REMOTE_ADDR_ANON 34.229.223.0
REDIRECT_HTTPS on
REDIRECT_HOME /is/htdocs/wp10565564_L5J4TG57TU/
REDIRECT_USER wp10565564
REDIRECT_MAGICK_TEMPORARY_PATH /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
REDIRECT_MAGICK_TMPDIR /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
REDIRECT_TMP /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
REDIRECT_TMPDIR /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
REDIRECT_STATUS 200
REMOTE_ADDR_ANON 34.229.223.0
HTTPS on
HOME /is/htdocs/wp10565564_L5J4TG57TU/
USER wp10565564
MAGICK_TEMPORARY_PATH /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
MAGICK_TMPDIR /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
TMP /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
TMPDIR /is/htdocs/user_tmp/wp10565564_L5J4TG57TU
HTTP_HOST fijol.de
HTTP_X_REAL_IP 34.229.223.223
HTTP_X_FORWARDED_FOR 34.229.223.223
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME fijol.de
SERVER_ADDR 127.0.0.81
SERVER_PORT 443
REMOTE_ADDR 34.229.223.223
DOCUMENT_ROOT /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/
SERVER_ADMIN webmaster@fijol.de
SCRIPT_FILENAME /is/htdocs/wp10565564_L5J4TG57TU/www/fijol-prod/index.php
REMOTE_PORT 34286
REDIRECT_URL /produkte/obst
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /produkte/obst
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710814412.6277
REQUEST_TIME 1710814412
argv Array ( )
argc 0
Key Value
DAVLOCKFILE /var/lock/apache2/DavLockDB-modphp81
PWD /
APACHE_LOG_DIR /var/log/apache2
LANG en_US.UTF-8
APACHE_PID_FILE /var/run/apache2/apache2.pid
APACHE_LOCK_DIR /var/lock/apache2
SHLVL 1
APACHE_RUN_DIR /var/run/apache2
_ /usr/sbin/apache2
0. Whoops\Handler\PrettyPageHandler