Unhandled Error!
Trying to get property of non-object
Document |
modules/service/classes/service_actions.php |
Document type |
PHP document |
Line |
781 |
Exception class |
Phpr\PhpException |
Code Highlight
//
public function testimonial()
{
$provider = $this->get_provider($this->request_param(1), false, false);
$hash = $this->request_param(0);
$testimonial = Service_Testimonial::create()->where('is_published is null AND hash=:hash AND provider_id=:id', array('hash'=>$hash, 'id'=>$provider->id))->find();
if (!$testimonial)
return $this->data['provider'] = null;
$this->data['provider'] = $provider;
$this->data['testimonial'] = $testimonial;
Call Stack
# |
Code |
Document |
Line |
12 |
Service_Actions->testimonial(()) |
modules/cms/classes/cms_action_manager.php |
68 |
11 |
Cms_Action_Manager::exec_action('service:testimonial', 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/testimonial') |
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 |