Box Categories and a Categories menu addon Problem
Posted: Thu May 20, 2021 1:02 pm
Hi;
I am using the 1.0.8.2 version;
I activated the box categories and get the below error on click
It worked well up to 1.0.7.5 but now is giving issues --
I tried upgrading it to current pattern of code but returns nothing just a light grey small box where the menu should appear(No errors at all in backend too)--
Please can someone help me understand the issues due to which this is happening...
Thank you in advance to all for helping me get through with this problem,
Awaiting your valued reply;
Regds./
radhavallabh
I am using the 1.0.8.2 version;
I activated the box categories and get the below error on click
On another Main Category Menu addon I use below code on the cm_header_main_menu.phpFatal error
: Uncaught Error: Call to undefined method tree_display::get() in xx/includes/modules/content/header/cm_header_breadcrumb.php:51 Stack trace: #0 xx/includes/system/versioned/1.0.7.9/osc_template.php(106): cm_header_breadcrumb->execute() #1 xx/templates/default/includes/components/header.php(15): oscTemplate->getContent('header') #2 xx/templates/default/includes/components/template_top.php(56): require('/xx...') #3 /xx/templates/default/includes/pages/index.php(12): require('/xx...') #4 /hxx/index.php(36): require('xx...') #5 {main} thrown in
/xxincludes/modules/content/header/cm_header_breadcrumb.php
on line
51
It worked well up to 1.0.7.5 but now is giving issues --
I tried upgrading it to current pattern of code but returns nothing just a light grey small box where the menu should appear(No errors at all in backend too)--
Code: Select all
function execute() {
global $root_category_id, $category_tree, $category_array;
$category_tree = new tree_display(Guarantor::ensure_global('category_tree'));
$category_tree->setMaximumLevel(1);
$category_array = $category_tree->buildBranchArray($GLOBALS['root_category_id']);
foreach ($category_array as $Tr => $ee) {
$category_tree->get_children($ee['id'], $category_array[$Tr]['children']);
}
$el = $category_array;
foreach ($el as $e => $l) {
if (is_array($l['children'])) {
foreach ($l['children'] as $s => $t) {
$el[$e]['children'][$s] = $category_tree->getData($t);
}
}
}
$tpl_data = ['group' => $this->group, 'file' => __FILE__];
include 'includes/modules/content/cm_template.php';
}Thank you in advance to all for helping me get through with this problem,
Awaiting your valued reply;
Regds./
radhavallabh