WordPress.org

Ready to get started?Download WordPress

Forums

Ninja Forms
[resolved] Java script error on submit (5 posts)

  1. Greenweb
    Member
    Posted 2 years ago #

    Error: $("#ninja_form_overlay").prop is not a function
    Source File: /wp-content/plugins/ninja-forms/js/min/ninja_forms_display.min.js?ver=3.3.1
    Line: 5

    http://wordpress.org/extend/plugins/ninja-forms/

  2. Kevin Stover
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    This error is caused when Ninja Forms thinks that you are using version 1.7 of jQuery (the version packaged with WordPress 3.3) This usually occurs when you are using version 3.3 or later of WP, but have a plugin or a theme that includes an earlier version of jQuery. Unfortunately, if these plugins or themes don't use enqueue properly, or don't list the version of jQuery they are using, Ninja Forms doesn't know which jQuery version your site is using.

    I have plans to fix this in coming versions of Ninja Forms, but you can fix it manually by editing the ninja-forms/includes/scripts_functions.php. You'll need to modify two lines of the code: 68 and 117.

    Line 68 should currently read: NINJA_FORMS_URL .'/js/min/ninja_forms_admin.min.js',

    Change that to: NINJA_FORMS_URL .'/js/min/ninja_forms_admin_3.1.min.js',

    Line 117 should currently read: NINJA_FORMS_URL .'/js/min/ninja_forms_display.min.js',

    Change that line to: NINJA_FORMS_URL .'/js/min/ninja_forms_display_3.1.min.js',

    After you make those changes, upload the file and it should work normally. Again, in future versions I will fix this problem, but hopefully this will work in the interim.

    Hope that helps!

    - Kevin

  3. Greenweb
    Member
    Posted 2 years ago #

    Fixed it - the theme was loading an outdated version of jQuery. Removed that and it works perfectly.

    Thanks for the great plugin 5 stars guys!

  4. Greenweb
    Member
    Posted 2 years ago #

    Thanks Kevin did not see your post I must have been typing at the same time as you.

  5. Kevin Stover
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    No problem! I'm glad it's working well for you. If you have any other issues, feel free to post about it, we're trying to get all the bugs worked out.

    - Kevin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic