CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'tblwebkontent_tampilhome' at row 1. The SQL statement executed was: UPDATE `tblwebkontent` SET `tblwebkontent_id`=:yp0, `tblwebmenu_id`=:yp1, `tblwebmodul_id`=:yp2, `tblwebkontent_judul`=:yp3, `tblwebkontent_isi`=:yp4, `tblwebkontent_file`=:yp5, `tblwebkontent_klik`=:yp6, `tblwebkontent_sysinsert`=:yp7, `tblwebkontent_mode`=:yp8, `tblpengguna_id`=:yp9, `tblwebkontent_status`=:yp10, `tblwebkontent_isadafile`=:yp11, `tblwebkontent_like`=:yp12, `tblwebkontent_tampilhome`=:yp13 WHERE `tblwebkontent`.`tblwebkontent_id`=138

/home/dinasppkbwng/public_html/framework/db/CDbCommand.php(358)

346         {
347             if($this->_connection->enableProfiling)
348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349 
350             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
351             $message=$e->getMessage();
352             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
353                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
354 
355             if(YII_DEBUG)
356                 $message.='. The SQL statement executed was: '.$this->getText().$par;
357 
358             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
359                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
360         }
361     }
362 
363     /**
364      * Executes the SQL statement and returns query result.
365      * This method is for executing an SQL query that returns result set.
366      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
367      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
368      * them in this way can improve the performance. Note that if you pass parameters in this way,
369      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
370      * Please also note that all values are treated as strings in this case, if you need them to be handled as

Stack Trace

#3
+
 /home/dinasppkbwng/public_html/protected/views/web/detail.php(7): CActiveRecord->save()
02 <?php if ($jumlah_kontent>0): ?>
03     <?php 
04     $id = Yii::app()->request->getParam('id');
05     $model = WebKontent::model()->findByPk($id);
06     $model->tblwebkontent_klik = $model_kontent['tblwebkontent_klik']+1;
07     $model->save();
08     ?>
09     <div class="col-sm-16 business  wow fadeInDown animated" data-wow-delay="1s" data-wow-offset="50">
10         <div class="row">
11             <div class="col-md-16 col-sm-16">
12                 <center><h1><?php echo $model_kontent['tblwebkontent_judul']; ?></h1></center>
#8
+
 /home/dinasppkbwng/public_html/protected/controllers/WebController.php(97): CController->render("detail", array("model_kontent" => WebKontent))
092 
093     public function actionDetail()
094     {
095         $id = Yii::app()->request->getParam('id');
096         $model_kontent = WebKontent::model()->findByPk($id);
097         $this->render('detail', array('model_kontent' =>$model_kontent));
098     }
099 
100 
101 
102     public function actionAduan()
#16
+
 /home/dinasppkbwng/public_html/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2019-10-17 04:55:28 Apache Yii Framework/1.1.15