WordPress.org

Ready to get started?Download WordPress

Forums

Jquery Validation For Contact Form 7
Uncaught Error causes problems in IE (2 posts)

  1. christos312
    Member
    Posted 1 year ago #

    Hello everyone, I want to make a quick question. I realised that when I visit my website from IE I get a warning about an Error in javascript.

    Then I switch to Chrome and I found that there is this error

    "Uncaught Error: Syntax error, unrecognized expression: form.wpcf7-form"

    I disabled the plugin and the error dissapeared. So I guess there is something wrong with the plugin? How can I fix it?

    Regards

    http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/

  2. clawdogs
    Member
    Posted 1 year ago #

    Hi Christos312. I just ran into this same error and figured out a fix. Find the file jquery.jvcf7_validation.js in the plugin directory (in my directory it was under /plugins/jquery-validation-for-contact-form-7/js/jquery.jvcf7_validation.js Now find the line form.wpcf7-form" and remove the double quotes which seems to be a typo in the script. It should now show as:

    jQuery('form.wpcf7-form').each(function(){

    NOT

    jQuery('form.wpcf7-form"').each(function(){

    I found the issue on line 507. Be sure to save your file and refresh your site. Also delete your cache if you're using a buggy browser..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic