test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • maikkeli Friend
    #140184

    I have Joomla 1.5.10 and want to use this template without a Quickstart, because I have already content. I am getting this error on top of the page :

    “Warning: Invalid argument supplied for foreach() in C:Inetpubvhostsdomain.comhttpdocstemplatesja_senecioja_menusBase.class.php on line 57”

    I read in the forum but I don’t find in Security News Feed Module to disable to solve this problem.

    Is there a chance to solve this …

    Anonymous Moderator
    #301546

    Hi,

    To solve this issue, please open templatesja _senecioja_menusBase.class.php file, on line 57, find following code;

    [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]

    codger Friend
    #304048

    I have a similar problem after I foolishly deleted the main menu (I think). It occurs (with slight variations of the line number) on all the JA templates that I have tested, but not the Joomla! default templates. I tried substituting the above code in a Pyrite template and there was no apparent change; the error was still there. When the Rochea template is applied the error is:-

    <blockquote>Warning: Invalid argument supplied for foreach() in /usr/local/psa/home/vhosts/mywebsite.com/httpdocs/templates/ja_rochea/ja_menus/Base.class.php on line 60

    * Skip to content
    * Skip to main navigation
    * Skip to 1st column
    * Skip to 2nd column

    My website title

    * [narrow screen resolution]
    * [wide screen resolution]

    * Increase font size
    * Default font size
    * Decrease font size

    * default color
    * dark color
    * red color
    </blockquote>

    Regards,
    Codger

    ysbook12 Friend
    #321956

    Thank you that worked. I noticed the css is still not looking correct in the main menu. I will play around with that and see what I can do. The main links have are basic blue links.

    schuller Friend
    #322706

    Hello, now is right..but not is same this http://www.joomlart.com/templates_demo.php?template=ja_barite, its my website is http://www.netseo.om.br/joomla, look this. is different.

    In top is words..frases.. Why?

    How i do for my website to be equal to the link I showed UP?

    how i do change the name MAIN MENU, Resources, Welcome to the Frontpage ETC .. I changed but not change.

    tanks

    Anonymous Moderator
    #322735

    Hi schuller

    Could you submit a ticket, send me your live url, admin account so that i could have a closer look on the issue?

    ysbook12 Friend
    #322781

    Thanks.. This worked. I also go the slide show to work.

    schuller Friend
    #322893

    <em>@JA Developer 151768 wrote:</em><blockquote>Hi schuller

    Could you submit a ticket, send me your live url, admin account so that i could have a closer look on the issue?</blockquote>
    Hello, you received my email?

    Anonymous Moderator
    #323090

    <em>@schuller 151967 wrote:</em><blockquote>Hello, you received my email?</blockquote>

    => I received your PM. Thank you very much but when i went to your website, i saw that you removed it

    schuller Friend
    #323150

    I solved the problem setup.

    Tanks a lot

    http://www.netseo.com.br/seo

    tanks

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

This topic contains 10 replies, has 5 voices, and was last updated by  schuller 15 years, 1 month ago.

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