Whenever I enable DHTML-Menu I get this warning.

I know that this bug has been reported for a previouse version of DHTML Menu.
I thought that the bug should have been fixed within this newest version.
As far as I can see this unfortunatly is not the case.

Peter

Comments

cburschka’s picture

Status: Active » Closed (duplicate)

The issue has been fixed in one place, but popped back up in another. I've already made a patch for it in #483920: Problem when no child menu is visible (D6, 3.5+).

asb’s picture

Hi!

Funny. Yesterday I installed DHTML Menu on Drupal 6.13 on Debian "Lenny" - no problems. Today I installed DHTML Menu on Drupal 6.13 on FreeBSD 7.1, and immediately I get: warning: Invalid argument supplied for foreach() in /usr/local/www/.../includes/menu.inc on line 743..

The patch from 483920 suppresses the warning, thanks!

-asb

nhomar’s picture

Priority: Normal » Critical
Status: Closed (duplicate) » Reviewed & tested by the community

This patch work like a charm.

Is very simple apply it...... it should be merged to the project.....

regards

cburschka’s picture

Status: Reviewed & tested by the community » Fixed

Since the other patch is now committed, this issue is gone too.

Status: Fixed » Closed (fixed)

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

trevort’s picture

I've had this issue occur on my site.
Drupal 6.19
DHTML Menu 6.x-3.5
It happened shortly after installing
Menu Block 6.x-2.3

Happy to supply output/details if you can guide me to generate them for you

lafingguy’s picture

I'm getting the same warning with Drupal 6.20 and DHTML menu 6.x-3.5.
I'm going to try 6.x-4.dev and see if that fixes it

Ela’s picture

did the dev version fix it ? I'm having the same warning

eL’s picture

Version: 6.x-3.5 » 6.x-4.x-dev

just moved from 3.5 to 6.x-4.x-dev and got this:

warning: Invalid argument supplied for foreach() in H:\Zend\Apache2\htdocs\web\includes\menu.inc on line 744.

eL’s picture

Status: Closed (fixed) » Active
shaneonabike’s picture

I can confirm that your patch fixed this issue for me!

gr33nman’s picture

Version: 6.x-4.x-dev » 6.x-3.5

Just did a drush up. Drupal 6.24.

When creating new menus, I still see this issue.

I generally disable DHTML for hand-crafted sidebar menus, but the default is for DHTML_Menu to be enabled on new menu creation. When that happens, the "Warning:Invalid argument supplied for foreach() ... menu.inc on line 743." message still shows up. I don't see it on my

I just disabled DHTML_Menu for the offending menu, so it's not a problem for me, but someone else finding the same problem.

vuil’s picture

Issue summary: View changes

I closed the issue as Closed (outdated) because it is for unsupported 6.x version of Drupal.

Thanks for the contribution!

vuil’s picture

Status: Active » Closed (outdated)