Original message by rimen:
Active menus are stored in system variable
menu_default_active_menus and returned by
menu_get_active_menu_names(). Custom menus are added to this variable when menu is saved, in
menu_save(). But sometimes custom menus are not getting to this list. The reason is unknown and I can't reproduce it. If you can, please post steps starting from menu creation.