[Resolved] Contact Form 7 - Auto translation issues
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate Contact Form 7 using WPML and facing two issues: 1) The auto-translation isn't working correctly in some languages, showing the contact form shortcode on the frontend. 2) The
<[your-email]>
placeholder is missing in the message body for secondary languages after auto-translation. Solution: We have released a new version of the translation editor. We recommend re-translating your Contact Form 7 to check if the issues are resolved. For the missing email placeholder, ensure that your Contact Form settings under the Mail tab are correctly configured with the message body format as: From: [your-name]
<[your-email]>
.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.
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.
Background of the issue:
I am trying to translate Contact Form 7 using WPML. We’re facing two issues after translating the Contact Form 7. The auto-translation for Contact Form 7 isn’t working correctly in some languages, and we’re seeing the contact form shortcode on the frontend. Additionally, after auto-translation, the <[your-email]> placeholder is not appearing in the message body for secondary languages. See screenshots: hidden link and hidden link.
Symptoms:
1) Auto-Translation Issue: The auto-translation for Contact Form 7 isn’t working correctly in some languages, showing the contact form shortcode on the frontend. 2) Missing Email Placeholder: The <[your-email]> placeholder is not appearing in the message body for secondary languages after auto-translation.
Questions:
Why is the auto-translation for Contact Form 7 not working correctly in some languages?
Why is the <[your-email]> placeholder missing in the message body for secondary languages after auto-translation?
2.- Also, create a full site backup and update the WPML main plugin in Plugins -> Add new -> Commercial tab. Then double-check if the issue disappeared.
Yes, I suspect that might be the cause of the issue. Can you manually edit the form in the secondary language, set the correct shortcodes and double-check if the issue disappeared?
If you need help with these steps I can do it for you 🙂
Can you manually edit the form in the secondary language, set the correct shortcodes and double-check if the issue disappeared?
Reply : We've already manually edited and resolved the issue. However, if we re-translate in the future, we may encounter the same problem again. That’s why we raised this ticket — to bring attention to the issue and have it resolved, so we won’t need to manually edit the form in the secondary language each time.
Second issue: After auto-translation, the <[your-email]> placeholder is not appearing in the message body for secondary languages. As a result, when a customer sends a message from the form in the secondary language, we don't receive the email. Please refer to the following screenshot: hidden link.
I suspect this might be an isolated case, however, I would like to take a closer look at the site configuration and try to reproduce the issue. Please share the access credentials to the site in your next message that I have set private.
Confirm you created a full site backup that you can use to restore the site if necessary.
However, I haven't been able to access the site because the server credentials are missing. Could you edit your previous (private) message and share the server credentials?
Note: If you open the site on incognito mode you will see the form for the missing credentials
Thank you very much! This time I was able to access the site.
Before proceeding, I ask you to please create a backup of the entire site and update all the plugins and themes that appear as outdated on this link: hidden link
Outdated functionalities can cause conflicts in the code.
Once the update is complete, I kindly ask you to create a test form and check if the issue disappears when translating it.
We've updated the plugins and theme, and re-translated the contact form, but the issue persists. You can view the contact form here: hidden link. For example, the issue is visible on the frontend in the Croatian and Dutch languages.