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/controllers/WebController.php(52): CActiveRecord->findByPk("47")
47 
48     public function actionPage()
49     {        
50         $this->webconfig = WebConfig::model()->find();
51         $idmenu = Yii::app()->request->getParam('id');
52         $idmodul = Webmenu::model()->findByPk($idmenu)->tblwebmodul_id;
53         $model_modul = WebModul::model()->findByPk($idmodul);
54         $this->namamodul = $model_modul['tblwebmodul_file'];
55 
56         $this->render('page');
57     }
#10
+
 /home/beraukab/public_html/dpmptsp/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-02-24 00:41:52 Apache Yii Framework/1.1.15