Error on first refresh/load after save

jandoemen - October 12, 2007 - 19:37
Project:Quick Admin Menus
Version:5.x-1.0-beta
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

How I reproduce this error:

1. I go into quick menus and select a menu
2. I click the "Submit Menu Updates" button (with or without I changed something)
3. I get the "Success: Menu successfully imported" window and click OK
4. I click refresh or any other menu item in any menu

I get the red warning box with:
warning: Invalid argument supplied for foreach() in /web/drupal/sites/all/modules/quick_admin_menu/qam.module on line 475.
warning: Invalid argument supplied for foreach() in /web/drupal/sites/all/modules/quick_admin_menu/qam.module on line 475.
warning: Invalid argument supplied for foreach() in /web/drupal/sites/all/modules/quick_admin_menu/qam.module on line 475.
...

The number of warnings equals the number of menu items that where in the menu when I saved (step 2)

After I get the warnings and I click any menu item again or refresh the page, it loads without warnings. So the problem is only the first reload of any page.

Could you please fix this?
Thanks
Jan

#1

starbow - December 1, 2007 - 00:20
Status:active» postponed (maintainer needs more info)

please test beta2

#2

starbow - July 21, 2009 - 21:03
Status:postponed (maintainer needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.