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, `tblwebkontent_tipe`=:yp9, `tblpengguna_id`=:yp10, `tblwebkontent_status`=:yp11, `tblwebkontent_isadafile`=:yp12, `tblwebkontent_tampilhome`=:yp13 WHERE `tblwebkontent`.`tblwebkontent_id`=137

/home/baperlitbang/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/baperlitbang/public_html/protected/views/web/detail.php(19): CActiveRecord->save()
14                 <?php if ($jumlah_kontent>0): ?>
15                     <?php 
16                         $id = Yii::app()->request->getParam('id');
17                         $model = WebKontent::model()->findByPk($id);
18                         $model->tblwebkontent_klik = $model_kontent['tblwebkontent_klik']+1;
19                         $model->save();
20                     ?>
21 
22                 <div>
23                 <center><h3><b><?php echo $model_kontent['tblwebkontent_judul']; ?></b></h3></center>
24                 <br />
#8
+
 /home/baperlitbang/public_html/protected/controllers/WebController.php(88): CController->render("detail", array("model_kontent" => WebKontent))
83 
84     public function actionDetail()
85     {
86         $id = Yii::app()->request->getParam('id');
87         $model_kontent = WebKontent::model()->findByPk($id);
88         $this->render('detail', array('model_kontent' =>$model_kontent));
89     }
90 
91 
92 
93     public function actionAduan()
#16
+
 /home/baperlitbang/public_html/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2020-07-06 14:42:14 Apache Yii Framework/1.1.15