Unhandled Error!

Trying to get property of non-object

Document sidebar_categories
Document type CMS partial
Line 24
Exception class Cms_ExecutionException

Code Highlight

      $manufacturer_ids = array();
 
    if ($option === 'vendor') {
      $manufacturer_url_name = $this->request_param(2, 0);
 
 
      $manufacturer_ids[] = Shop_Manufacturer::create()->find_by_url_name($manufacturer_url_name)->id;
      }
 
  if(post('manufacturer_ids')) {
    $manufacturer_ids = array_merge($manufacturer_ids, explode(',', post('manufacturer_ids')));
  }
 
# Document Type
2 sidebar_categories CMS partial
1 wide CMS template