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_tampilhome`=:yp12 WHERE `tblwebkontent`.`tblwebkontent_id`=18

/home/dpmptspbjb/public_html/versi1.1/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/dpmptspbjb/public_html/versi1.1/protected/views/web/detail.php(17): CActiveRecord->save()
12         FROM
13         tblwebkomentar
14         WHERE
15         tblwebkontent_id = ".$idkontent."
16         ")->queryAll();
17     $model->save();
18     $tanggal_post = AllFunction::model()->TanggalIndo(date('Y-m-d', strtotime($model_kontent['tblwebkontent_sysinsert'])));
19     ?>
20 <div class="well">
21     <h2><?php echo $model_kontent['tblwebkontent_judul']; ?></h2>
22     <p><span class="glyphicon glyphicon-time"></span> Posted on <?php echo $tanggal_post['tglbulan_lengkap']; ?></p>
#8
+
 /home/dpmptspbjb/public_html/versi1.1/protected/controllers/WebController.php(91): CController->render("detail", array("model_kontent" => WebKontent))
86     public function actionDetail()
87     {
88         $id = Yii::app()->request->getParam('id');
89         $model_kontent = WebKontent::model()->findByPk($id);
90         //print_r($model_kontent);die();
91         $this->render('detail', array('model_kontent' =>$model_kontent));
92     }
93 
94     public function actionSlideFoto()
95     {
96         $data['list'] = Yii::app()->db->createCommand("
#16
+
 /home/dpmptspbjb/public_html/versi1.1/index.php(16): CApplication->run()
11 defined('YII_DEBUG') or define('YII_DEBUG',true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2018-09-22 20:45:33 Apache Yii Framework/1.1.15