I got the following error message when I click a Menu which is Depth Level 3 for all the submenu's which should be Level 4.

Menu items which are at the depth 4 (or deeper) are neither shown in the Navigation nor in the Navigation Administer Page.

warning: Invalid argument supplied for foreach() in /var/www/apophis-neXt/includes/menu.inc on line 376.

This error happens for every sub-item once.

Drupal 6.2 / Apache 2 / PHP 5
Hope someone can reproduce that, I have no idea what the source can be.

Comments

apophis.ch’s picture

Priority: Minor » Normal

I have to push this or it will be automatically closed by tomorrow. Thats also why I put priority to normal this time, even though its not that important. But I hope someone will notice it at least.

Theerror:

warning: Invalid argument supplied for foreach() in /includes/menu.inc on line 376.

happens definitly too often. And I dont see why this should happen, and why nobody else reported it.

dudelookslikealady’s picture

Priority: Normal » Critical

Hi,

I get the same error but on the front page for all users !!!!

"warning: Invalid argument supplied for foreach() in /home/xxx/public_html/includes/menu.inc on line 258."

This is quite embarrassing for us. Someone please look into it.

Thanks

dudelookslikealady’s picture

Title: Menu beyond depth 3 does not work » Index Page itself shows embarrassing error after upgrade to drupal 6.2

Hi,

I get the same error but on the front page for all users !!!!

"warning: Invalid argument supplied for foreach() in /home/xxx/public_html/includes/menu.inc on line 258."

This is quite embarrassing for us. Someone please look into it.

The code for lines 258 is this :

256 function menu_unserialize($data, $map) {
257 if ($data = unserialize($data)) {
258 foreach ($data as $k => $v) {
259 if (is_int($v)) {
260 $data[$k] = isset($map[$v]) ? $map[$v] : '';
261 }
262 }
263 return $data;
264 }
265 else {
266 return array();
267 }
268 }

Please check and let us know.

dudelookslikealady’s picture

this was a pblm with contributed modules. they cant handle the upgrade. mine was yui !

dudelookslikealady’s picture

Assigned: Unassigned » dudelookslikealady
Status: Active » Closed (fixed)

issue resolved. Thanks for not doing anything :P