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: #9 Whoops\Exception\ErrorException in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/cookie.php:50 #8 setcookie in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/cookie.php:50 #7 Cookie:set in /usr/www/users/gmurgi/kirby/site/templates/home.php:17 #6 require in /usr/www/users/gmurgi/kirby/kirby/vendor/getkirby/toolkit/lib/tpl.php:22 #5 Tpl:load in /usr/www/users/gmurgi/kirby/kirby/kirby/component/template.php:103 #4 Kirby\Component\Template:render in /usr/www/users/gmurgi/kirby/kirby/kirby.php:656 #3 Kirby:template in /usr/www/users/gmurgi/kirby/kirby/kirby.php:644 #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 (10)
9
Whoops
\
Exception
\
ErrorException
/
vendor
/
getkirby
/
toolkit
/
lib
/
cookie.php
50
8
setcookie
/
vendor
/
getkirby
/
toolkit
/
lib
/
cookie.php
50
7
Cookie
set
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
site
/
templates
/
home.php
17
6
require
/
vendor
/
getkirby
/
toolkit
/
lib
/
tpl.php
22
5
Tpl
load
/
kirby
/
component
/
template.php
103
4
Kirby
\
Component
\
Template
render
/
kirby.php
656
3
Kirby
template
/
kirby.php
644
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
/
cookie.php
   * @param  int     $lifetime The number of minutes until the cookie expires
   * @param  string  $path The path on the server to set the cookie for
   * @param  string  $domain the domain 
   * @param  boolean $secure only sets the cookie over https
   * @param  boolean $httpOnly avoids the cookie to be accessed via javascript
   * @return boolean true: the cookie has been created, false: cookie creation failed
   */
  public static function set($key, $value, $lifetime = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) {
      
    // convert array values to json 
    if(is_array($value)) $value = a::json($value);
 
    // hash the value
    $value = static::hash($value) . '+' . $value;
 
    // store that thing in the cookie global 
    $_COOKIE[$key] = $value;
    
    // store the cookie
    return setcookie($key, $value, static::lifetime($lifetime), $path, $domain, $secure, $httpOnly);
  
  }
 
  /**
   * Calculates the lifetime for a cookie
   * 
   * @return int
   */
  public static function lifetime($minutes) {
    return $minutes > 0 ? (time() + ($minutes * 60)) : 0;
  }
 
  /**
   * Stores a cookie forever
   * 
   * <code>
   * 
   * cookie::forever('mycookie', 'hello');
   * // never expires
   * 
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
kirby
/
vendor
/
getkirby
/
toolkit
/
lib
/
cookie.php
   * @param  int     $lifetime The number of minutes until the cookie expires
   * @param  string  $path The path on the server to set the cookie for
   * @param  string  $domain the domain 
   * @param  boolean $secure only sets the cookie over https
   * @param  boolean $httpOnly avoids the cookie to be accessed via javascript
   * @return boolean true: the cookie has been created, false: cookie creation failed
   */
  public static function set($key, $value, $lifetime = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) {
      
    // convert array values to json 
    if(is_array($value)) $value = a::json($value);
 
    // hash the value
    $value = static::hash($value) . '+' . $value;
 
    // store that thing in the cookie global 
    $_COOKIE[$key] = $value;
    
    // store the cookie
    return setcookie($key, $value, static::lifetime($lifetime), $path, $domain, $secure, $httpOnly);
  
  }
 
  /**
   * Calculates the lifetime for a cookie
   * 
   * @return int
   */
  public static function lifetime($minutes) {
    return $minutes > 0 ? (time() + ($minutes * 60)) : 0;
  }
 
  /**
   * Stores a cookie forever
   * 
   * <code>
   * 
   * cookie::forever('mycookie', 'hello');
   * // never expires
   * 
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
site
/
templates
/
home.php
<?php snippet('header') ?>
    <?php
        $device = s::get( 'device_class' );
        if( $device == 'mobile' && $page->titlemobile() != '' ) {
            $title = $page->titlemobile();
        } else {
            $title = $page->title();
        }
 
        $get = cookie::get( 'ivb_adkw' );
 
        //update cookie
        $cookieNew = preg_replace("/\-(\d{11}).*?\-/", '-' . date('dmY') . '-', $get );
        cookie::set(
            'ivb_adkw',
            $cookieNew,
            10080
        );
        $get = cookie::get( 'ivb_adkw' ); 
    ?>
    <div id="post-<?= $page->hash(); ?>" class="main container <?= $device; ?>device" role="main">
         <div class="hidden-xs hidden-sm"><?php snippet('breadcrumb'); ?></div>
        <header class="page-header">
            <h1 style="margin-left: 10px;"><?php echo $title ?></h1>
        </header>
        <div id="main-content" class="content">
        <?php echo ivb_autolinker( $page->text()->kirbytext() ); ?>
        </div>
        <div class="hidden-md hidden-lg"><?php snippet('breadcrumb'); ?></div>
    </div>
    <?php snippet('projects') ?>
<?php snippet('footer') ?>
 
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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;
  }
 
}
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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;
 
  }
 
}
 
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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
   */
/
usr
/
www
/
users
/
gmurgi
/
kirby
/
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() {
/
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
Key Value
ivb_adkw fd0b899ef0d15677a9698dc5023dc9437ae78028+
Key Value
kirby_session_fingerprint e000105b7a924cc063805b0e6b0bfce997ae1b1a
kirby_session_activity 1710837423
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 /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 36810
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.236.111.234
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_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI www.hauskredite.de
HTTPS on
H2_STREAM_TAG 28675-1460-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710837423.4495
REQUEST_TIME 1710837423
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 /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 36810
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.236.111.234
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_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI www.hauskredite.de
HTTPS on
H2_STREAM_TAG 28675-1460-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
FCGI_ROLE RESPONDER
0. Whoops\Handler\PrettyPageHandler