Unhandled Error!

Trying to get property of non-object

Document /modules/intrepiwarerecipes/classes/intrepiwarerecipes_actions.php
Document type PHP document
Line 42
Exception class Phpr_PhpException

Code Highlight

		{
			$this->data["posts"] = null;
			$category_id = $this->request_param(0);
			$category = new IntrepiwareRecipes_Category();
			$category = $category->find($category_id);
 
			$this->data["posts"] = $category->posts;
			$this->data["categoryRecord"] = $category;
		}
 
		public function on_addComment()
		{
			/*
# Call Stack Code Document Line
12 IntrepiwareRecipes_Actions->postIndex(()) /modules/cms/classes/cms_actionmanager.php 72
11 Cms_ActionManager::execAction('intrepiwarerecipes:postIndex', 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 => '6']) /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('/recipes/category/6') /phproad/system/phproad.php 31
2 include('/home1/sutterb1/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home1/sutterb1/public_html/boot.php') /index.php 3