PHP error

Function mcrypt_create_iv() is deprecated

C:\inetpub\wwwroot\limesurvey\framework\base\CSecurityManager.php(402)

390      */
391     public function generateRandomBytes($length,$cryptographicallyStrong=true)
392     {
393         $bytes='';
394         if(function_exists('openssl_random_pseudo_bytes'))
395         {
396             $bytes=openssl_random_pseudo_bytes($length,$strong);
397             if($this->strlen($bytes)>=$length && ($strong || !$cryptographicallyStrong))
398                 return $this->substr($bytes,0,$length);
399         }
400 
401         if(function_exists('mcrypt_create_iv') &&
402             ($bytes=mcrypt_create_iv($length, MCRYPT_DEV_URANDOM))!==false &&
403             $this->strlen($bytes)>=$length)
404         {
405             return $this->substr($bytes,0,$length);
406         }
407 
408         if(($file=@fopen('/dev/urandom','rb'))!==false &&
409             ($bytes=@fread($file,$length))!==false &&
410             (fclose($file) || true) &&
411             $this->strlen($bytes)>=$length)
412         {
413             return $this->substr($bytes,0,$length);
414         }

Stack Trace

#4
+
 C:\inetpub\wwwroot\limesurvey\application\views\admin\authentication\login.php(32): CHtml::form(array("admin/authentication/sa/login"), "post", array("id" => "loginform", "name" => "loginform"))
27                        <h3><?php eT("Log in");?></h3>
28                     </div>
29                 </div>
30 
31                 <!-- Form -->
32                 <?php echo CHtml::form(array('admin/authentication/sa/login'), 'post', array('id'=>'loginform', 'name'=>'loginform'));?>
33                     <div class="row login-content login-content-form">
34                         <div class="col-lg-12">
35                             <?php
36                                 $pluginNames = array_keys($pluginContent);
37                                 if (!isset($defaultAuth))
#8
+
 C:\inetpub\wwwroot\limesurvey\application\core\Survey_Common_Action.php(267): CController->renderPartial("/admin/authentication/login", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), true)
262         // Load views
263         $content = "";
264         foreach ($aViewUrls as $sViewKey => $viewUrl) {
265             if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
266                 if (is_numeric($sViewKey)) {
267                     $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
268                 } elseif (is_array($viewUrl)) {
269                     foreach ($viewUrl as $aSubData) {
270                         $aSubData = array_merge($aData, $aSubData);
271                         $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
272                     }
#9
+
 C:\inetpub\wwwroot\limesurvey\application\core\Survey_Common_Action.php(338): Survey_Common_Action->renderCentralContents("authentication", array("login"), array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...))
333             }
334         } else {
335             $renderFile = $basePath.'/'.$sRenderFile;
336         }
337 
338         $content = $this->renderCentralContents($sAction, $aViewUrls, $aData);
339         $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true);
340 
341         App()->getClientScript()->render($out);
342         echo $out;
343     }
2018-02-14 13:35:21 Microsoft-IIS/7.5 Yii Framework/1.1.18