CDbException

Column name must be either a string or an array.

/home/beraukab/public_html/dpmptsp/framework/db/schema/CDbCommandBuilder.php(828)

816             }
817             if(count($values)===1)
818             {
819                 $entries=array();
820                 foreach($values[0] as $name=>$value)
821                     $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value);
822                 return implode(' AND ',$entries);
823             }
824 
825             return $this->createCompositeInCondition($table,$values,$prefix);
826         }
827         else
828             throw new CDbException(Yii::t('yii','Column name must be either a string or an array.'));
829     }
830 
831     /**
832      * Generates the expression for selecting rows with specified composite key values.
833      * @param CDbTableSchema $table the table schema
834      * @param array $values list of primary key values to be selected within
835      * @param string $prefix column prefix (ended with dot)
836      * @return string the expression for selection
837      */
838     protected function createCompositeInCondition($table,$values,$prefix)
839     {
840         $keyNames=array();

Stack Trace

#2
+
 /home/beraukab/public_html/dpmptsp/protected/models/AllFunction.php(335): CActiveRecord->findByPk("7")
330         return $data;
331     }
332 
333     public function getDataBeritaFoto($id)
334     {
335         $model= WebKontent::model()->findByPk($id);
336         
337         return $model;
338     }
339 
340     public function getGallery()
#3
+
 /home/beraukab/public_html/dpmptsp/protected/views/web/detail_beritafoto.php(22): AllFunction->getDataBeritaFoto("7")
17                     <img class="img-responsive" src="<?php echo Yii::app()->baseUrl; ?>/upload/kontent/<?php echo $foto['tblwebkontentdownload_file'] ?>" width="100%" style="height:350px;">
18                 </div> <!-- .box-img -->
19             </div> <!-- .col-md-4 -->
20         <?php endforeach ?>
21         </div>
22         <?php $isi = AllFunction::model()->getDataBeritaFoto($id); ?>
23         <h5 align="center"><?php echo $isi['tblwebkontent_judul'] ?> </h5>
24         <p><?php echo $isi['tblwebkontent_isi'] ?></p>
25     </div>
26 </div>
#8
+
 /home/beraukab/public_html/dpmptsp/protected/controllers/WebController.php(1232): CController->render("detail_beritafoto", array("model_kontent" => null, "id" => "7"))
1227     $this->webconfig = WebConfig::model()->find();
1228     $this->modemenu = $this->action->id; 
1229     $id = Yii::app()->request->getParam('id');
1230     $model_kontent = WebKontent::model()->find('tblwebmenu_id=:idmenu', array(':idmenu'=>$id));
1231     //$this->modemenu = Yii::app()->request->getParam('dummy');
1232     $this->render('detail_beritafoto', array('model_kontent' =>$model_kontent, 'id'=>$id));
1233 }
1234 public function actiondetail_artikel()
1235 {
1236     $this->render('detail_artikel');
1237 }
2019-04-21 13:10:49 Apache Yii Framework/1.1.15