This thread is resolved. Here is a description of the problem and solution.
Problem:
I can't submit the form created with Contact Form 7 on the translated page.
Solution:
When you're using the "Different domain per language" URL format while enabling the Google reCAPTCHA in the form, you need to make sure that the other language domain is added to Google reCAPTCHA panel.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
With Contact Form 7 i created a testpage with a form on it: hidden link
This forms sends the mail.
I translated this dutch page to english with the same form on it, so when you click the english language flag you see its directed to hidden link (note: this is another domainname .eu, it's a domainpointer). In the translated page there is exact the same form as on the NL page, but when Sending it gives this error: There was an error trying to send your message. Please try again later.
What's going wrong? Why the form is not sending, it's exact the same form. How to solve?
- The debug info of your site shows some issues related to the minimum system requirements to run WPML properly:
1) Please increase the WordPress Memory Limit. According to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. Minimum requirements for WPML is 128Mb. (Kindly check this page https://wpml.org/home/minimum-requirements/)
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:
2) Please upgrade your MySQL version to 5.6 or above (This is the minimum required MySQL version for WPML). Kindly check here for more details: https://wpml.org/home/minimum-requirements/
I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –
Your next answer will be private, which means only you and I have access to it.
❌ Please backup your database and website before providing us with access details ❌
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.
Hi Michel,
Thanks for providing the access details.
I see that you're using the "Different domain per language" URL format, also that the Google reCAPTCHA is active for the form.
Most probably the additional domains are not added to the reCAPTCHA panel, so it fails on the secondary languages and the form can't be sent without it. Please add the domains of the other languages to the Google reCAPTCHA panel then check if the issue is resolved.
My issue is resolved now. Indeed it was the recapctha Thank you! (it's pitty that the error message is not a bit better of the form, but that you can not change, i understand, it's something Contact form 7 should do.