[Escalated to 2nd Tier] Translate single product page
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to translate a single product page on my site hidden link using WPML.
Symptoms:
The translation process is always in progress, and when I open the translation again, there are 4 or 5 fields that need to be checked as translation completed.
Questions:
Why is the translation process not completing?
How can I ensure all fields are marked as translation completed?
Thanks for contacting us. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
I've reviewed your website. Could you specify which product page you're having trouble translating? Regarding your new issue, could you provide more details? If it involves troubleshooting, I'll need to split the ticket to handle it appropriately. Please include links and screenshots if available.
I've checked and I can see the issue here hidden link . When I inspected the template with the Elementor page builder, I noticed that you've included some scripts for translations and I think that's breaking the translation.
But anyway, I've duplicated the template to English Language and could you please try translating it again and see if it works?
Hello, the problem persists. If you visit a product page in English, or the content remains in Portuguese. The incomplete translation icon continues to appear on the Single Product model. You mention some translation scripts, can you send an example so I can understand what you mean?
I'm referring to this JS code as shown in the attached screenshot. But anyway, may I know why are you not using the "Advanced Translation Editor"? If you check the translations, the custom JS script is being translated wrongly as shown in the attached screenshot, and is preventing the translations from being saved correctly.
1- I created the "Product - New Single" model with the same contents as the "Product - Single".
2- I did the translation.
3- Same problem.
4- I found that there were translations that were not saved.
5- I deleted these contents (Accordion and those recently seen)
6- The translation has already worked.
Conclusion.
I kept this HTML and the problem was resolved.
Thanks for your reply. Glad that you sorted that out. However, you mentioned that you deleted the "(Accordion and those recently seen)", then only the translation works. What do you have in that content that causes the issue?
Thanks for your reply. Could you create a new page and insert this Accordion with content that breaks the translation? Then, try to translate it and see if it works. If it doesn't, share the link with me and I will check.
1- I insert these elements into the "Produto - Single Novo" model
2- Open the translation of this model to translate the inserted elements (PRINT 1)
3- There is a problem with the translation again (PRINT 2)
4- When opening the translation we see that the translation of new elements is not yet complete (PRINT 3)
Thanks for your reply. Ok, let's check the server for error logs. However, your FTP access credentials are not working for me as shown in the attached screenshot.
Could you please enable debugging as explained here https://wpml.org/documentation/support/debugging-wpml/ and then, trigger the translation again and share the debug log. You can upload the debug log on Google Drive and share the link with me.