WordPress.org

Support

Support » Plugins and Hacks » Uncaught TypeError: cannot read property 'find' of undefined

Uncaught TypeError: cannot read property 'find' of undefined

  • Maybe you’ve fixed this already, but I’ve downloaded and installed the plugin today and got this error in my console. When I looked through your scripts I noticed what looked like a typo:

    file: includes/js/scripts.js
    $.wpcf7AjaxSuccess should be $.fn.wpcf7AjaxSuccess

    The error disappeared after I changed it manually. Just thought I’d let you know/share the solution.

    https://wordpress.org/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    @takayukister

    It’s not a typo.

    If it’s not a type, is there another work-around for this error? Or do you think it’s a JS conflict issue?

    Plugin Author Takayuki Miyoshi

    @takayukister

    Can I check the site?

    Hi. Did this get resolved? I’m getting the same error on clicking submit.

    Sorry Takayuki, your reply must have gotten lost somewhere in my emails. I’m not using the plugin at the moment so I don’t have a site with it up right now.

    Jovavill — see if the changes in my original post works for you? You can always change it back.

    Hi,

    I’d like to reopen this issue, if I may. I’m no longer using my previous contact form and would like to see if I could figure out the issue with my installed version of Contact Form 7.

    The previous “solution” I proposed, was indeed incorrect. Line 29 of includes/js/script.js indeed calls $.wpcf7AjaxSuccess (not $.fn.wpcf7AjaxSuccess), but here’s my next stab at the issue: According to the js error I get in my console, in line 78 of the same script, $form is undefined. Tracing back, it should be defined in the function’s argument, but as you can see in line 28, the call is made without any arguments.

    If you’d like to see the contact form failing: http://www.simpledryclean.com/contact
    Please advise!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught TypeError: cannot read property 'find' of undefined’ is closed to new replies.