PHP notice Undefined index: HTTP_ACCEPT_ENCODING /www/CILMD/protected/filters/html/ECompressHtmlFilter.php(60) 48 } 49 50 protected function preFilter($filterChain) { 51 $this->actions = str_replace(' ', '', strtolower($this->actions)); 52 $actionId = $filterChain->action->id; 53 54 if ($this->actions != '*' && $this->actions != 'all' && !in_array($actionId, explode(',', $this->actions))) { 55 $this->doCompress = false; 56 return parent::preFilter($filterChain); 57 } 58 59 if ($this->gzip) { 60 if (!self::isBuggyIe() && substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')){ 61 @ob_start ('ob_gzhandler'); 62 header('Content-type: text/html; charset: '.Yii::app()->charset); 63 header('Cache-Control: must-revalidate'); 64 header("Expires: " . gmdate('D, d M Y H:i:s', time() - 1) . ' GMT'); 65 } else { 66 ob_start(); 67 $this->gzip = false; 68 } 69 } else { 70 ob_start(); 71 } 72 Stack Trace #0 + /www/yii_1119/framework/web/filters/CFilter.php(38): ECompressHtmlFilter->preFilter(CFilterChain) #1 + /www/yii_1119/framework/web/filters/CFilterChain.php(131): CFilter->filter(CFilterChain) #2 + /www/yii_1119/framework/web/CController.php(291): CFilterChain->run() #3 + /www/yii_1119/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "application.filters.html.ECompressHtmlFilter", "gzip" => true, "actions" => "ALL"))) #4 + /www/yii_1119/framework/web/CWebApplication.php(282): CController->run("") #5 + /www/yii_1119/framework/web/CWebApplication.php(141): CWebApplication->runController("") #6 + /www/yii_1119/framework/base/CApplication.php(185): CWebApplication->processRequest() #7 – /www/CILMD/index.php(13): CApplication->run() 08defined('YII_DEBUG') or define('YII_DEBUG',true); 09// specify how many levels of call stack should be shown in each log message 10defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12require_once($yii); 13Yii::createWebApplication($config)->run(); 2018-08-08 20:49:37 Apache/2.2.26 (Unix) DAV/2 PHP/5.4.24 mod_ssl/2.2.26 OpenSSL/0.9.8y Yii Framework/1.1.19