I receive the following error on all pages when I active the module:

warning: Invalid argument supplied for foreach() in /home/rheck83/public_html/sites/all/modules/admin_menu/admin_menu.module on line 201

This with every theme I tried (bluemarine, garland, chamelon, sky) and both the 5.x-1.x-dev and 5.x-1.1 versions. The block is enabled, yet I cannot see the menu unless I install the Administration Menu Dropdown module. I still get the error and the menu renders behind other blocks so most of it is out of view. I'm running Drupal 5.2.

I wish I could troubleshoot this further, but I'm new to Drupal and have no idea what the foreach() call does on line 201.

CommentFileSizeAuthor
#4 admin_menu_copy_items.patch820 bytessun

Comments

manerhabe’s picture

Title: Invalid argument supplied for foreach() » Invalid argument supplied for foreach() error displayed on every page, menu not showing

I should add my website is http://tampabay.indymedia.org, thanks!

manerhabe’s picture

This error went away with Drupal 5.3. It's all working fine now (after some theme customizations per the readme), thanks for the great module!

whuggy’s picture

I have a fresh install of Drupal 5.3 and this error message still appears. I'm using the default garland theme.

sun’s picture

Assigned: Unassigned » sun
Status: Active » Needs review
StatusFileSize
new820 bytes

Please test attached patch and report back if it is working for you.
See further information about how to apply patches: http://drupal.org/patch/apply

sun’s picture

Status: Needs review » Fixed

Committed that patch.
Feel free to re-open this issue if you still encounter this bug after updating to the lastest development snapshot (approx. available in 12 hours).

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.