PHP error

Function get_magic_quotes_gpc() is deprecated

/data/sites/web/climateinnovationsgroupnl/www/framework/web/CHttpRequest.php(120)

108         parent::init();
109         $this->normalizeRequest();
110     }
111 
112     /**
113      * Normalizes the request data.
114      * This method strips off slashes in request data if get_magic_quotes_gpc() returns true.
115      * It also performs CSRF validation if {@link enableCsrfValidation} is true.
116      */
117     protected function normalizeRequest()
118     {
119         // normalize request
120         if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
121         {
122             if(isset($_GET))
123                 $_GET=$this->stripSlashes($_GET);
124             if(isset($_POST))
125                 $_POST=$this->stripSlashes($_POST);
126             if(isset($_REQUEST))
127                 $_REQUEST=$this->stripSlashes($_REQUEST);
128             if(isset($_COOKIE))
129                 $_COOKIE=$this->stripSlashes($_COOKIE);
130         }
131 
132         if($this->enableCsrfValidation)

Stack Trace

#3
+
 /data/sites/web/climateinnovationsgroupnl/www/public_html/protected/extensions/langhandler/ELangHandler.php(13): CApplication->getRequest()
08         array_push($this->languages, Yii::app()->getLanguage());
09         $this->parseLanguage();
10     }
11 
12     private function parseLanguage() {
13         Yii::app()->urlManager->parseUrl(Yii::app()->getRequest());
14         // primary set language to lang parameter
15         if(!isset($_GET['lang'])) {
16             // secondary set language to preferred language in browser if set in configuration
17             if(Yii::app()->config->get('general_language_preferred')) {
18                 $defaultLang = substr(Yii::app()->getRequest()->getPreferredLanguage(), 0, 2);            
#4
+
 /data/sites/web/climateinnovationsgroupnl/www/public_html/protected/extensions/langhandler/ELangHandler.php(9): ELangHandler->parseLanguage()
04 class ELangHandler extends CApplicationComponent {
05     public $languages = array();    
06     public function init() {
07         $this->languages = CHtml::listData(Language::model()->findAllByAttributes(array('enabled'=>true)), 'id', 'code');        
08         array_push($this->languages, Yii::app()->getLanguage());
09         $this->parseLanguage();
10     }
11 
12     private function parseLanguage() {
13         Yii::app()->urlManager->parseUrl(Yii::app()->getRequest());
14         // primary set language to lang parameter
#9
+
 /data/sites/web/climateinnovationsgroupnl/www/public_html/index.php(21): YiiBase::createApplication("CMyWebApplication", "/data/sites/web/climateinnovationsgroupnl/www/public_html/protec...")
16 
17 require_once($yii);
18 require_once(dirname(__FILE__).'/protected/config/CMyWebApplication.php');
19 
20 Yii::beginProfile('app');
21 Yii::createApplication('CMyWebApplication', $config)->run();
22 Yii::endProfile('app');
2024-03-28 22:52:40 Apache Yii Framework/1.1.12