CException

GD with FreeType or ImageMagick PHP extensions are required.

/var/www/gugo.vn/public_html/common/lib/Yii/web/widgets/captcha/CCaptcha.php(91)

079 
080     /**
081      * Renders the widget.
082      */
083     public function run()
084     {
085         if(self::checkRequirements('imagick') || self::checkRequirements('gd'))
086         {
087             $this->renderImage();
088             $this->registerClientScript();
089         }
090         else
091             throw new CException(Yii::t('yii','GD with FreeType or ImageMagick PHP extensions are required.'));
092     }
093 
094     /**
095      * Renders the CAPTCHA image.
096      */
097     protected function renderImage()
098     {
099         if(!isset($this->imageOptions['id']))
100             $this->imageOptions['id']=$this->getId();
101 
102         $url=$this->getController()->createUrl($this->captchaAction,array('v'=>uniqid()));
103         $alt=isset($this->imageOptions['alt'])?$this->imageOptions['alt']:'';

Stack Trace

#1
+
 /var/www/gugo.vn/public_html/protected/modules/site/views/request/_form.php(93): CBaseController->widget("CCaptcha", array("buttonLabel" => "<i class="ico ico-refrest"></i>", "imageOptions" => array("height" => "34px")))
88                         $this->widget('CCaptcha', array(
89                             'buttonLabel' => '<i class="ico ico-refrest"></i>',
90                             'imageOptions' => array(
91                                 'height' => '34px',
92                             ),
93                         ));
94                         ?>
95                     </span>
96                 </div>
97                 <div>
98                     <?php echo $form->error($model, 'captcha'); ?>
#5
+
 /var/www/gugo.vn/public_html/protected/modules/site/views/request/create.php(7): CController->renderPartial("_form", array("model" => Requests))
2     <h2><?php echo Yii::t('request', 'request_text'); ?></h2>
3     <p class="reqest-notice"><?php echo Yii::t('request', 'request_notice'); ?></p>
4     <?php
5     $this->renderPartial('_form', array(
6         'model' => $model,
7     ));
8     ?>
9 </div>
#9
+
 /var/www/gugo.vn/public_html/protected/components/PublicController.php(93): CController->renderPartial("create", array("model" => Requests), true)
88     //
89     public function render($view, $data = null, $return = false) {
90         if ($this->beforeRender($view)) {
91             Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/web3nhat.min.js?v=' . VERSION, CClientScript::POS_END);
92             Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/main.min.css?v=' . VERSION);
93             $output = $this->renderPartial($view, $data, true);
94             $output.= $this->widget('common.widgets.managerwidget.managerwidget', array(), true);
95             $output.= $this->widget('common.widgets.statistic.statistic', array(), true);
96             // widget nhận thông báo
97             $output.= $this->widget('Flashes', array(), true);
98             // add custom style to out put
2024-03-28 15:44:02 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips SVN/1.7.14 PHP/7.4.33 Yii Framework/1.1.16