Whoops \ Exception \ ErrorException (E_WARNING)
Cannot modify header information - headers already sent by (output started at /usr/www/users/gmurgi/kirby/site/tags/box.php:19) Whoops\Exception\ErrorException thrown with message "Cannot modify header information - headers already sent by (output started at /usr/www/users/gmurgi/kirby/site/tags/box.php:19)" Stacktrace: #7 Whoops\Exception\ErrorException in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/header.php:132 #6 header in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/header.php:132 #5 Header:status in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/header.php:193 #4 Header:notfound in /usr/www/users/gmurgi/kirby/kirby/core/page.php:1155 #3 PageAbstract:headers in /usr/www/users/gmurgi/kirby/kirby/kirby.php:591 #2 Kirby:render in /usr/www/users/gmurgi/kirby/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /usr/www/users/gmurgi/kirby/kirby/kirby.php:726 #0 Kirby:launch in /usr/www/users/gmurgi/kirby/index.php:16
Stack frames (8)
7
Whoops
\
Exception
\
ErrorException
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
132
6
header
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
132
5
Header
status
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
193
4
Header
notfound
/
core
/
page.php
1155
3
PageAbstract
headers
/
kirby.php
591
2
Kirby
render
/
kirby
/
component
/
response.php
29
1
Kirby
\
Component
\
Response
make
/
kirby.php
726
0
Kirby
launch
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
index.php
16
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
   */
  public static function status($code, $send = true) {
 
    $codes = static::$codes;
    $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0';
 
    // allow full control over code and message
    if(is_string($code) && preg_match('/^\d{3} \w.+$/', $code) === 1) {
      $message = substr(rtrim($code), 4);
      $code = substr($code, 0, 3);
    } else {
      $code = !array_key_exists('_' . $code, $codes) ? 500 : $code;
      $message = isset($codes['_' . $code]) ? $codes['_' . $code] : 'Something went wrong';
    }
 
    $header = $protocol . ' ' . $code . ' ' . $message;
    if(!$send) return $header;
 
    // try to send the header
    header($header);
 
  }
 
  /**
   * Sends a 200 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function success($send = true) {
    return static::status(200, $send);
  }
 
  /**
   * Sends a 201 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function created($send = true) {
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
   */
  public static function status($code, $send = true) {
 
    $codes = static::$codes;
    $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0';
 
    // allow full control over code and message
    if(is_string($code) && preg_match('/^\d{3} \w.+$/', $code) === 1) {
      $message = substr(rtrim($code), 4);
      $code = substr($code, 0, 3);
    } else {
      $code = !array_key_exists('_' . $code, $codes) ? 500 : $code;
      $message = isset($codes['_' . $code]) ? $codes['_' . $code] : 'Something went wrong';
    }
 
    $header = $protocol . ' ' . $code . ' ' . $message;
    if(!$send) return $header;
 
    // try to send the header
    header($header);
 
  }
 
  /**
   * Sends a 200 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function success($send = true) {
    return static::status(200, $send);
  }
 
  /**
   * Sends a 201 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function created($send = true) {
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
vendor
/
getkirby
/
toolkit
/
lib
/
header.php
  }
 
  /**
   * Sends a 403 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function forbidden($send = true) {
    return static::status(403, $send);
  }
 
  /**
   * Sends a 404 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function notfound($send = true) {
    return static::status(404, $send);
  }
 
  /**
   * Sends a 404 header
   * 
   * @param boolean $send
   * @return string|null
   */
  public static function missing($send = true) {
    return static::status(404, $send);
  }
 
  /**
   * Sends a 410 header
   *
   * @param boolean $send
   * @return string|null
   */
  public static function gone($send = true) {
    return static::status(410, $send);
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
core
/
page.php
 
  /**
   * Sends all appropriate headers for this page
   * Can be configured with the headers config array,
   * which should contain all header definitions for each template
   */
  public function headers() {
 
    $template = $this->template();
    if(isset($this->kirby->options['headers'][$template])) {
      $headers = $this->kirby->options['headers'][$template];
 
      if(is_numeric($headers)) {
        header::status($headers);
      } else if(is_callable($headers)) {
        call($headers, $this);
      }
 
    } else if($this->isErrorPage()) {
      header::notfound();
    }
 
    // send the header of the representation
    if($representation = $this->representation()) {
      if($mime = f::extensionToMime($representation)) header::type($mime);
    }
 
  }
 
  /**
   * Returns the root for the content file
   *
   * @return string
   */
  public function textfile($template = null) {
    if(is_null($template)) $template = $this->intendedTemplate();
    return textfile($this->diruri(), $template);
  }
 
  /**
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
kirby.php
    } else {
      return $this->cache = cache::setup('mock');
    }
 
  }
 
  /**
   * Renders the HTML for the page or fetches it from the cache
   *
   * @param Page $page
   * @param boolean $headers
   * @return string
   */
  public function render(Page $page, $data = array(), $headers = true) {
 
    // register the currently rendered page
    $this->page = $page;
 
    // send all headers for the page
    if($headers) $page->headers();
 
    // configure pagination urls
    $query  = (string)$this->request()->query();
    $params = (string)$this->request()->params() . r($query, '?') . $query;
 
    pagination::$defaults['url'] = $page->url() . r($params, '/') . $params;
 
    // cache the result if possible
    if($this->options['cache'] && $page->isCachable() && in_array(r::method(), ['GET', 'HEAD'])) {
 
      // try to read the cache by cid (cache id)
      $detect = new Mobile_Detect();      
        if($detect->isMobile() && !$detect->isTablet()) {
            $device = 'mobile';
        }
        elseif($detect->isTablet()) {
            $device = 'tablet';
        }
        else {
            $device = 'desktop';
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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;
    }
 
  }
 
}
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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
   */
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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.2
Kirby CMS v2.5.2
empty
empty
empty
empty
Key Value
kirby_session_fingerprint 65cb02466575c4314876acab2049465cbbf10d34
kirby_session_activity 1711656366
device_class desktop
Key Value
MAGICK_TEMPORARY_PATH /usr/home/gmurgi/.tmp
TMPDIR /usr/home/gmurgi/.tmp
PHP_FCGI_MAX_REQUESTS 100000
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPRC /home/httpd/php73-ini/gmurgi
PWD /home/httpd/cgi-bin
MAGICK_TMPDIR /usr/home/gmurgi/.tmp
CONTENT_LENGTH 0
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /tilgungsrechner/zinsrechner/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /tilgungsrechner/zinsrechner/
REMOTE_PORT 51710
SCRIPT_FILENAME /usr/www/users/gmurgi/kirby/index.php
SERVER_ADMIN webmaster@hauskredite.de
CONTEXT_DOCUMENT_ROOT /usr/www/users/gmurgi/kirby
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /usr/www/users/gmurgi/kirby
REMOTE_ADDR 3.81.79.135
SERVER_PORT 443
SERVER_ADDR 78.47.73.210
SERVER_NAME www.hauskredite.de
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST www.hauskredite.de
HTTP_REFERER http://www.tilgungsrechner.com/zinsrechner/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI www.hauskredite.de
HTTPS on
H2_STREAM_TAG 55575-5474-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.hauskredite.de
REDIRECT_HTTPS on
REDIRECT_H2_STREAM_TAG 55575-5474-3
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH off
REDIRECT_H2PUSH off
REDIRECT_HTTP2 on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711656366.4459
REQUEST_TIME 1711656366
argv Array ( )
argc 0
Key Value
MAGICK_TEMPORARY_PATH /usr/home/gmurgi/.tmp
TMPDIR /usr/home/gmurgi/.tmp
PHP_FCGI_MAX_REQUESTS 100000
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPRC /home/httpd/php73-ini/gmurgi
PWD /home/httpd/cgi-bin
MAGICK_TMPDIR /usr/home/gmurgi/.tmp
CONTENT_LENGTH 0
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /tilgungsrechner/zinsrechner/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /tilgungsrechner/zinsrechner/
REMOTE_PORT 51710
SCRIPT_FILENAME /usr/www/users/gmurgi/kirby/index.php
SERVER_ADMIN webmaster@hauskredite.de
CONTEXT_DOCUMENT_ROOT /usr/www/users/gmurgi/kirby
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /usr/www/users/gmurgi/kirby
REMOTE_ADDR 3.81.79.135
SERVER_PORT 443
SERVER_ADDR 78.47.73.210
SERVER_NAME www.hauskredite.de
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST www.hauskredite.de
HTTP_REFERER http://www.tilgungsrechner.com/zinsrechner/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI www.hauskredite.de
HTTPS on
H2_STREAM_TAG 55575-5474-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.hauskredite.de
REDIRECT_HTTPS on
REDIRECT_H2_STREAM_TAG 55575-5474-3
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH off
REDIRECT_H2PUSH off
REDIRECT_HTTP2 on
FCGI_ROLE RESPONDER
0. Whoops\Handler\PrettyPageHandler