Skip Navigation

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.

This topic contains 5 replies, has 2 voices.

Last updated by mh-4 2 years, 6 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 20, 2022 at 10:53 am #11264965

mh-4

Hello,

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?

Regards Michel

May 22, 2022 at 10:48 am #11273393

Mohamed Sayed

Hi Michel,
Thanks for contacting WPML support.

- I think the issue happens because the form is not translated, please install the "Contact Form 7 Multilingual" plugin then follow our documentation guide to translate it: https://wpml.org/documentation/related-projects/using-contact-form-7-with-wpml/#translate-the-form-yourself

- 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:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '128M');

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/

Let me know please if that helps.

Regards,
Mohamed

May 23, 2022 at 11:29 am #11279479

mh-4

Hello Mohamed,

I have installed Contact Form 7 Multilingual and created a test form: hidden link but the english and german forms are not sending.

Regards Michel

May 23, 2022 at 8:06 pm #11284003

Mohamed Sayed

Hi Michel,

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.

Thanks for your cooperation

May 24, 2022 at 12:33 pm #11292093

Mohamed Sayed

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.

Regards,
Mohamed

May 24, 2022 at 12:58 pm #11292939

mh-4

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.