Unhandled Error!
Call to a member function list_products() on null
Document |
/modules/cms/classes/cms_controller.php(383) : eval()'d code |
Document type |
PHP document |
Line |
49 |
Exception class |
Error |
# |
Call Stack Code |
Document |
Line |
11 |
eval(()) |
/modules/cms/classes/cms_controller.php |
383 |
10 |
Cms_Controller->evalWithException('?><div class="row" id="product-list-container">
<div class="full-column" id="product-list-column">
<div class="twenty-column" id="category-list">
<? $this->render_partial('shop:categories') ?>
</div>
<div class="eighty-column" id="product-list-display">
<a href="/sale-items/"><img class="product-list-hero" src="/themes/studio-one/resources/images/product_hero.png"/></a>
<?php
echo open_form(array(
'onsubmit' => "return $(this).getForm().sendRequest('filter_products', {
update: { 'update-inner-list': 'shop:product_list' }
})",
'id' => 'filter-products'
));
$sorting = '';
if(Phpr::$request->get_value_array('sorting')){
$sorting = urldecode(Phpr::$request->get_value_array('sorting'));
}
echo '<select name="sorting" id="sorting" style="display:block;">';
if($sorting == 'name asc'){
echo '<option value="name asc" selected>Name (A to Z)</option>';
}else{
echo '<option value="name asc">Name (A to Z)</option>';
}
if($sorting == 'name desc'){
echo '<option value="name desc" selected>Name (Z to A)</option>';
}else{
echo '<option value="name desc">Name (Z to A)</option>';
}
if($sorting == 'price asc'){
echo '<option value="price asc" selected>Price (Low to High)</option>';
}else{
echo '<option value="price asc">Price (Low to High)</option>';
}
if($sorting == 'price desc'){
echo '<option value="price desc" selected>Price (High to Low)</option>';
}else{
echo '<option value="price desc">Price (High to Low)</option>';
}
echo '</select>';
echo close_form();
?>
<div id="update-inner-list">
<?
$this->render_partial('shop:product_list', array(
'products'=>$category->list_products(array('sorting'=>array('name'))),
'records_per_page'=>12,
'paginate'=>true,
'pagination_base_url'=>$category->page_url('category'),
'page_index'=>$this->request_param(-1),
'empty_text'=>'There are no products in this category.'
));
?>
</div>
</div>
</div>
</div>', 'CMS page', 'Product category page.') |
/modules/cms/classes/cms_controller.php |
608 |
9 |
Cms_Controller->eval_page_content(()) |
/modules/cms/classes/cms_controller.php |
198 |
8 |
Cms_Controller->open(object(Cms_Page), array(0)) |
/controllers/application.php |
72 |
7 |
Application->On404(()) |
/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') |
/phproad/system/phproad.php |
31 |
2 |
include('/home/studioone/httpdocs/public/phproad/system/phproad.php') |
/boot.php |
114 |
1 |
require_once('/home/studioone/httpdocs/public/boot.php') |
/index.php |
3 |