We are currently using ManaFilters extension for magento, however we are currently experincing some difficulties with it no being functional.
This is the error message it products:
Fatal error: Call to a member function getItems() on a non-object in /var/www/app/code/local/Mana/Filters/Model/Filter/Category.php on line 171
Here is the code associated with line 171:
/**
* @param Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection $categories
* @return Mana_Filters_Model_Filter_Category
*/
public function addCountToCategories($categories, $products = null) {
if (!$products) {
$products = $this->getLayer()->getProductCollection();
}
$products->addCountToCategories($categories);
if (($items = $categories->getItems()) && count($items)) {
$category = array_shift($items);
if (!$category->hasProductCount()) {
Mage::helper('mana_filters')->addCountToCategories($products, $categories);
}
}
return $this;
}
}
Any help would be appreciated.