joeldbirch / superfish

Superfish is a jQuery plugin that adds usability enhancements to existing multi-level drop-down menus.
Other
913 stars 314 forks source link

jQuery(...).superfish is not a function #192

Open Melonking906 opened 1 year ago

Melonking906 commented 1 year ago

I'm unclear what the cause of this error is - superfish seems to work fine and this error is only present on one particular page, not all pages using the same template.

jQuery.Deferred exception: jQuery(...).superfish is not a function @http://localhost:8888/general-discussion/ddd/:10:26
e@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:30310
Deferred/then/l/</t<@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:30612
setTimeout handler*Deferred/then/l/<@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:30821
c@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:28599
fireWith@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:29344
fire@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:29380
c@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:28599
fireWith@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:29344
ready@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:32317
$@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:32096
EventListener.handleEvent*@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:32465
@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:220
@http://localhost:8888/scripts/jquery-3.6.3/jquery.min.js:2:225
Uncaught TypeError: jQuery(...).superfish is not a function
    <anonymous> http://localhost:8888/general-discussion/ddd/:10
    jQuery 13

HTML head code

<script src="/scripts/jquery-3.6.3/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost:8888/Themes/news/scripts/superfish.min.js"></script>
<script type="text/javascript" src="http://localhost:8888/Themes/news/scripts/hoverIntent.js"></script>
<script type="text/javascript">

        jQuery(document).ready(function() {
            jQuery("ul.dropmenu").superfish();
        });

</script>
Megas97 commented 1 year ago

Have the same issue with a SMF theme that loads everything exactly as you've pointed out: first jQuery, then Superfish and then having another Githubissues.

  • Githubissues is a development platform for aggregating issues.