Posted by shooommmm on January 24, 2008 at 6:23pm
Jump to:
| Project: | Nice Primary Menus |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I got this error message when trying to install Nice Primary Menus in Drupal 5.6 :
warning: Invalid argument supplied for foreach() in /home/newmill/public_html/sites/all/modules/nice_primary_menus/nice_primary_menus.module on line 62.
Please help.
Thanks,
Hanly
Comments
#1
I believe I had the same problem. I think the cause of the error message is that you have not created any menu items under "Primary Links". Once you do so, the errors should disappear.
#2
I have the same porblem but in the file page.tpl.php
Problem:
warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal2\themes\Pleroma_inee\page.tpl.php on line 95.
It happends when add:
<?phpprint theme('nice_primary_menus'); $menu = menu_get_menu(); foreach ($links as $index => $link)
{$output .= '<li id="menu-link-'. $menu['path index'][$link['href']] .'" ';}
?>
I don't know if I do fine, becouse not sayin where put it. If someone help me, I appretiate.