Unhandled Error!

Trying to get property of non-object

Document Eyewear details page.
Document type CMS page POST action code
Line 28
Exception class Cms_ExecutionException

Code Highlight

	}
	$controller->data['active_page'] = 'shop';
	$controller->data['thumbnail_dimensions'] = array(2560, 'auto');
 
	$option_keys = array();
	$option_values_by_slug = array();
	foreach ($product->options as $opt) {
		$option_keys[$opt->name] = $opt->option_key;
		foreach ($opt->list_values() as $value) {
			$option_values_by_slug[RaenHelper::slugify($value)] = $value;
		}
	}
	$default_options = array();
# Document Type
1 Eyewear details page. CMS page POST action code