PHP error

Function get_magic_quotes_gpc() is deprecated

/var/www/survey/framework/web/CHttpRequest.php(130)

118         parent::init();
119         $this->normalizeRequest();
120     }
121 
122     /**
123      * Normalizes the request data.
124      * This method strips off slashes in request data if get_magic_quotes_gpc() returns true.
125      * It also performs CSRF validation if {@link enableCsrfValidation} is true.
126      */
127     protected function normalizeRequest()
128     {
129         // normalize request
130         if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
131         {
132             if(isset($_GET))
133                 $_GET=$this->stripSlashes($_GET);
134             if(isset($_POST))
135                 $_POST=$this->stripSlashes($_POST);
136             if(isset($_REQUEST))
137                 $_REQUEST=$this->stripSlashes($_REQUEST);
138             if(isset($_COOKIE))
139                 $_COOKIE=$this->stripSlashes($_COOKIE);
140         }
141 
142         if($this->enableCsrfValidation)

Stack Trace

#0
+
 /var/www/survey/application/core/LSHttpRequest.php(147): CHttpRequest->normalizeRequest()
142         return false;  
143     }
144 
145     protected function normalizeRequest()
146     {
147         parent::normalizeRequest();
148 
149         if (!isset($_SERVER['REQUEST_METHOD']) || $_SERVER['REQUEST_METHOD'] != 'POST') {
150             return;
151         }
152 
#5
+
 /var/www/survey/application/core/LSYii_Application.php(95): CWebApplication->init()
090     }
091 
092     /* @inheritdoc */
093     public function init()
094     {
095         parent::init();
096         $this->initLanguage();
097         // These take care of dynamically creating a class for each token / response table.
098         Yii::import('application.helpers.ClassFactory');
099         ClassFactory::registerClass('Token_', 'Token');
100         ClassFactory::registerClass('Response_', 'Response');
#7
+
 /var/www/survey/application/core/LSYii_Application.php(77): CApplication->__construct(array("name" => "LimeSurvey", "localeClass" => "LSYii_Locale", "defaultController" => "surveys", "params" => array("defaultPageSize" => 10, "pageSizeOptions" => array(5 => 5, 10 => 10, 20 => 20, 50 => 50, ...), "pageSizeOptionsTokens" => array(5 => 5, 10 => 10, 25 => 25, 50 => 50, ...), "defaultEllipsizeHeaderValue" => 30, ...), ...))
72         if (!isset($aApplicationConfig['runtimePath'])) {
73             $aApplicationConfig['runtimePath'] = $baseConfig['tempdir'].DIRECTORY_SEPARATOR.'runtime';
74         } /* No need to test runtimePath validity : Yii return an exception without issue */
75 
76         /* Construct CWebApplication */
77         parent::__construct($aApplicationConfig);
78 
79         /* Because we have app now : we have to call again the config (usage of Yii::app() for publicurl) */
80         $this->setConfigs();
81 
82         /* Update asset manager path and url only if not directly set in aApplicationConfig (from config.php),
2024-03-29 06:43:18 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.19