Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/AppController.php, line 65]Code Context }
private function __preferedLanguage() {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
AppController::__preferedLanguage() - APP/Controller/AppController.php, line 65
AppController::beforeFilter() - APP/Controller/AppController.php, line 55
PostsController::beforeFilter() - APP/Controller/PostsController.php, line 28
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 118
Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/AppController.php, line 65]Code Context }
private function __preferedLanguage() {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
AppController::__preferedLanguage() - APP/Controller/AppController.php, line 65
AppController::beforeFilter() - APP/Controller/AppController.php, line 55
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 676
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 155
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 92
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ??
Warning (2): Cannot modify header information - headers already sent by (output started at /home/nvotc591nv/public_html/lib/Cake/Utility/Debugger.php:801) [CORE/Cake/Network/CakeResponse.php, line 448]Code Context $name, $c['value'], $c['expire'], $c['path'],
$c['domain'], $c['secure'], $c['httpOnly']
);
$name = 'CakeCookie[lang]'
$c = array(
'name' => 'CakeCookie[lang]',
'value' => 'vn',
'expire' => '1715829415',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false
)
setcookie - [internal], line ??
CakeResponse::_setCookies() - CORE/Cake/Network/CakeResponse.php, line 448
CakeResponse::send() - CORE/Cake/Network/CakeResponse.php, line 418
Controller::redirect() - CORE/Cake/Controller/Controller.php, line 794
AppExceptionRenderer::notFound() - APP/Lib/Error/AppExceptionRenderer.php, line 6
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 187
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ??