Unhandled Error!

Trying to get property of non-object

Document /modules/screencraft/classes/screencraft_actions.php
Document type PHP document
Line 54
Exception class Phpr_PhpException

Code Highlight

			if ( !isset($product) ) {
				$product = Shop_Product::create()->find_by_id($artwork->type->default_product_id);
			}
		}
		else {
			// var_dump($artwork); die();
			$product = Shop_Product::create()->find_by_id($artwork->type->default_product_id);
		}
 
		return $product;
	}
 
	public function product_with_artwork() {
# Call Stack Code Document Line
13 Screencraft_Actions->get_product('') /modules/screencraft/classes/screencraft_actions.php 73
12 Screencraft_Actions->product_with_artwork(()) /modules/cms/classes/cms_actionmanager.php 72
11 Cms_ActionManager::execAction('screencraft:product_with_artwork', object(Cms_Controller)) /modules/cms/classes/cms_controller.php 580
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 198
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'harvard-medical-school-logo-18722']) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/store/product/Harvard-Medical-School-Logo-18722') /phproad/system/phproad.php 31
2 include('/home/screencr/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/screencr/public_html/boot.php') /index.php 3