Fatal error: Uncaught Error: Call to undefined method category_tree::setCategoryPath() in D:\Phoenix_1_0_8_0\htdocs\includes\modules\navbar\nb_navbar_categories.php:53 Stack trace: #0 D:\Phoenix_1_0_8_0\htdocs\includes\modules\content\navigation\cm_navbar.php(60): nb_navbar_categories->getOutput() #1 D:\Phoenix_1_0_8_0\htdocs\includes\system\versioned\1.0.7.9\osc_template.php(106): cm_navbar->execute() #2 D:\Phoenix_1_0_8_0\htdocs\templates\default\includes\components\template_top.php(46): oscTemplate->getContent('navigation') #3 D:\Phoenix_1_0_8_0\htdocs\templates\default\includes\pages\index.php(13): require('D:\\Phoenix_1_0_...') #4 D:\Phoenix_1_0_8_0\htdocs\index.php(17): require('D:\\Phoenix_1_0_...') #5 {main} thrown in D:\Phoenix_1_0_8_0\htdocs\includes\modules\navbar\nb_navbar_categories.php on line 53
Here is some of the code. Lines 49 to 67
Code: Select all
function getOutput() {
global $oscTemplate;
$NB_CategoryTree = new category_tree();
$NB_CategoryTree->setCategoryPath($cPath, '<strong>', '</strong>');
$NB_CategoryTree->setMaximumLevel(1);
$NB_CategoryTree->setParentGroupString('<ul class="dropdown-menu">', '</ul>', true);
$NB_category_tree = $NB_CategoryTree->getTree();
ob_start();
require('includes/modules/navbar_modules/templates/tpl_' . basename(__FILE__));
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
function isEnabled() {
return $this->enabled;
}