Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/AppController.php, line 45]Code Context $this->set('color', $color);
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$color = (int) 1
AppController::beforeFilter() - APP/Controller/AppController.php, line 45
LanguagesController::beforeFilter() - APP/Controller/LanguagesController.php, line 5
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 676
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111
Notice (8): Undefined index: HTTP_REFERER [APP/Controller/LanguagesController.php, line 14]Code Context $this->Session->write('language', $language);
header('Location: '.$_SERVER['HTTP_REFERER']);
$language = 'en'
LanguagesController::set_language() - APP/Controller/LanguagesController.php, line 14
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/h165726.web40.servicehoster.ch/web01/htdocs/lib/Cake/Utility/Debugger.php:800) [APP/Controller/LanguagesController.php, line 14]Code Context $this->Session->write('language', $language);
header('Location: '.$_SERVER['HTTP_REFERER']);
$language = 'en'
header - [internal], line ??
LanguagesController::set_language() - APP/Controller/LanguagesController.php, line 14
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111