HTTP_Exception_404 [ 404 ]: State does not belong to this country

APPPATH/classes/Controller/Web/Campsites.php [ 85 ]

80 		$State = Orm::factory('State')->where('slug', '=', $this->request->param('state'))->find();
81 		if($State->name === null)
82 			$this->redirect('index');
83 		
84 		if($State->country->slug != $this->request->param('country'))
85 			throw new HTTP_Exception_404('State does not belong to this country');
86 		
87 		$this->userSettings['searchoptions']['countryid'] = $State->country->id;
88 		
89 		if(Arr::get($this->userSettings['searchoptions'], 'stateid', null) == null)
90 		{
  1. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Web_Campsites->action_state()

  2. {PHP internal call} » Kohana_Controller->execute()

  3. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 136 ] » Kohana_Request->execute()

Environment