Cannot send header after HTTP headers have been sent (output started at /mnt/data/accounts/f/feryn/data/www/oniony/libs/Nette/loader.php:2213).
File: /mnt/data/accounts/f/feryn/data/www/oniony/libs/Nette/loader.php Line: 4381
Line 4374: new
Line 4375: InvalidArgumentException("Bad HTTP response '$code'.");}elseif(headers_sent($file,$line)){throw
Line 4376: new
Line 4377: InvalidStateException("Cannot set HTTP code after HTTP headers have been sent".($file?" (output started at $file:$line).":"."));}else{$this->code=$code;$protocol=isset($_SERVER['SERVER_PROTOCOL'])?$_SERVER['SERVER_PROTOCOL']:'HTTP/1.1';header($protocol.' '.$code,TRUE,$code);}return$this;}function
Line 4378: getCode(){return$this->code;}function
Line 4379: setHeader($name,$value){if(headers_sent($file,$line)){throw
Line 4380: new
Line 4381: InvalidStateException("Cannot send header after HTTP headers have been sent".($file?" (output started at $file:$line).":"."));}if($value===NULL&&function_exists('header_remove')){header_remove($name);}else{header($name.': '.$value,TRUE,$this->code);}return$this;}function
Line 4382: addHeader($name,$value){if(headers_sent($file,$line)){throw
Line 4383: new
Line 4384: InvalidStateException("Cannot send header after HTTP headers have been sent".($file?" (output started at $file:$line).":"."));}header($name.': '.$value,FALSE,$this->code);}function
Line 4385: setContentType($type,$charset=NULL){$this->setHeader('Content-Type',$type.($charset?'; charset='.$charset:''));return$this;}function
Line 4386: redirect($url,$code=self::S302_FOUND){if(isset($_SERVER['SERVER_SOFTWARE'])&&preg_match('#^Microsoft-IIS/[1-5]#',$_SERVER['SERVER_SOFTWARE'])&&$this->getHeader('Set-Cookie')!==NULL){$this->setHeader('Refresh',"0;url=$url");return;}$this->setCode($code);$this->setHeader('Location',$url);echo"<h1>Redirect</h1>\n\n<p><a href=\"".htmlSpecialChars($url)."\">Please click here to continue</a>.</p>";}function
Line 4387: setExpiration($time){if(!$time){$this->setHeader('Cache-Control','s-maxage=0, max-age=0, must-revalidate');$this->setHeader('Expires','Mon, 23 Jan 1978 10:00:00 GMT');return$this;}$time=Tools::createDateTime($time);$this->setHeader('Cache-Control','max-age='.($time->format('U')-time()));$this->setHeader('Expires',self::date($time));return$this;}function
Line 4388: expire($seconds){trigger_error(__METHOD__.'() is deprecated; use setExpiration() instead.',E_USER_WARNING);$this->setExpiration($seconds);}function
Nette/loader.php (647) source ► HttpResponse-> setHeader (arguments ►)
$name | "X-Powered-By" (12) |
---|---|
$value | "Nette Framework" (15) |
Line 640: signalReceived($signal){if($signal==='submit'){$this->fireEvents();}else{throw
Line 641: new
Line 642: BadSignalException("There is no handler for signal '$signal' in {$this->reflection->name}.");}}}class
Line 643: Application
Line 644: extends
Line 645: Object{public
Line 646: static$maxLoop=20;public$defaultServices=array('Nette\\Application\\IRouter'=>'MultiRouter','Nette\\Application\\IPresenterLoader'=>array(__CLASS__,'createPresenterLoader'));public$catchExceptions;public$errorPresenter;public$onStartup;public$onShutdown;public$onRequest;public$onError;public$allowedMethods=array('GET','POST','HEAD','PUT','DELETE');private$requests=array();private$presenter;private$serviceLocator;function
Line 647: run(){$httpRequest=$this->getHttpRequest();$httpResponse=$this->getHttpResponse();$httpRequest->setEncoding('UTF-8');$httpResponse->setHeader('X-Powered-By','Nette Framework');if(Environment::getVariable('baseUri')===NULL){Environment::setVariable('baseUri',$httpRequest->getUri()->getBasePath());}$session=$this->getSession();if(!$session->isStarted()&&$session->exists()){$session->start();}if($this->allowedMethods){$method=$httpRequest->getMethod();if(!in_array($method,$this->allowedMethods,TRUE)){$httpResponse->setCode(IHttpResponse::S501_NOT_IMPLEMENTED);$httpResponse->setHeader('Allow',implode(',',$this->allowedMethods));echo'<h1>Method '.htmlSpecialChars($method).' is not implemented</h1>';return;}}$request=NULL;$repeatedError=FALSE;do{try{if(count($this->requests)>self::$maxLoop){throw
Line 648: new
Line 649: ApplicationException('Too many loops detected in application life cycle.');}if(!$request){$this->onStartup($this);$router=$this->getRouter();if($router
Line 650: instanceof
Line 651: MultiRouter&&!count($router)){$router[]=new
Line 652: SimpleRouter(array('presenter'=>'Default','action'=>'default'));}$request=$router->match($httpRequest);if(!($request
Line 653: instanceof
Line 654: PresenterRequest)){$request=NULL;throw
app/bootstrap.php (60) source ► Application-> run ()
Line 53: $application->onShutdown[] = 'BaseModel::disconnect';
Line 54:
Line 55: // routing debug
Line 56: //require 'libs\RoutingDebugger\RoutingDebugger.php';
Line 57: //RoutingDebugger::enable();
Line 58:
Line 59: // Step 5: Run the application!
Line 60: $application->run();
Line 61:
oniony/index.php (19) source ► require (arguments ►)
#0 | "/mnt/data/accounts/f/feryn/data/www/oniony/app/bootstrap.php" (60) |
---|
Line 12: // uzivatelsky uploadovane soubory
Line 13: // root pro soubory
Line 14: define('USER_FILES', WWW_DIR . '/user_files');
Line 15: // obrazky
Line 16: define('USER_IMAGES', WWW_DIR . '/user_files/obrazky');
Line 17:
Line 18: // load bootstrap file
Line 19: require APP_DIR . '/bootstrap.php';
Line 20:
Line 21:
array(0)
NULL
WWW_DIR | "/mnt/data/accounts/f/feryn/data/www/oniony" (42) |
---|---|
APP_DIR | "/mnt/data/accounts/f/feryn/data/www/oniony/app" (46) |
LIBS_DIR | "/mnt/data/accounts/f/feryn/data/www/oniony/libs" (47) |
USER_FILES | "/mnt/data/accounts/f/feryn/data/www/oniony/user_files" (53) |
USER_IMAGES | "/mnt/data/accounts/f/feryn/data/www/oniony/user_files/obrazky" (61) |
NETTE | TRUE |
NETTE_DIR | "/mnt/data/accounts/f/feryn/data/www/oniony/libs/Nette" (53) |
NETTE_VERSION_ID | 906 |
NETTE_PACKAGE | "PHP 5.2" (7) |
/mnt/data/accounts/f/feryn/data/www/oniony/index.php |
/mnt/data/accounts/f/feryn/data/www/oniony/app/bootstrap.php |
/mnt/data/accounts/f/feryn/data/www/oniony/libs/Nette/loader.php |
/mnt/data/accounts/f/feryn/data/www/oniony/app/AdminModule/presenters/AdminModule.php |
/mnt/data/accounts/f/feryn/data/www/oniony/app/FrontModule/presenters/FrontModule.php |
UNIQUE_ID | "YIBeLJQmsDOGKpSvbhZTlwAAAAI" (27) |
---|---|
HTTP_HOST | "oniony.cz" (9) |
HTTP_X_REAL_IP | "3.238.250.105" (13) |
HTTP_X_REAL_PORT | "80" (2) |
HTTP_X_REAL_PROTOCOL | "HTTP/1.1" (8) |
HTTP_X_FORWARDED_PORT | "80" (2) |
HTTP_X_FORWARDED_PROTO | "http" (4) |
HTTP_CONNECTION | "close" (5) |
HTTP_USER_AGENT | "CCBot/2.0 (https://commoncrawl.org/faq/)" (40) |
HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" (63) |
HTTP_ACCEPT_LANGUAGE | "en-US,en;q=0.5" (14) |
HTTP_IF_MODIFIED_SINCE | "Wed, 03 Mar 2021 11:38:32 GMT" (29) |
HTTP_ACCEPT_ENCODING | "br,gzip" (7) |
HTTP_X_FORWARDED_BY | "217.16.187.19" (13) |
PATH | "/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/opt/bin" (136) |
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache" (6) |
SERVER_NAME | "oniony.cz" (9) |
SERVER_ADDR | "10.0.17.248" (11) |
SERVER_PORT | "80" (2) |
REMOTE_ADDR | "3.238.250.105" (13) |
DOCUMENT_ROOT | "/mnt/data/accounts/f/feryn/data/www/oniony" (42) |
REQUEST_SCHEME | "http" (4) |
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/mnt/data/accounts/f/feryn/data/www/oniony" (42) |
SERVER_ADMIN | "frantisekelias@gmail.com" (24) |
SCRIPT_FILENAME | "/mnt/data/accounts/f/feryn/data/www/oniony/index.php" (52) |
REMOTE_PORT | "42714" (5) |
GATEWAY_INTERFACE | "CGI/1.1" (7) |
SERVER_PROTOCOL | "HTTP/1.1" (8) |
REQUEST_METHOD | "GET" (3) |
QUERY_STRING | "" |
REQUEST_URI | "/" |
SCRIPT_NAME | "/index.php" (10) |
PHP_SELF | "/index.php" (10) |
REQUEST_TIME_FLOAT | 1619025452.45 |
REQUEST_TIME | 1619025452 |
argv | array(0)
|
argc | 0 |
Host | oniony.cz |
---|---|
X-Real-IP | 3.238.250.105 |
X-Real-Port | 80 |
X-Real-Protocol | HTTP/1.1 |
X-Forwarded-Port | 80 |
X-Forwarded-Proto | http |
Connection | close |
User-Agent | CCBot/2.0 (https://commoncrawl.org/faq/) |
Accept | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
Accept-Language | en-US,en;q=0.5 |
If-Modified-Since | Wed, 03 Mar 2021 11:38:32 GMT |
Accept-Encoding | br,gzip |
X-Forwarded-By | 217.16.187.19 |
empty
empty
empty
X-Powered-By: PHP/5.6.36-pl0-gentoo
Content-type: text/html; charset=UTF-8