Title: Bug in CF 4.8.1: TypeError: wpcf7.initForm is not a function
Last modified: July 30, 2017

---

# Bug in CF 4.8.1: TypeError: wpcf7.initForm is not a function

 *  Resolved [micksp](https://wordpress.org/support/users/micksp/)
 * (@micksp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/)
 * ⌊screenshot of error message⌉⌊screenshot of error message⌉
    I’m using chrome,
   vivaldi and firefox, all give this error.
 * To solve this i changed the code in script.js.
    The ready function that contains
   wpcf7.initForm( $form ); (on top og the sript, starting with $( function() { …
   etc I placed this bit below the definition of wpcf7.initForm. Now everything 
   workes again. Could you please fix this in the upcoming release?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9365101)
 * Where can we see the site?
 *  Thread Starter [micksp](https://wordpress.org/support/users/micksp/)
 * (@micksp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9365693)
 * I have corrected the error so you won’t see it, but the page that gave me this
   error is [https://www.zangschoolbeesd.nl/gratis-proefles/](https://www.zangschoolbeesd.nl/gratis-proefles/)
 *  Thread Starter [micksp](https://wordpress.org/support/users/micksp/)
 * (@micksp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9366101)
 * I created a staging site so you can see the error: [http://staging.zangschoolbeesd.nl/gratis-proefles/](http://staging.zangschoolbeesd.nl/gratis-proefles/)
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9367229)
 * Try switching to the default theme and deactivating all other plugins.
 *  Thread Starter [micksp](https://wordpress.org/support/users/micksp/)
 * (@micksp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9367688)
 * I know now the offending plugin. It figures, come to think of it. The problem
   is the [async-javascript](https://nl.wordpress.org/plugins/async-javascript/)
   plugin. I added this because of google pagespeed test, but the side effect is
   that we don’t know if all scripts will be active in the right order and there
   seems to be some inter dependency.
    I disabled the async plugin.
 * Thanks for the help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Bug in CF 4.8.1: TypeError: wpcf7.initForm is not a function’ is closed
to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [micksp](https://wordpress.org/support/users/micksp/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/bug-in-cf-4-8-1-typeerror-wpcf7-initform-is-not-a-function/#post-9367688)
 * Status: resolved