Multiple jQuery inclusion detected

More
20 Nov 2015 19:52 - 28 Jan 2016 15:12 #1 by Demis [Fox-Labs]
Multiple jQuery inclusion detected was created by Demis [Fox-Labs]
Multiple jQuery inclusion detected, please disable any extra instance

There are basically two different reasons that cause this kind of error, and both must be checked.

Content index

1. Multiple jQuery inclusions

2. Lack of necessary JavaScript frameworks



1. Remove multiple jQuery inclusions

Some poorly designed extensions or templates load multiple instance of the jQuery framework which conflicts with the version bundled with Joomla, causing problems executing Fox Contact and Joomla itself.

Open the HTML source of your page and search for jQuery inclusions.
Here are some examples:

This is the only legitimate version, bundled with Joomla.
<script src="/media/jui/js/jquery.min.js">

This is an extra instance, it is clearly loaded by the template.
<script src="/templates/my_template/js/1.8.2/jquery.js">

This is another extra instance, but it's not clear who is loading it. Probably a third party module or component.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js">

Once found, you must remove them. Templates and extensions that include extra instances of jQuery, always have an option to disable the inclusion.
If you are in doubt, disable one extension at a time until you find the one which hurts.


2. Check for the presence of the necessary JavaScript frameworks

Another reason for the error "Multiple jQuery inclusion detected", if the absence of the necessary JavaScript frameworks bundled with Joomla, on which Fox Contact relies.
Check that the following inclusions exist in your page source, and that the files are readable through http.

Bootstrap framework, provides the Tooltips.
<script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>

Chosen framework, provides the Dropdown fields.
<script src="media/jui/js/chosen.jquery.min.js" type="text/javascript"></script>

If they are not present, find the reason and fix it.

Please Log in or Create an account to join the conversation.