- 110 views
How does your Contact Form 7 behave aside from not sending anything? Check your console (F12) before you click on submit button. There should be an error message.
In my case, I had an error 400 bad request (or might be as well 404 not found) after submit button click with URL:
https://www.mydomain.XX/%lang%/wp-json/contact-form-7/v1/ contact-forms/5/feedback
Visually I could see, that %lang% part does not belong into an URL. So I took a look at installed plugins and found out only one language related plugin.
The module Xili-language unfortunately does not look like being compatible with Contact Form 7 and is appending the not-needed string in request URLs.
Disabling Xili-language does look like a fix for this kind of problem.
If your REST API is disabled, it might cause a problems with sending Contact Form 7 forms. In this case try to add this snipplet into your .htaccess file.
RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/wp-json RewriteRule . /index.php [L]
Important line is:
RewriteCond %{REQUEST_URI} !^/wp-json
Which should be right after filename lines and before final RewriteRule part.
Hopefully this tutorial helped you with your problem or at least gave you an advice to follow and find where your problem lies.