Unhandled Error!
Trying to get property of non-object
Document |
Product details page. |
Document type |
CMS page POST action code |
Line |
3 |
Exception class |
Cms_ExecutionException |
Code Highlight
<?
/* if (!$this->ajax_mode) {$this->page->title = $this->page->title.' - '.$product->short_description.' | '.$product->categories[0]->name.'| Nearly Packed';}; */
if (!$this->ajax_mode) {$this->page->title = $this->page->title.' - '.$product->short_description;};
$this->data['body_class'] = 'prod-detail-page';
$this->data['active_page'] = 'shop';
if (!$this->ajax_mode) {$filter_desc_raw = substr($product->description,0,180);};
$filter_desc = $filter_desc_raw.'...';
$this->data['og_description'] = $filter_desc;
if (!$this->ajax_mode) {$this->data['og_url'] = 'http://www.nearlypacked.com'.$this->page->url.'/'.$product->url_name;};
if (!$this->ajax_mode) {$this->data['canonical'] = 'http://www.nearlypacked.com'.$this->page->url.'/'.$product->url_name;};
if (!$this->ajax_mode) {$this->data['og_img'] = 'http://www.nearlypacked.com'.$product->image_url(0, 700, 'auto');};
# |
Document |
Type |
1 |
Product details page. |
CMS page POST action code |