Unhandled Error!

Trying to get property of non-object

Document /modules/nhdistributors/classes/nhdistributors_actions.php
Document type PHP document
Line 31
Exception class Phpr_PhpException

Code Highlight

        $this->data['distributor'] = $distributor;
 
        /*
         * Override meta
         */
 
        $this->page->title = strlen($distributor->business_name) ? $distributor->business_name : $distributor->business_name;
        $this->page->description = strlen($distributor->meta_description) ? $distributor->meta_description : $this->page->description;
        $this->page->keywords = strlen($distributor->meta_keywords) ? $distributor->meta_keywords : $this->page->meta_keywords;
 
    }
 
 
# Call Stack Code Document Line
12 Nhdistributors_Actions->distributor(()) /modules/cms/classes/cms_actionmanager.php 72
11 Cms_ActionManager::execAction('nhdistributors:distributor', 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 => 'first-aid-supplies-mackay']) /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('/distributor/first-aid-supplies-mackay') /phproad/system/phproad.php 31
2 include('/home/alphafir/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/alphafir/public_html/boot.php') /index.php 3