It's hard to say exactly without seeing your page.
Please post a link to a page on your site that contains the problematic code so we can check it out.
Something like that often means that you have markup that's unexpected by the script. Like an empty menu or an empty sub-menu. Or you are trying to initialize a menu that's not there. Often folks do this by copying the initilaization from the demo and then dropping one of the demo menus, but keeping its initialization.
It may be unrelated to the other problem. You could try making the script ignore the unexpected markup or missing menu:
Code:
buildmenu:function($, setting){
var smoothmenu=ddsmoothmenu
var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL
if(!$mainmenu || !$mainmenu.parent() || !$mainmenu.parent().get(0)){
return;
}
$mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu"
var $headers=$mainmenu.find("ul").parent()
$headers.hover(
funct . . .
Bookmarks