WordPress.org

Support

Support » Plugins and Hacks » Ninja Forms » [Resolved] [Plugin: Ninja Forms Lite] Java script error on submit

[Resolved] [Plugin: Ninja Forms Lite] Java script error on submit

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kevin Stover

    @kstover

    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

    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!

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

    Plugin Author Kevin Stover

    @kstover

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Ninja Forms Lite] Java script error on submit’ is closed to new replies.
Skip to toolbar