Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • dhartionline Friend
    #158072

    I unpublished all the items in “Main Menu” and “topmega” and get this error above my actual main menu (magazine)

    How can I disable those menus without getting this error?

    Phan Gam Friend
    #369486

    Hi,
    Thank for your report.
    Please fix it as follows:
    #1. Open base.class.php file under pluginssystemjat3coremenu
    #2. Goto about line 160, for code loadMenu() function, searching for code block belows:

    // search the active tree
    $open = array();
    $active = $menu->getActive();
    if (isset($active)) {
    if ($active->menutype != $this->getParam('menutype')) {
    //detect the active in this menu: point to same link or is alias
    foreach ($rows as $index => $v) {
    if (($v->link == $active->link)
    || ($v->type == 'menulink' && !empty($v->query['Itemid']))
    ) {
    $open = array_reverse($v->tree);
    break;
    }
    }
    } else {
    $open = array_reverse($active->tree);
    }
    }
    $this->open = $open;

    if(!count($rows)) return;
    Arround line 54 to 74
    #3. and change to

    if(!count($rows)) return;
    // search the active tree
    $open = array();
    $active = $menu->getActive();
    if (isset($active)) {
    if ($active->menutype != $this->getParam('menutype')) {
    //detect the active in this menu: point to same link or is alias
    foreach ($rows as $index => $v) {
    if (($v->link == $active->link)
    || ($v->type == 'menulink' && !empty($v->query['Itemid']))
    ) {
    $open = array_reverse($v->tree);
    break;
    }
    }
    } else {
    $open = array_reverse($active->tree);
    }
    }
    $this->open = $open;

    Hope that helps

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Phan Gam 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum