Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/UsersController.php, line 60]Code Context // Set language
$this->lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$this->lang = $this->getRequest()->getQuery('lang');
$event = object(Cake\Event\Event) {
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(App\Controller\UsersController) {}
[protected] _data => []
[protected] _stopped => false
}
App\Controller\UsersController::beforeFilter() - APP/Controller/UsersController.php, line 60
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 353
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 330
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 114
Cake\Controller\Controller::startupProcess() - CORE/src/Controller/Controller.php, line 658
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 115
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 232
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 103
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 163
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Warning (512): Unable to emit headers. Headers sent in file=/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
} else {
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 853
$message = 'Unable to emit headers. Headers sent in file=/home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php line=853'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'Found'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 177]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '445570304a8a8275c3f414e85cbe7eadad12a29efc587330e3fc5bac4e0c12e8d8f01466db55bc856ab249869121678504ae54df69b8531edd6981bb65cfc2c9',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'sv',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1763725274'
]
]
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 177]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '445570304a8a8275c3f414e85cbe7eadad12a29efc587330e3fc5bac4e0c12e8d8f01466db55bc856ab249869121678504ae54df69b8531edd6981bb65cfc2c9',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'sv',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1763725274'
]
]
$values = [
(int) 0 => 'https://dev.user.s2p.fi/users/try'
]
$name = 'Location'
$first = true
$value = 'https://dev.user.s2p.fi/users/try'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 177
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 206]Code Context $cookie['secure'],
$cookie['httpOnly']
);
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '445570304a8a8275c3f414e85cbe7eadad12a29efc587330e3fc5bac4e0c12e8d8f01466db55bc856ab249869121678504ae54df69b8531edd6981bb65cfc2c9',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'sv',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1763725274'
]
]
$cookie = [
'name' => 'csrfToken',
'value' => '445570304a8a8275c3f414e85cbe7eadad12a29efc587330e3fc5bac4e0c12e8d8f01466db55bc856ab249869121678504ae54df69b8531edd6981bb65cfc2c9',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/miko/user_dev/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 206]Code Context $cookie['secure'],
$cookie['httpOnly']
);
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '445570304a8a8275c3f414e85cbe7eadad12a29efc587330e3fc5bac4e0c12e8d8f01466db55bc856ab249869121678504ae54df69b8531edd6981bb65cfc2c9',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
],
'language' => [
'name' => 'language',
'value' => 'sv',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1763725274'
]
]
$cookie = [
'name' => 'language',
'value' => 'sv',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false,
'expire' => '1763725274'
]
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40