• Our live child site has a Contact 7 WP form on it but for some reason the form is not sending the dev tools console is saying

    Uncaught TypeError: d(...).wpcf7InitForm is not a function

    Not sure if this is the real error or because of the config of the form within the site. Any hints would be helpful!

    Thanks

    N.B using Version 5.0.3

    • This topic was modified 5 years, 7 months ago by clairecy.

    The page I need help with: [log in to see the link]

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

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter clairecy

    (@clairecy)

    There is a host of plugins on the site:

    Advanced Custom Fields
    Advanced Custom Fields PRO
    Advanced Custom Fields: Sites
    Ajax Load More
    ARVE Advanced Responsive Video Embedder
    Autoptimize
    Block Specific Plugin Updates
    Broadcast
    Broadcast Premium Pack
    Contact Form 7
    Contact Form 7 – Dynamic Text Extension
    Contact Form 7 Controls
    Duplicate Post
    Google Analytics Dashboard for WP (GADWP)
    Intuitive Custom Post Order
    IP2Location Redirection
    Lightbox Gallery
    Loco Translate
    Mailgun
    ….

    The issue is hard to debug because the form works on staging but doesn’t work on PROD. It’s not going to be possible for me disable these plugins to test as the site is live. Have you had any experience with this error?

    Thanks in advance!

    Could be due to Autoptimize; as a quick test you can disable AO on a per-request basis by adding ?ao_noptimize=1 to the URL.

    If your site works that way, then disable JS optimization for a second to see if that fixes it. If so, then you’ll probably have to add the plugin’s JS to the comma-separated JS optimization exclusion list. In that process you should keep an eye on your browser’s console for JS errors, as those will help you identify the problem.

    AO’s FAQ has more info on troubleshooting and how to exclude.

    hope this helps,
    frank (ao dev)

    Thread Starter clairecy

    (@clairecy)

    Interesting… when disabling AO the form this time returned an error message, but still was unable to send the form.

    ‘Failed to set referrer policy: The value ” is not one of ‘no-referrer’, ‘no-referrer-when-downgrade’, ‘origin’, ‘origin-when-cross-origin’, ‘same-origin’, ‘strict-origin’, ‘strict-origin-when-cross-origin’, or ‘unsafe-url’. The referrer policy has been left unchanged.’

    message from the console….

    Is this to do with the Contact Form 7 plugin?

    Thread Starter clairecy

    (@clairecy)

    If it helps other active plugins listed below…
    MultiSite Clone Duplicator
    Multisite Robots.txt Manager | MS Robots.txt
    Olark
    Save Contact Form 7
    SEO Image Toolbox
    Smush
    Ultimate fields
    User Role editor
    Wordfence
    WP Better Emails
    Yoast

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Form not sending … console saying d(…).wpcf7InitForm is not a function’ is closed to new replies.