ErrorException [ Notice ]: Trying to get property of non-object

FCPATH/modules/product/controllers/product.php [ 32 ]

27 
28         $output['cate_info'] = [];
29         if ($this->db->table_exists('product_category') && $this->uri->segment(1) != 'site-admin') {
30             $cate_info = $this->product_front_model->get_category_info($this->curent_lang_id,$cate_id);
31             $output['cate_info'] = [
32                 'subject'           => $cate_info->subject,
33                 'banner_title'      => $cate_info->banner_title,
34                 'image_cover_title' => !empty($cate_info->image_cover_title) ? base_url('uploads/product_category/'.$cate_info->image_cover_title) : '',
35                 'url_slug'          => $cate_info->url_slug,
36             ];
37         }
  1. FCPATH/modules/product/controllers/product.php [ 32 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » product->category(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 359 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 217 ] » require_once(arguments)

Environment

ErrorException [ Notice ]: Trying to get property of non-object

FCPATH/modules/product/controllers/product.php [ 33 ]

28         $output['cate_info'] = [];
29         if ($this->db->table_exists('product_category') && $this->uri->segment(1) != 'site-admin') {
30             $cate_info = $this->product_front_model->get_category_info($this->curent_lang_id,$cate_id);
31             $output['cate_info'] = [
32                 'subject'           => $cate_info->subject,
33                 'banner_title'      => $cate_info->banner_title,
34                 'image_cover_title' => !empty($cate_info->image_cover_title) ? base_url('uploads/product_category/'.$cate_info->image_cover_title) : '',
35                 'url_slug'          => $cate_info->url_slug,
36             ];
37         }
38 
  1. FCPATH/modules/product/controllers/product.php [ 33 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » product->category(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 359 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 217 ] » require_once(arguments)

Environment

ErrorException [ Notice ]: Trying to get property of non-object

FCPATH/modules/product/controllers/product.php [ 35 ]

30             $cate_info = $this->product_front_model->get_category_info($this->curent_lang_id,$cate_id);
31             $output['cate_info'] = [
32                 'subject'           => $cate_info->subject,
33                 'banner_title'      => $cate_info->banner_title,
34                 'image_cover_title' => !empty($cate_info->image_cover_title) ? base_url('uploads/product_category/'.$cate_info->image_cover_title) : '',
35                 'url_slug'          => $cate_info->url_slug,
36             ];
37         }
38 
39         $output['sort'] = !empty($sort)? $sort : 0;
40 
  1. FCPATH/modules/product/controllers/product.php [ 35 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » product->category(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 359 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 217 ] » require_once(arguments)

Environment

Thiptanaporn