Unhandled Error!

Trying to get property of non-object

Document /modules/seo/classes/seo_display.php
Document type PHP document
Line 100
Exception class Phpr_PhpException

Code Highlight

 
					if (!strlen($category_url_name))
						return;
 
					$category = Shop_Category::find_by_url($category_url_name, $params);
 
					if (isset($category) && !$category->category_is_hidden)
					{
						if(isset($category->x_meta_title) && strlen($category->x_meta_title))
							$using_seo_title = true;
 
						$seo_title_static = strlen($category->x_meta_title) ? $category->x_meta_title : null;
						//$seo_title  = strlen($category->x_meta_title) ? $category->x_meta_title : $category->title;
# Call Stack Code Document Line
14 SEO_Display->_get(()) /modules/seo/classes/seo_display.php 9
13 SEO_Display->__construct(object(Cms_Controller)) /modules/seo/classes/seo_display.php 14
12 SEO_Display::create(object(Cms_Controller)) /modules/cms/classes/cms_controller.php(388) : eval()'d code 1
11 eval(()) /modules/cms/classes/cms_controller.php 388
10 Cms_Controller->evalWithException('?><? SEO_Display::create($this); ?> <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <base href="<?php echo Phpr::$request->getRootUrl().Phpr::$request->getSubdirectory() ?>" /> <?php $this->render_partial('site:meta'); $this->render_head(); ?> <meta name="google-site-verification" content="hiUybDWV0-wqoijn-xmRZUcDSgzFdPVC1uqyuXySZmc" /> <? $page_title = strlen($this->page->title) ? $this->page->title." | " : null; $title_and_tag = strlen($this->page->seo_title) ? $this->page->seo_title : site_setting('site_name')." | ".site_setting('site_tag') ?> <title><?=h($page_title); ?> <?=$title_and_tag;?></title> </head> <body> <div class="pagecontainer"> <div class="container wide headerarea"> <?php $this->render_partial('site:header', array('page_title'=>$this->page->label)); ?> </div> <?php $this->render_page(); ?> <div class="container wide footerarea"> <?php $this->render_partial('site:footer'); ?> </div> </div> <div class="container wide footerarea"> <?php $this->render_partial('site:footermeta'); ?> <?php $this->render_partial('site:mobileprompt'); ?> </div> </body> </html> ', 'CMS template', 'Default') /modules/cms/classes/cms_controller.php 215
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'boxing-day-sale']) /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('/category/boxing-day-sale') /phproad/system/phproad.php 31
2 include('/var/www/vhosts/hattersworld.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 120
1 require_once('/var/www/vhosts/hattersworld.co.uk/httpdocs/boot.php') /index.php 3