Warning: file_get_contents(http://ip-api.com/json/216.73.216.151?fields=status,message,country,countryCode): failed to open stream: HTTP request failed! in /var/www/html/indexy.php on line 51
PHP warning

PHP warning

Cannot modify header information - headers already sent by (output started at /var/www/html/indexy.php:51)

/var/www/html/protected/components/FController.php(50)

38                 'users'=>array('@'),
39             ),
40             array('deny',
41                 'users'=>array('*'),
42             ),
43             */
44         );
45         
46     } 
47     
48     
49     public function init(){
50         header('Content-Type: text/html; charset=utf-8');
51         
52     $this->siteOptions=Options::getOptions('global'); //Настройки сайта
53         $this->language=Language::getId();
54     $this->metaArray=Metatags::getBaseMetaTag(); //Базовые метатеги
55         
56         Yii::$classMap = array_merge(Yii::$classMap, array(
57             'CaptchaExtendedAction' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedAction.php',
58             'CaptchaExtendedValidator' => Yii::getPathOfAlias('ext.captchaExtended').DIRECTORY_SEPARATOR.'CaptchaExtendedValidator.php'
59         ));
60     }
61     
62     

Stack Trace

#0
+
 /var/www/html/protected/components/FController.php(50): header("Content-Type: text/html; charset=utf-8")
45         
46     } 
47     
48     
49     public function init(){
50         header('Content-Type: text/html; charset=utf-8');
51         
52     $this->siteOptions=Options::getOptions('global'); //Настройки сайта
53         $this->language=Language::getId();
54     $this->metaArray=Metatags::getBaseMetaTag(); //Базовые метатеги
55         
#4
+
 /var/www/html/protected/components/WebApplicationEndBehavior.php(26): CApplication->run()
21         // Attach the changeModulePaths event handler
22         // and raise it.
23         $this->onModuleCreate = array($this, 'changeModulePaths');
24         $this->onModuleCreate(new CEvent($this->owner));
25  
26         $this->owner->run(); // Run application.
27     }
28  
29     // This event should be raised when CWebApplication
30     // or CWebModule instances are being initialized.
31     public function onModuleCreate($event)
#7
+
 /var/www/html/indexy.php(176): CComponent->__call("runEnd", array("front"))
171 // Remove the following lines when in production mode
172 defined('YII_DEBUG') or define('YII_DEBUG', true);
173 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
174  
175 require_once($yii);
176 Yii::createWebApplication($config)->runEnd('front');
177 
178 if(isset($_GET['t'])){
179 echo 123;
180   die();
181 }
2026-06-30 13:46:06 Apache/2.4.25 (Debian) Yii Framework/1.1.12