28d 2018, Navbar Categories
Posted: Tue Apr 12, 2022 4:47 pm
Working my way up the versions, now attempting 1.0.7.13
I have a very early supporters code from @burt which is a Navbar categories module.
It throws this error.
Fatal error: Uncaught Error: Call to undefined method category_tree::setCategoryPath() in D:\Phoenix_Live\htdocs\includes\modules\navbar\nb_navbar_categories.php:53 Stack trace: #0 D:\Phoenix_Live\htdocs\includes\modules\content\navigation\cm_navbar.php(60): nb_navbar_categories->getOutput() #1 D:\Phoenix_Live\htdocs\includes\system\versioned\1.0.7.9\osc_template.php(106): cm_navbar->execute() #2 D:\Phoenix_Live\htdocs\templates\default\includes\components\template_top.php(46): oscTemplate->getContent('navigation') #3 D:\Phoenix_Live\htdocs\templates\default\includes\pages\index.php(13): require('D:\\Phoenix_Live...') #4 D:\Phoenix_Live\htdocs\index.php(17): require('D:\\Phoenix_Live...') #5 {main} thrown in D:\Phoenix_Live\htdocs\includes\modules\navbar\nb_navbar_categories.php on line 53
The code around Line 53 is
@ecartz, when I asked about this addon many months ago, I believe you said that you did not have this. I can PM it to you if you can help.
I have a very early supporters code from @burt which is a Navbar categories module.
It throws this error.
Fatal error: Uncaught Error: Call to undefined method category_tree::setCategoryPath() in D:\Phoenix_Live\htdocs\includes\modules\navbar\nb_navbar_categories.php:53 Stack trace: #0 D:\Phoenix_Live\htdocs\includes\modules\content\navigation\cm_navbar.php(60): nb_navbar_categories->getOutput() #1 D:\Phoenix_Live\htdocs\includes\system\versioned\1.0.7.9\osc_template.php(106): cm_navbar->execute() #2 D:\Phoenix_Live\htdocs\templates\default\includes\components\template_top.php(46): oscTemplate->getContent('navigation') #3 D:\Phoenix_Live\htdocs\templates\default\includes\pages\index.php(13): require('D:\\Phoenix_Live...') #4 D:\Phoenix_Live\htdocs\index.php(17): require('D:\\Phoenix_Live...') #5 {main} thrown in D:\Phoenix_Live\htdocs\includes\modules\navbar\nb_navbar_categories.php on line 53
The code around Line 53 is
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/templates/tpl_' . basename(__FILE__));
$data = ob_get_clean();