PHP notice

Undefined variable: class_id

/home2/greenlawnasia/public_html/source/system/general_item.php(159)

147                 $url = $url_prefix.$this->data['router_method'].$url_suffix.'?id='.$class_id.'&page=';
148             }
149         } // isset _GET id
150 
151     } else { // 分項列表
152         $url = $url_prefix.$this->data['router_method'].$url_suffix.'?page=';
153     }
154 
155 
156     if(isset($_GET['id'])){
157         if($common_action_by_categoryurl == '' or $common_action_by_categoryurl == '0'){ // 當層"分類以外"的項目 (預設)
158             $common_content_type = 2;
159             $where['class_id'] = $class_id;
160             if($common_item == 1){ // 是通用分項
161                 $where['type'] = $this->data['router_method'];
162                 $table = 'html';
163             } else { // 獨立分項
164                 $table = $this->data['router_method'];
165             }
166         } elseif($common_action_by_categoryurl == '1'){ // 當層分類,最末層顯示產品
167             $common_content_type = 1;
168             if($common_category == 1){ // 是通用分類
169                 $where['type'] = $this->data['router_method'].'type';
170                 $where['class_id'] = $_GET['id'];
171                 $table = 'html';

Stack Trace

#0
+
 /home2/greenlawnasia/public_html/layoutv3/pre_render_other.php(20): include("/home2/greenlawnasia/public_html/source/system/general_item.php")
15 
16     if(isset($this->data['need_flattened']) and $this->data['need_flattened'] === true){
17         $CCCCCCCCCCCCCCCCCCCC.='?'.'>'.file_get_contents(_BASEPATH.'/../'.LAYOUTV3_PATH.'source/'.$tmp2_gggggg['source'].'.php')."\n";
18     }
19 
20     include _BASEPATH.'/../'.LAYOUTV3_PATH.'source/'.$tmp2_gggggg['source'].'.php';
21 }
#1
+
 /home2/greenlawnasia/public_html/layoutv3/pre_render.php(349): include("/home2/greenlawnasia/public_html/layoutv3/pre_render_other.php")
344                     }
345                 }
346 
347             // 沒有下條件的情況
348             } else {
349                 include 'pre_render_other.php';
350             }
351         }
352 
353         if(count($layoutv3_struct) == ($k_gggggg+1)){
354             // 最後一筆不輸出囉,因為也沒什麼意義
#2
+
 /home2/greenlawnasia/public_html/parent/news.php(70): include("/home2/greenlawnasia/public_html/layoutv3/pre_render.php")
65 
66     // 結尾的程式碼,通常都放這裡
67     'share-end',
68 );
69 
70 include 'layoutv3/pre_render.php';
71 // include 'layoutv3/print_struct.php';
72 
73 include 'layoutv3/render.php';
2024-03-29 15:53:34 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.17