• Resolved jeremyd1980

    (@jeremyd1980)


    Hello, I have been having jquery errors on my site for a few months now. It seems whenever I fix one problem something else breaks. The most recent issue is causing me problems with my Gravity Forms plugin. I have already tested for plugin conflicts by disabling all other plugins and this did not resolve the error. This error started when I was working with another plugin author to correct a different jquery error which had followed a jquery error with my theme and so on. I’m not well versed in jquery and so am at a loss as to what to do next.The current error can be found on my site at: http://www.soill.org/athletes-families/form-athlete-interest/ and is listed as Uncaught TypeError: undefined is not a function and reference this line of code:

    function gformInitChosenFields(fieldList, noResultsText){
    return jQuery(fieldList).each(function(){

    var element = jQuery(this);

    //only initialize once
    if( element.is(“:visible”) && element.siblings(“.chosen-container”).length == 0 ){
    var options = gform.applyFilters( ‘gform_chosen_options’, { no_results_text: noResultsText }, element );
    element.chosen( options );
    }

    });
    }

    Any help that can be provided as to why I am having so many jquery problems would be greatly appreciated. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • jeremyd1980, did you define chosen anywhere? If you are using chosen from this line,
    <script type='text/javascript' src='http://www.soill.org/wp-content/plugins/gravityforms/js/chosen.jquery.min.js?ver=1.8.22'></script>,

    you probably need to declare it before this line:
    <script type='text/javascript' src='http://www.soill.org/wp-content/plugins/gravityforms/js/gravityforms.js?ver=1.8.22'></script>

    I believe. Let me know if that helps.

    Thread Starter jeremyd1980

    (@jeremyd1980)

    Thank you for the response. I kept browsing through the forums and actually found a resolution to this problem. I had to remove <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script&gt; from my header.php and then installed the jquery updater plugin in order to get all my plugins that use jquery to all work properly at the same time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jQuery Errors and Conflict’ is closed to new replies.