test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • leahbartlett Friend
    #136807

    Help –

    I just installed the Polaris template – I get this error on the front end:
    Warning: Invalid Argumernt: ja_menus/Base.class.php on line 55

    The Main Menu does not show up either. please Help!

    Using Joomla 1.5

    Anonymous Moderator
    #285345

    hi,

    For your case, please open file templates/ja_polaris/ja_menus/Base.class.php on line 55, find following code section:
    [PHP]foreach ($rows as $index => $v) {
    if ($v->access <= $aid) {
    $pt = $v->parent;
    $list = @ $children[$pt] ? $children[$pt] : array ();

    switch ($v->type)
    {
    case ‘url’ :
    if ((strpos($v->link, ‘index.php?’) !== false) && (strpos($v->link, ‘Itemid=’) === false)) {
    $v->url = $v->link.’&Itemid=’.$v->id;
    } else {
    $v->url = $v->link;
    }
    break;

    default :
    $v->url = ‘index.php?Itemid=’.$v->id;
    break;
    }
    if (strcasecmp(substr($v->url, 0, 4), ‘http’) && (strpos($v->link, ‘index.php?’) !== false)) {
    $iParams = $this->createParameterObject($v->params);
    $iSecure = $iParams->def(‘secure’, 0);
    $v->url = JRoute::_($v->url, true, $iSecure);
    }else{
    //$v->url = urlencode($v->url);
    $v->url = str_replace(‘&’, ‘&’, $v->url);
    }
    array_push($list, $v);
    $children[$pt] = $list;
    }
    $cacheIndex[$v->id] = $index;
    $this->items[$v->id] = $v;
    }[/PHP]

    and change to:

    [PHP]
    if (sizeof($rows) > 0 ) {
    foreach ($rows as $index => $v) {
    if ($v->access <= $aid) {
    $pt = $v->parent;
    $list = @ $children[$pt] ? $children[$pt] : array ();

    switch ($v->type)
    {
    case ‘url’ :
    if ((strpos($v->link, ‘index.php?’) !== false) && (strpos($v->link, ‘Itemid=’) === false)) {
    $v->url = $v->link.’&Itemid=’.$v->id;
    } else {
    $v->url = $v->link;
    }
    break;

    default :
    $v->url = ‘index.php?Itemid=’.$v->id;
    break;
    }
    if (strcasecmp(substr($v->url, 0, 4), ‘http’) && (strpos($v->link, ‘index.php?’) !== false)) {
    $iParams = $this->createParameterObject($v->params);
    $iSecure = $iParams->def(‘secure’, 0);
    $v->url = JRoute::_($v->url, true, $iSecure);
    }else{
    //$v->url = urlencode($v->url);
    $v->url = str_replace(‘&’, ‘&’, $v->url);
    }
    array_push($list, $v);
    $children[$pt] = $list;
    }
    $cacheIndex[$v->id] = $index;
    $this->items[$v->id] = $v;
    }
    }[/PHP]

    Hope it helps.

    leahbartlett Friend
    #285449

    Thank you! That took the error message away, however the main menu still does not appear.

    Is this because on the template manager screen under Menu Assignment it says:
    Menus: Cannot assign default template.

    Anonymous Moderator
    #285595

    I fixed this issue.
    In administrator, you change Mainmenu to Mainmen. I have changed again.

    leahbartlett Friend
    #285667

    Thank you SOOOOO much!:D

    leahbartlett Friend
    #285675

    Quick question – did you change the template.css or anything else? If you take a look, the frontpage went crazy.. formatting was lost somehow?? Help again!

    Anonymous Moderator
    #285731

    In Administrator, go to Menu -> Menu manager to edit Main menu.

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

This topic contains 7 replies, has 2 voices, and was last updated by Anonymous 15 years, 11 months ago.

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