After creating a menu I export to a json string using the export tool. Then on a new installation when I pass the json into the import field and try to recreate the menu, it works, however it starts throwing errors (see below). When i manually recreate the exact same menu using the GUI there are no errors.
It would be fantastic if this module exported via ctools.
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : 127.0.0.1
Administration theme : rubik
PHP configuration : /usr/local/Cellar/drush/5.9/libexec/drush.ini
Drush version : 5.9
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp
PHP 5.4.15 (cli) (built: May 20 2013 15:40:11)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to modify property of non-object in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_megamenu_tab_theme() (line 190 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Warning: Attempt to assign property of non-object in template_preprocess_megamenu_tab_theme() (line 207 of justin.git/modules/custom/md_megamenu/templates/menu/theme.inc).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 5 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Notice: Trying to get property of non-object in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 6 of justin.git/modules/custom/md_megamenu/templates/menu/md_megamenu_tab.tpl.php).