In a recent update on WordPress CMS and my existing plugins I noticed that form submissions started slowing a bit on entries. In checking this I found that the form would attempt to submit but would stay in a spinning stage and never validate or submit it.
So, here’s what I did to update for a fix.
1) Head to the plugin editor, update the link below:
https://yourwebsite.com/wp-admin/plugin-editor.php?plugin=contact-form-7%2Fwp-contact-form-7.php&Submit=Select
2) Look for the section:
if ( ! defined( 'WPCF7_LOAD_JS' ) ) { define( 'WPCF7_LOAD_JS', true ); }
3) Update this to:
if ( ! defined( 'WPCF7_LOAD_JS' ) ) { define( 'WPCF7_LOAD_JS', false ); }
4) Clear cache and try your form again. a good way to see if the spinning wheel issue goes away is if your required fields respond.
Caveats:
- The form will no longer send with ajax since you have disabled the javascript.
- If you update the plugin in any way and have the problem again you will need to reapply this change.
You can keep up with the ongoing reference to this issue on Contact Form 7’s website.
10/30/20 Update – Should you want to get out of having to update the plugin directly, you can set a constant in your wp-config.php file to set it and forget it. Link below!