MyBB Community Forums

Full Version: .popupMenu not a function error?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey! My forum is overrun with this error 

Uncaught TypeError: $(...).popupMenu is not a function

    at showthread.php?tid=52&pid=162:975

on this page https://hiraeth-rp.com/showthread.php?ti...162#pid162.

What could be the issue? 

And on another note, I'm unable to permanently delete posts without a SQL error. What's up with that?
You seem to be loading jQuery 3 times in your site, once within the headerinclude template (which is fine, default), and two additional times in (I presume) the header template, the following is the piece of code that is doing this :
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="parallax.js"></script>
<script type="text/javascript" src="tooltip.js"></script>
<script src="https://kit.fontawesome.com/392129ee88.js" crossorigin="anonymous"></script>
<script type="text/javascript">jQuery.noConflict();</script>

<script>
$(window).scroll(function() {
  var sticky = $('.sticky'),
    scroll = $(window).scrollTop();
   
  if (scroll >= 40) { 
    sticky.addClass('fixed'); }
  else { 
   sticky.removeClass('fixed');

}
});
</script>

<script>
jQuery(document).ready(function($) {
    $('title]').tooltip();
});
</script>

If I have to guess, I would say you probably followed a tutorial, and it was probably an old tutorial.

Just remove the following and cross fingers it is fixed for you :
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>