Cannot set HTTP code after HTTP headers have been sent (output started at /data/www/www.vyveska.sk/public_html/widget.vyveska.sk/app/presenters/RegisterPresenter.php:1).
File: /data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/HttpResponse.php Line: 65
Line 58: 500=>1, 501=>1, 503=>1, 505=>1
Line 59: );
Line 60:
Line 61: if (!isset($allowed[$code])) {
Line 62: throw new InvalidArgumentException("Bad HTTP response '$code'.");
Line 63:
Line 64: } elseif (headers_sent($file, $line)) {
Line 65: throw new InvalidStateException("Cannot set HTTP code after HTTP headers have been sent" . ($file ? " (output started at $file:$line)." : "."));
Line 66:
Line 67: } else {
Line 68: $this->code = $code;
Line 69: $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
Line 70: header($protocol . ' ' . $code, TRUE, $code);
Line 71: }
Line 72: return $this;
Web/HttpResponse.php (158) source ► NHttpResponse-> setCode (arguments ►)
$code | 301 |
---|
Line 151: public function redirect($url, $code = self::S302_FOUND)
Line 152: {
Line 153: if (isset($_SERVER['SERVER_SOFTWARE']) && preg_match('#^Microsoft-IIS/[1-5]#', $_SERVER['SERVER_SOFTWARE']) && $this->getHeader('Set-Cookie') !== NULL) {
Line 154: $this->setHeader('Refresh', "0;url=$url");
Line 155: return;
Line 156: }
Line 157:
Line 158: $this->setCode($code);
Line 159: $this->setHeader('Location', $url);
Line 160: echo "<h1>Redirect</h1>\n\n<p><a href=\"" . htmlSpecialChars($url) . "\">Please click here to continue</a>.</p>";
Line 161: }
Line 162:
Line 163:
Line 164:
Line 165: /**
Responses/RedirectingResponse.php (68) source ► NHttpResponse-> redirect (arguments ►)
$url | "http://widget.vyveska.sk/register/" (34) |
---|---|
$code | 301 |
Line 61:
Line 62: /**
Line 63: * Sends response to output.
Line 64: * @return void
Line 65: */
Line 66: public function send()
Line 67: {
Line 68: NEnvironment::getHttpResponse()->redirect($this->uri, $this->code);
Line 69: }
Line 70:
Line 71: }
Line 72:
Application/Application.php (152) source ► NRedirectingResponse-> send ()
Line 145:
Line 146: // Send response
Line 147: if ($response instanceof NForwardingResponse) {
Line 148: $request = $response->getRequest();
Line 149: continue;
Line 150:
Line 151: } elseif ($response instanceof IPresenterResponse) {
Line 152: $response->send();
Line 153: }
Line 154: break;
Line 155:
Line 156: } catch (Exception $e) {
Line 157: // fault barrier
Line 158: if ($this->catchExceptions === NULL) {
Line 159: $this->catchExceptions = NEnvironment::isProduction();
app/bootstrap.php (63) source ► NApplication-> run ()
Line 56: 'presenter' => 'Homepage',
Line 57: 'action' => 'default',
Line 58: 'id' => NULL,
Line 59: ));
Line 60:
Line 61:
Line 62: // Step 5: Run the application!
Line 63: $application->run();
Line 64:
public/index.php (13) source ► require (arguments ►)
#0 | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/app/bootstrap.php" (72) |
---|
Line 6: // absolute filesystem path to the application root
Line 7: define('APP_DIR', WWW_DIR . '/../app');
Line 8:
Line 9: // absolute filesystem path to the libraries
Line 10: define('LIBS_DIR', WWW_DIR . '/../libs');
Line 11:
Line 12: // load bootstrap file
Line 13: require APP_DIR . '/bootstrap.php';
Line 14:
array(1) ▼ [
0 => NPresenterRequest(7) ► {
"method" private => "GET" (3)
"flags" private => array(1) ▼ {
"secured" => FALSE
}
"name" private => "Register" (8)
"params" private => array(2) ▼ {
"action" => "default" (7)
"id" => NULL
}
"post" private => array(0)
"files" private => array(0)
"frozen" private => TRUE
}
]
RegisterPresenter(32) ► {
"registrationMessage" => NULL
"controlString" => NULL
"confirmationStatus" => NULL
"oldLayoutMode" => FALSE
"onShutdown" => NULL
"oldModuleMode" => TRUE
"request" private => NPresenterRequest(7) ► {
"method" private => "GET" (3)
"flags" private => array(1) ▼ {
"secured" => FALSE
}
"name" private => "Register" (8)
"params" private => array(2) ▼ {
"action" => "default" (7)
"id" => NULL
}
"post" private => array(0)
"files" private => array(0)
"frozen" private => TRUE
}
"response" private => NRedirectingResponse(2) ▼ {
"uri" private => "http://widget.vyveska.sk/register/" (34)
"code" private => 301
}
"phase" private => 5
"autoCanonicalize" => TRUE
"absoluteUrls" => FALSE
"globalParams" private => array(0)
"globalState" private => NULL
"globalStateSinces" private => array(0)
"action" private => "default" (7)
"view" private => "default" (7)
"layout" private => NULL
"payload" private => stdClass(0)
"signalReceiver" private => ""
"signal" private => NULL
"ajaxMode" private => FALSE
"startupCheck" private => TRUE
"lastCreatedRequest" private => NPresenterRequest(7) ► {
"method" private => "FORWARD" (7)
"flags" private => array(0)
"name" private => "Register" (8)
"params" private => array(2) ▼ {
"action" => "default" (7)
"id" => NULL
}
"post" private => array(0)
"files" private => array(0)
"frozen" private => FALSE
}
"lastCreatedRequestFlag" private => array(1) ▼ {
"current" => TRUE
}
"template" private => NULL
"invalidSnippets" private => array(0)
"params" protected => array(2) ▼ {
"action" => "default" (7)
"id" => NULL
}
"components" private => array(0)
"cloning" private => NULL
"parent" private => NULL
"name" private => "Register" (8)
"monitors" private => array(1) ▼ {
"NPresenter" => array(4) ▼ [
0 => NULL
1 => NULL
2 => NULL
3 => TRUE
]
}
}
WWW_DIR | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public" (61) |
---|---|
APP_DIR | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public/../app" (68) |
LIBS_DIR | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public/../libs" (69) |
NETTE | TRUE |
NETTE_DIR | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette" (65) |
NETTE_VERSION_ID | 906 |
NETTE_PACKAGE | "PHP 5.2 prefixed" (16) |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public/index.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/app/bootstrap.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/loader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/shortcuts.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/exceptions.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/Framework.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/Object.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/ObjectMixin.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/Callback.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Loaders/LimitedScope.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Loaders/AutoLoader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Loaders/NetteLoader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Debug/Debug.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Environment/Environment.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Environment/Configurator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Config/Config.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/Hashtable.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/Collection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/ICollection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/IMap.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Config/ConfigAdapterIni.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Config/IConfigAdapter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/Tools.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/ArrayTools.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Environment/ServiceLocator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Environment/IServiceLocator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Loaders/RobotLoader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Caching/Cache.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Caching/FileStorage.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Caching/ICacheStorage.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/dibi.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/interfaces.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiDateTime.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiObject.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiLazyStorage.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiException.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiConnection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiResult.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiResultIterator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiRow.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiTranslator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiDataSource.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiFluent.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiDatabaseInfo.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/libs/DibiProfiler.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/drivers/mysql.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/dibi/dibi/drivers/mysql.reflector.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Application.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/Session.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/HttpRequest.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/IHttpRequest.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/UriScript.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/Uri.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/FreezableObject.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/String.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/HttpResponse.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Web/IHttpResponse.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Routers/MultiRouter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/ArrayList.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Collections/IList.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IRouter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Routers/Route.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Reflection/ClassReflection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Reflection/PropertyReflection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/PresenterRequest.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/PresenterLoader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IPresenterLoader.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/app/presenters/RegisterPresenter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/app/presenters/BasePresenter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Presenter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Control.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/PresenterComponent.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/ComponentModel/ComponentContainer.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/ComponentModel/Component.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/ComponentModel/IComponent.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/ComponentModel/IComponentContainer.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/ISignalReceiver.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IStatePersistent.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IRenderable.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IPresenter.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/PresenterComponentReflection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Reflection/AnnotationsParser.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Utils/Iterators/InstanceFilterIterator.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Reflection/MethodReflection.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Responses/RedirectingResponse.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/IPresenterResponse.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Application/Exceptions/AbortException.php |
/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/libs/Nette/Debug/templates/bluescreen.phtml |
REDIRECT_SCRIPT_URL | "/register" (9) |
---|---|
REDIRECT_SCRIPT_URI | "http://widget.vyveska.sk/register" (33) |
REDIRECT_APPLICATION_ENV | "production" (10) |
REDIRECT_STATUS | "200" (3) |
SCRIPT_URL | "/register" (9) |
SCRIPT_URI | "http://widget.vyveska.sk/register" (33) |
APPLICATION_ENV | "production" (10) |
HTTP_ACCEPT | "*/*" (3) |
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" (103) |
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate" (23) |
HTTP_HOST | "widget.vyveska.sk" (17) |
PATH | "/sbin:/usr/sbin:/bin:/usr/bin" (29) |
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache/2.2.22 (@RELEASE@)" (25) |
SERVER_NAME | "widget.vyveska.sk" (17) |
SERVER_ADDR | "62.168.94.164" (13) |
SERVER_PORT | "80" (2) |
REMOTE_ADDR | "3.146.206.117" (13) |
DOCUMENT_ROOT | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public" (61) |
SERVER_ADMIN | "info@vyveska.sk" (15) |
SCRIPT_FILENAME | "/data/www/www.vyveska.sk/public_html/widget.vyveska.sk/public/index.php" (71) |
REMOTE_PORT | "26344" (5) |
REDIRECT_URL | "/register" (9) |
GATEWAY_INTERFACE | "CGI/1.1" (7) |
SERVER_PROTOCOL | "HTTP/1.1" (8) |
REQUEST_METHOD | "GET" (3) |
QUERY_STRING | "" |
REQUEST_URI | "/register" (9) |
SCRIPT_NAME | "/index.php" (10) |
PHP_SELF | "/index.php" (10) |
REQUEST_TIME_FLOAT | 1734797848.137 |
REQUEST_TIME | 1734797848 |
accept | */* |
---|---|
user-agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
accept-encoding | gzip, br, zstd, deflate |
host | widget.vyveska.sk |
empty
empty
empty
Set-Cookie: PHPSESSID=1vdumg407e1f2kh2r0io9rcgcp08j4t7; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=1vdumg407e1f2kh2r0io9rcgcp08j4t7; path=/; httponly
Set-Cookie: nette-browser=0.44037146064273; path=/; httponly
X-Powered-By: Nette Framework
Content-type: text/html; charset=UTF-8