Unhandled Error!

Trying to get property of non-object
Document modules/bluebell/classes/bluebell_directory_actions.php
Document type PHP document
Line 235
Exception class Phpr\PhpException

Code Highlight

																		$location_role = Service_Category::create()->find_by_url_name($role);
															 
																		if (!$location_role)
																			throw new Phpr_SystemException('Unable to find service category for role: '.$role);
															 
																		$providers->apply_category($location_role->id);
																		$this->page->title_name = __('%s located in %s', array(Phpr_Inflector::pluralize($location_role->name), $location_city->name. ', ' . $location_state->code));
															 
																		$this->_directory_apply_filter($providers, $filter);
															 
																		$this->data['role'] = $location_role;
																		$this->data['filter'] = $filter;
																	}
														

Call Stack

# Code Document Line
14 Bluebell_Directory_Actions->_directory_by_location(object(Service_Provider)) modules/bluebell/classes/bluebell_directory_actions.php 86
13 Bluebell_Directory_Actions->on_directory(()) modules/bluebell/classes/bluebell_directory_actions.php 75
12 Bluebell_Directory_Actions->directory(()) modules/cms/classes/cms_action_manager.php 68
11 Cms_Action_Manager::exec_action('bluebell:directory', object(Cms_Controller)) modules/cms/classes/cms_controller.php 168
10 Cms_Controller->eval_content(()) modules/cms/classes/cms_controller.php 61
9 Cms_Controller->open(object(Cms_Page), array(5) [0 => 'a', 1 => 'us', 2 => 'az', 3 => 'mesa', 4 => 'auto-body-repair']) controllers/application.php 51
8 Application->on_404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'on_404'], array(0)) framework/modules/phpr/classes/controller.php 118
6 Phpr\Controller->execute_action('on_404', array(0)) framework/modules/phpr/classes/controller.php 76
5 Phpr\Controller->_run('on_404', array(0)) framework/modules/phpr/classes/response.php 75
4 Phpr\Response->open_404(()) framework/modules/phpr/classes/response.php 49
3 Phpr\Response->open('/directory/a/us/az/mesa/auto-body-repair') framework/core/init.php 178
2 require_once('/home/bidignit/public_html/framework/core/init.php') framework/boot.php 97
1 require_once('/home/bidignit/public_html/framework/boot.php') index.php 10