Unhandled Error!

Trying to get property of non-object

Document /modules/core/classes/core_twigextension.php
Document type PHP document
Line 96
Exception class Phpr_PhpException

Code Highlight

 
			return null;
		}
 
		public function field($object, $field)
		{
			return $object->$field;
		}
 
		public function currency_filter($num, $decimals = 2)
		{
			return format_currency($num, $decimals);
		}
# Call Stack Code Document Line
17 Core_TwigExtension->field(null, 'category_list') /temp/twig_cache/mcmullen/1f/00/fedc9dfdbb1e99b0341bd77050ab.php 108
16 __TwigTemplate_1f00fedc9dfdbb1e99b0341bd77050ab->doDisplay(array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)], array(0)) /modules/core/thirdpart/Twig/Template.php 269
15 Twig_Template->displayWithErrorHandling(array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)], array(0)) /modules/core/thirdpart/Twig/Template.php 230
14 Twig_Template->display(array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Template.php 241
13 Twig_Template->render(array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)]) /modules/core/thirdpart/Twig/Environment.php 283
12 Twig_Environment->render('CMS template - Shop', array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)]) /modules/core/classes/core_twig.php 38
11 Core_Twig->parse('<!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>{{ this.page.title }} - {{ site_settings.company.title }}</title> <meta name="Description" content="{{ this.page.description }}"> <meta name="Keywords" content="{{ this.page.keywords }}"> {{ css_combine([ 'ls_styles', '@stylesheets/screen.css', '@stylesheets/slimbox2.css' ]) }} <link href='http://fonts.googleapis.com/css?family=Muli:400,400italic,300italic,300' rel='stylesheet' type='text/css'> <!--[if IE]><link rel="stylesheet" type="text/css" href="{{ theme_resource_url('stylesheets/ie.css') }}" /><![endif]--> <script src="{{ theme_resource_url('javascript/modernizr-2.5.3.min.js') }}"></script> </head> <body class="shop page-{{ this.page.title | lower | replace({" ": "-"})}} bp"> <div id="container"> <header id="header" role="banner"> <div id="logo-nav"> <a href="{{ root_url('/') }}"><img src="{{ theme_resource_url('/images/mcmullen-logo.png') }}" alt="McMullen" title="Return to the Home Page"></a> <nav id="primary" class="horizontal" role="navigation"> {{ render_partial('main_menu') }} </nav> </div> <div id="controls"> <nav id="user" class="horizontal" role="navigation"> {{ render_partial('user_menu') }} </nav> <nav id="social" class="horizontal" role="navigation"> {{ render_partial('social_menu') }} </nav> <div id="search" role="search"> {{ render_partial('shop:search_form') }} </div> </div> </header> <section id="main"> <div id="sidebar"> <nav id="categories" class="vertical"> {% set cat = category is defined ? category.url_name : null %} {% set cat = product is defined ? field(product, 'category_list').first.url_name : cat %} {{ render_partial('shop:categories', {'category_url_name': cat}) }} </nav> </div> <div id="content" role="main"> {{ render_page() }} </div> </section> <footer id="footer"> <div class="footer-left"> <nav id="secondary" class="horizontal" role="navigation"> {{ render_partial('secondary_menu') }} </nav> <p class="copyright" role="contentinfo">Copyright &copy; 2012 <a href="#">McMullen</a>, all rights reserved.</p> </div> <div class="footer-right"> <div class="mailing-list" role="form"> {{ render_partial('mailing_list') }} </div> <div class="contact"> <p>510.658.6906 <a href="mailto:hello@shopmcmullen.com">hello@shopmcmullen.com</a> </div> </div> </footer> </div> {{ js_combine([ '@javascript/jquery-1.7.2.min.js', 'ls_core_jquery', '@javascript/mcmullen.js', '@javascript/slimbox2.js' ]) }} {# render_head() is used to inject JS per page #} {{ render_head() }} <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> </body> </html>', array(6) [site_settings => object(stdClass), cms_fatal_error_message => null, cms_error_message => null, product_unavailable => '1', product => null, this => object(Cms_Controller)], 'CMS template - Shop') /modules/cms/classes/cms_controller.php 389
10 Cms_Controller->evalWithException('?><!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>{{ this.page.title }} - {{ site_settings.company.title }}</title> <meta name="Description" content="{{ this.page.description }}"> <meta name="Keywords" content="{{ this.page.keywords }}"> {{ css_combine([ 'ls_styles', '@stylesheets/screen.css', '@stylesheets/slimbox2.css' ]) }} <link href='http://fonts.googleapis.com/css?family=Muli:400,400italic,300italic,300' rel='stylesheet' type='text/css'> <!--[if IE]><link rel="stylesheet" type="text/css" href="{{ theme_resource_url('stylesheets/ie.css') }}" /><![endif]--> <script src="{{ theme_resource_url('javascript/modernizr-2.5.3.min.js') }}"></script> </head> <body class="shop page-{{ this.page.title | lower | replace({" ": "-"})}} bp"> <div id="container"> <header id="header" role="banner"> <div id="logo-nav"> <a href="{{ root_url('/') }}"><img src="{{ theme_resource_url('/images/mcmullen-logo.png') }}" alt="McMullen" title="Return to the Home Page"></a> <nav id="primary" class="horizontal" role="navigation"> {{ render_partial('main_menu') }} </nav> </div> <div id="controls"> <nav id="user" class="horizontal" role="navigation"> {{ render_partial('user_menu') }} </nav> <nav id="social" class="horizontal" role="navigation"> {{ render_partial('social_menu') }} </nav> <div id="search" role="search"> {{ render_partial('shop:search_form') }} </div> </div> </header> <section id="main"> <div id="sidebar"> <nav id="categories" class="vertical"> {% set cat = category is defined ? category.url_name : null %} {% set cat = product is defined ? field(product, 'category_list').first.url_name : cat %} {{ render_partial('shop:categories', {'category_url_name': cat}) }} </nav> </div> <div id="content" role="main"> {{ render_page() }} </div> </section> <footer id="footer"> <div class="footer-left"> <nav id="secondary" class="horizontal" role="navigation"> {{ render_partial('secondary_menu') }} </nav> <p class="copyright" role="contentinfo">Copyright &copy; 2012 <a href="#">McMullen</a>, all rights reserved.</p> </div> <div class="footer-right"> <div class="mailing-list" role="form"> {{ render_partial('mailing_list') }} </div> <div class="contact"> <p>510.658.6906 <a href="mailto:hello@shopmcmullen.com">hello@shopmcmullen.com</a> </div> </div> </footer> </div> {{ js_combine([ '@javascript/jquery-1.7.2.min.js', 'ls_core_jquery', '@javascript/mcmullen.js', '@javascript/slimbox2.js' ]) }} {# render_head() is used to inject JS per page #} {{ render_head() }} <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> </body> </html>', 'CMS template', 'Shop') /modules/cms/classes/cms_controller.php 211
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'metallic-velvet-dress']) /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('/product/metallic-velvet-dress') /phproad/system/phproad.php 31
2 include('/home/shopmcmu/public_html/phproad/system/phproad.php') /boot.php 109
1 require_once('/home/shopmcmu/public_html/boot.php') /index.php 3