test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • wermm Friend
    #148554

    Hi,

    I will get this on top of my template after installing.

    Warning: Invalid argument supplied for foreach() in /home/renovo5/public_html/biobag.sg/demo/templates/ja_olyra/ja_menus/Base.class.php on line 152

    the template seems to work. but the warning message is there. Anybody?

    FaizaL

    Saguaros Moderator
    #333331

    Hello guy

    the problem happen if the mainmenu has not any menu.
    To fix this,
    1) you add some menu for the main menu
    2) you open the file :templatesja_olyraja_menusBase.class.php and find codes at line 147
    [PHP]$rows = $items->getItems(‘menutype’, $this->getParam(‘menutype’));[/PHP]
    Replace:
    [PHP]
    $rows = $items->getItems(‘menutype’, $this->getParam(‘menutype’));
    if( empty($rows) && !is_array($rows) ) { $rows = array(); }[/PHP]

    Good luck

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

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 10 months ago.

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