Unhandled Error!

Trying to get property of non-object
Document modules/service/classes/service_actions.php
Document type PHP document
Line 873
Exception class Phpr\PhpException

Code Highlight

															 
																	if ($redirect = post('redirect'))
																		Phpr::$response->redirect($redirect);
																}
															 
																public function verify_is_provider () {
																	if (!$this->user->is_provider)
																		Phpr::$response->redirect('/no-provider');
																}
															 
																//
																// Provider Testimonials
																//
														

Call Stack

# Code Document Line
12 Service_Actions->verify_is_provider(()) modules/cms/classes/cms_action_manager.php 68
11 Cms_Action_Manager::exec_action('service:verify_is_provider', 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(0)) 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('/provide') framework/core/init.php 178
2 require_once('/home/handylo/public_html/framework/core/init.php') framework/boot.php 97
1 require_once('/home/handylo/public_html/framework/boot.php') index.php 12