Support » Plugin: Jquery Validation For Contact Form 7 » Uncaught Error causes problems in IE

  • 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/

Viewing 1 replies (of 1 total)
  • 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..

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught Error causes problems in IE’ is closed to new replies.