Closed (fixed)
Project:
Drupal core
Version:
6.2
Component:
menu system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
13 Apr 2008 at 02:45 UTC
Updated:
8 May 2008 at 12:23 UTC
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
Comment #1
apophis.ch commentedI 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.
Comment #2
dudelookslikealady commentedHi,
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
Comment #3
dudelookslikealady commentedHi,
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.
Comment #4
dudelookslikealady commentedthis was a pblm with contributed modules. they cant handle the upgrade. mine was yui !
Comment #5
dudelookslikealady commentedissue resolved. Thanks for not doing anything :P