Unhandled Error!

Call to a member function list_products() on null

Document /modules/cms/classes/cms_controller.php(343) : eval()'d code
Document type PHP document
Line 7
Exception class Error
# Call Stack Code Document Line
11 eval(()) /modules/cms/classes/cms_controller.php 343
10 Cms_Controller->evalWithException('?><?php // save the category product sorting mode if it has been changed. //if(post('sorting')) Cms_VisitorPreferences::set('cat_sorting_' . $category->id, post('sorting')); $sorting = Cms_VisitorPreferences::get('cat_sorting', $site_settings->store->category->default_sorting_field . ' ' . $site_settings->store->category->default_sorting_direction); // setup products $products = $category->list_products(array( 'sorting' => array($sorting), 'apply_top_products' => post('sorting', true) )); // setup pagination $base_url = $category->page_url($site_settings->store->category_path); $index = $this->request_param(1, 0); // grabs the index from the URL, otherwise defaults to zero $per_page = $site_settings->store->category->products_per_page; $pagination = $products->paginate($index - 1, $per_page); ?> <section class="intro clearfix"> <div class="grid_7 alpha"> <h3>&rsaquo; <?=h($category->name)?> - Print Collection</h3> <?=$category->short_description?> </div> <div class="grid_5 omega pagination"> <?php if($pagination) $this->render_partial('auslight:pagination', array('pagination' => $pagination, 'base_url' => $base_url)); ?> </div> </section> <?php // are there sub categories? if(count($category->list_children()) > 0): ?> <ul class="style-2"> <?php $this->render_partial('auslight:categories', array( 'list' => $category->list_children(), 'show_item_children' => false, 'show_list_markup' => false, 'show_anchor_image' => true, 'anchor_default_class' => 'product-frontpage-item' ), array( 'cache' => true, 'cache_vary_by' => array('url'), 'cache_versions' => array('catalog'), 'cache_ttl' => 7200 ) ); ?> </ul> <?php // no subcategories - show the products! else: ?> <section class="category_thumbs clearfix"> <?php // show products $this->render_partial('auslight:products', array( 'style' => 1, 'products' => $products ), array( 'cache' => true, 'cache_vary_by' => array('url'), 'cache_versions' => array('catalog'), 'cache_ttl' => 3600 ) ); ?> </section> <?php endif; ?> <section class="outro clearfix"> <div class="grid_12 omega alpha pagination"> <?php if($pagination) $this->render_partial('auslight:pagination', array('pagination' => $pagination, 'base_url' => $base_url)); ?> </div> </section> ', 'CMS page', 'Category') /modules/cms/classes/cms_controller.php 553
9 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 185
8 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'golden_hours']) /controllers/application.php 72
7 Application->On404(()) /phproad/modules/phpr/classes/phpr_controller.php 165
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 72
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 42
3 Phpr_Response->open('/galleries/category/golden_hours') /phproad/system/phproad.php 31
2 include('/home/australianlight/sites/production/phproad/system/phproad.php') /boot.php 107
1 require_once('/home/australianlight/sites/production/boot.php') /index.php 2