Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • dragonlord Friend
    #124779

    I have installed Genista vor Joomla 1.5 RC4 in the Templates Folder. When I open my veggie.de Website there is such a error message in the head of the Website:

    Warning: Invalid argument supplied for foreach() in /www/htdocs/w008b326/templates/ja_genista_15RC4/ja_menus/Base.class.php on line 31″

    In Line 31 is following to read:

    “foreach ($rows as $index => $v) {“

    I’m a totally Joomla Newbee and i have hardly no skills in php/css/etc.. and sorry for my bad english, I’m german.

    Greetings Matthew

    dragonlord Friend
    #235704

    Problem is solved with the latest Nightly Build of Joomla v1.5 RC4!

    Another Solution is explained here

    1. Open file template index.php, search:

    Code:

    <jdoc:include type=”debug” name=”footer” />

    and replace with

    Code:

    <jdoc:include type=”modules” name=”debug” />

    2. Open file ja_menus/Base.class.php, search (in function loadMenu):

    Code:
    $menu = @JMenu :: getInstance();
    if(strtolower(get_class($menu)) == ‘jexception’) {
    $menu = @JMenu :: getInstance(‘site’);
    }
    $user =& JFactory::getUser();

    $children = array ();

    //get menu items
    $rows = $menu->getItems(‘menutype’, $this->getParam(‘menutype’));

    Replace with

    Code:

    $user =& JFactory::getUser();
    $children = array ();
    // Get Menu Items
    $items = &JSite::getMenu();
    $rows = $items->getItems(‘menutype’, $this->getParam(‘menutype’));

    Regards Matthew

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

This topic contains 2 replies, has 1 voice, and was last updated by  dragonlord 16 years, 10 months ago.

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