ErrorException [ Notice ]: Undefined index: HTTP_ACCEPT_LANGUAGE

DOCROOT/non-public/inzite/classes/Inzite/Controller/Template.php [ 68 ]

63 		// No locale in URL
64 		$sUrl = $this->sRequestUrl;
65 		$bDownloadUrl = str_contains($this->sRequestUrl, 'download/getFile');
66 
67 		if ($bDownloadUrl === false && $this->bLocaleInUrl === false && Config::get('site.locale.in.url') == 'true') {
68 			$sLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
69 			$iLocaleId = (int)array_search($sLanguage, $this->aLanguages);
70 			if ($iLocaleId === 0) {
71 				$iLocaleId = $this->iLocaleIdDefault;
72 			}
73 			$this->iLocaleId = $iLocaleId;
  1. DOCROOT/non-public/inzite/classes/Inzite/Controller/Template.php [ 68 ] » Kohana_Core::error_handler( arguments )

  2. APPPATH/classes/Controller/Template.php [ 5 ] » Inzite_Controller_Template->before( )

  3. DOCROOT/non-public/inzite/classes/Inzite/Controller/Page.php [ 19 ] » Controller_Template->before( )

  4. SYSPATH/classes/Kohana/Controller.php [ 71 ] » Inzite_Controller_Page->before( )

  5. {PHP internal call} » Kohana_Controller->execute( )

  6. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 93 ] » ReflectionMethod->invoke( arguments )

  7. SYSPATH/classes/Kohana/Request/Client.php [ 116 ] » Kohana_Request_Client_Internal->execute_request( arguments )

  8. SYSPATH/classes/Kohana/Request.php [ 933 ] » Kohana_Request_Client->execute( arguments )

  9. DOCROOT/public/index.php [ 89 ] » Kohana_Request->execute( )

Environment