Notice: Undefined index: ref in /data/web/virtuals/44974/virtual/www/domains/tvonline.cz/shopaholic/presenters/Front/ShowPresenter.php on line 68

Notice: Undefined index: ref in /data/web/virtuals/44974/virtual/www/domains/tvonline.cz/shopaholic/presenters/Front/ShowPresenter.php on line 68
InvalidStateException

InvalidStateException

Cannot set HTTP code after HTTP headers have been sent (output started at /data/web/virtuals/44974/virtual/www/domains/tvonline.cz/shopaholic/presenters/Front/ShowPresenter.php:68).

Source file

File: /data/web/virtuals/44974/virtual/www/domains/tvonline.cz/shopaholic/lib/Nette/Web/HttpResponse.php   Line: 77

Line 70:                500=>1501=>1503=>1505=>1
Line 71:            );
Line 72:    
Line 73:            if (!isset($allowed[$code])) {
Line 74:                throw new InvalidArgumentException("Bad HTTP response '$code'.");
Line 75:    
Line 76:            } elseif (headers_sent($file$line)) {
Line 77:                throw new InvalidStateException("Cannot set HTTP code after HTTP headers have been sent" . ($file ? " (output started at $file:$line)." : "."));
Line 78:    
Line 79:            } else {
Line 80:                $this->code $code;
Line 81:                $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
Line 82:                header($protocol ' ' $codeTRUE$code);
Line 83:                return TRUE;
Line 84:            }

Call stack

  1. Web/HttpResponse.php (159) source   HttpResponse-> setCode (arguments )

  2. Application/Application.php (160) source   HttpResponse-> redirect (arguments )

  3. shopaholic/bootstrap.php (134) source   Application-> run ()

  4. tvonline.cz/index.php (20) source   require_once (arguments )

Environment

HTTP request

HTTP response