Whoops \ Exception \ ErrorException (E_WARNING)
Cannot modify header information - headers already sent by (output started at /home/valuramallo/public_html/site/plugins/detect/detect.php:50) Whoops\Exception\ErrorException thrown with message "Cannot modify header information - headers already sent by (output started at /home/valuramallo/public_html/site/plugins/detect/detect.php:50)" Stacktrace: #7 Whoops\Exception\ErrorException in /home/valuramallo/public_html/kirby/vendor/getkirby/toolkit/lib/header.php:132 #6 header in /home/valuramallo/public_html/kirby/vendor/getkirby/toolkit/lib/header.php:132 #5 Header:status in /home/valuramallo/public_html/kirby/vendor/getkirby/toolkit/lib/header.php:193 #4 Header:notfound in /home/valuramallo/public_html/kirby/core/page.php:1155 #3 PageAbstract:headers in /home/valuramallo/public_html/kirby/kirby.php:616 #2 Kirby:render in /home/valuramallo/public_html/kirby/kirby/component/response.php:29 #1 Kirby\Component\Response:make in /home/valuramallo/public_html/kirby/kirby.php:741 #0 Kirby:launch in /home/valuramallo/public_html/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
616
2
Kirby
render
/
kirby
/
component
/
response.php
29
1
Kirby
\
Component
\
Response
make
/
kirby.php
741
0
Kirby
launch
/
home
/
valuramallo
/
public_html
/
index.php
16
/
home
/
valuramallo
/
public_html
/
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) {
/
home
/
valuramallo
/
public_html
/
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) {
/
home
/
valuramallo
/
public_html
/
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);
/
home
/
valuramallo
/
public_html
/
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);
  }
 
  /**
/
home
/
valuramallo
/
public_html
/
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)
      $cacheId = md5(url::current() . $page->representation());
 
      // check for modified content within the content folder
      // and auto-expire the page cache in such a case
      if($this->options['cache.autoupdate'] and $this->cache()->exists($cacheId)) {
 
        // get the creation date of the cache file
        $created = $this->cache()->created($cacheId);
 
/
home
/
valuramallo
/
public_html
/
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;
    }
 
  }
 
}
/
home
/
valuramallo
/
public_html
/
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
   */
/
home
/
valuramallo
/
public_html
/
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.8
Kirby CMS v2.5.8
Key Value
route checkout/cart
empty
empty
empty
Key Value
kirby_session_fingerprint 5e4a14b6d424ee5d6cf6136dea85bdeb216dbbcd
kirby_session_activity 1519056168
device_class desktop
Key Value
PATH /bin:/usr/bin:/usr/local/bin
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST www.valuramallo.com
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
DOCUMENT_ROOT /home/valuramallo/public_html
REMOTE_ADDR 54.160.153.233
REMOTE_PORT 46276
SERVER_ADDR 67.23.239.52
SERVER_NAME www.valuramallo.com
SERVER_ADMIN webmaster@valuramallo.com
SERVER_PORT 80
REQUEST_URI /home/index.php?route=checkout/cart
REDIRECT_URL /home/index.php
REDIRECT_QUERY_STRING route=checkout/cart
REDIRECT_STATUS 200
SCRIPT_FILENAME /home/valuramallo/public_html/index.php
QUERY_STRING route=checkout/cart
SCRIPT_URI http://www.valuramallo.com/home/index.php
SCRIPT_URL /home/index.php
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.0
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1519056168.38
REQUEST_TIME 1519056168
argv Array ( [0] => route=checkout/cart )
argc 1
empty
0. Whoops\Handler\PrettyPageHandler