PHP notice

Undefined index: provinsi_asal

/var/www/html/protected/controllers/SiteController.php(674)

662                             // $mat->komoditas = $_GET['komoditas'];
663                             $mat->result[] = array(
664                                 'vol'=>$q['total_volume'],
665                                 'name'=>$city->name,
666                                 'coord'=>array('lat'=>$city->lat, 'lng'=>$city->lng)
667                             );
668                         }
669                     }
670                 }
671                 break;
672 
673                 case "single_provinsi":{
674                     $province = Province::model()->findByAttributes(array('name'=>$_GET['provinsi_asal']));
675 
676                     if($province){
677                         $mat = new StdClass;
678                         $mat->result = [];
679 
680                         foreach($province->cities as $city){
681                             $q = Yii::app()->db->createCommand()
682                             ->select('COALESCE(SUM(volume),0) AS total_volume')
683                             ->from('app_mat_pairwise')
684                             ->where('kota_tujuan=:tujuan AND tahun=:tahun', array(
685                                 ':tujuan'=>$city->name,
686                                 ':tahun'=>$_GET['tahun']

Stack Trace

#0
+
 /var/www/html/protected/controllers/SiteController.php(321): SiteController->htmlKonsumsi(array(array("komoditas" => null)))
316                     $content = $this->htmlProduksi($groups);
317                 }
318                 break;
319 
320                 case "konsumsi":{
321                     $content = $this->htmlKonsumsi($groups);
322                 }
323                 break;
324 
325                 case "pergerakan":{
326                     $content = $this->htmlPergerakan($groups);
#10
+
 /var/www/html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 10:37:09 Apache/2.4.29 (Ubuntu) Yii Framework/1.1.14