Contact Form 7 stopped working

Hi!

My Contact Form created with Contact Form 7 has stopped working. It does not even get to the point where it checks the fields and reply with an error message if something is not correctly entered. The spinning circle next to the send button just keeps spinning and nothing happens, no email gets sent. Problem occured a couple of weeks ago.

I am using WordPress 5.0.1, X version 6.4.2.

I use Cloudflare and I have emptied all caches. All plugins are up to date. I have tried to delete the plugin and install it again and create a new form, but same thing happens.

What could be the problem?

Hi,

May I know what version of Contact Form 7 are you using.

Please note that the supported version as stated in our version compatibility page is Version: 5.0.4

Please downgrade your plugin to that version

Thanks

Hi! Thank you for your answer.

I had version 5.1.1, the latest one, but now I downgraded to version 5.0.4. Then I emptied all caches in Cloudflare. The problem still remains.

Maybe I could try downgrading to even older version?

Hi There,

I got this error message when I submited the contact form:

Mixed Content: The page at 'https://www.markusp.se/kontakt/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.markusp.se/wp-json/contact-form-7/v1/contact-forms/4135/feedback'. This request has been blocked; the content must be served over HTTPS. send @ jquery.js?ver=1.12.4:4 ajax @ jquery.js?ver=1.12.4:4 wpcf7.submit @ scripts.js?ver=5.0.4:348 (anonymous) @ scripts.js?ver=5.0.4:56 dispatch @ jquery.js?ver=1.12.4:3 r.handle @ jquery.js?ver=1.12.4:3

Please ensure the WordPress Address and Site Address are loading over the https as well:

Let us know how it goes!

Hi!

I changed from http://www.markusp.se to https://www.markusp.se

Now my website nor Wordpress will load at all. I get the message: ERR_TOO_MANY_REDIRECTS

I cannot even login to Wordpress to change it back. Is there some setting in Cloudflare I should change to be able to access Wordpress again?

I logged into Cloudflare. I found the settings

Always Use HTTPS
Redirect all requests with scheme “http” to “https”. This applies to all http requests to the zone.

and

Automatic HTTPS Rewrites
Automatic HTTPS Rewrites helps fix mixed content by changing “http” to “https” for all resources or links on your web site that can be served with HTTPS.

I don’t know what’s the best thing to do now to be able to login to WP again, but I changed both of these settings to OFF, but that did not change anything, I still get the message ERR_TOO_MANY_REDIRECTS. Please advice on what to do.

I installed “Check Mail” plugin and now Contact From 7 works again.

Still have no idea what causes the issue.

Hi!

I reactivated the settings in Cloudflare and did some Googling. I found that someone with the same problem added this to wp_config.php:
define(‘WP_HOME’,‘https://www.mysite.com’);
define(‘WP_SITEURL’,‘https://www.mysite.com’);
$_SERVER[‘HTTPS’] = ‘on’;

So for my website I added:
define(‘WP_HOME’,‘https://www.markusp.se’);
define(‘WP_SITEURL’,‘https://www.markusp.se’);
$_SERVER[‘HTTPS’] = ‘on’;

Now everything works, as well as sending messages via the contact form. So my issue is solved. Thanks!

Hey @markusp80,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.