WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Uncaught TypeError: cannot read property 'find' of undefined (7 posts)

  1. meteoraga
    Member
    Posted 4 months ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 months ago #

    It's not a typo.

  3. meteoraga
    Member
    Posted 4 months ago #

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

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 months ago #

    Can I check the site?

  5. jocavill
    Member
    Posted 3 months ago #

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

  6. meteoraga
    Member
    Posted 3 months ago #

    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.

  7. meteoraga
    Member
    Posted 1 month ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.