Unhandled Error!

Trying to get property of non-object

Document /modules/checkout/classes/checkout_actions.php
Document type PHP document
Line 275
Exception class Phpr_PhpException

Code Highlight

		public function pay()
		{
			Cms_ActionManager::execAction('shop:pay',$this);
 
			$order = $this->data['order'];
 
			$billing_countries = Shop_Country::get_list($order->billing_country_id);
			$this->data['countries'] = $billing_countries;
 
			$billing_country = $order->billing_country_id ? $order->billing_country_id : $billing_countries[0]->id;
			$this->data['states'] = Shop_CountryState::create(true)->where('country_id=?', $billing_country)->order('name')->find_all();
 
			$billing_info = Shop_CheckoutData::get_billing_info();
# Call Stack Code Document Line
12 Checkout_Actions->pay(()) /modules/cms/classes/cms_actionmanager.php 72
11 Cms_ActionManager::execAction('checkout:pay', object(Cms_Controller)) /modules/cms/classes/cms_controller.php 600
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 202
9 Cms_Controller->open(object(Cms_Page), array(0)) /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('/pay') /phproad/system/phproad.php 31
2 include('/var/www/vhosts/revivalvintage.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 114
1 require_once('/var/www/vhosts/revivalvintage.co.uk/httpdocs/boot.php') /index.php 3