Unhandled Error!

Trying to get property of non-object

Document /modules/reddotauction/classes/reddotauction_actions.php
Document type PHP document
Line 52
Exception class Phpr_PhpException

Code Highlight

			$product_id = post('product_id');
			$specific_product = false;
			if (!strlen($product_id))
			{
				$auction_url_name = $this->request_param(0);
				$auction = ReddotAuction_Auction::create()->where('url_name = ?', $auction_url_name)->find();
				$product = ReddotAuction_Lot::create()->where('auction_id = ?', $auction->id)->where('url_name = ?', $product_url_name)->find();
			}
			else
			{
				$product = ReddotAuction_Lot::create()->where('id = ? AND auction_id > 0', $product_id)->find();
			}
 
# Call Stack Code Document Line
12 ReddotAuction_Actions->archive(()) /modules/cms/classes/cms_actionmanager.php 72
11 Cms_ActionManager::execAction('reddotauction:archive', 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(3) [0 => 'auction-viii', 1 => 'lot', 2 => '0910']) /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('/archive/auction-viii/lot/0910') /phproad/system/phproad.php 31
2 include('/home/romanumi/public_html/phproad/system/phproad.php') /boot.php 115
1 require_once('/home/romanumi/public_html/boot.php') /index.php 3