Home›Support›English Support›[Resolved] A huge problem with the translating repeater field in classic editor
[Resolved] A huge problem with the translating repeater field in classic editor
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with WPML and ACF where translated fields are deselected and translations are shifted incorrectly. This results in only 14% of the page being translated correctly, and the addition or deletion of rows in repeater fields causes further misalignment of translations. Solution: We recommend following these steps after ensuring you have a full site backup: 1) Increase the
MaxInputVars
setting in your PHP configuration to 10000. You can find more details on how to do this here: Setting the MaxInputVars directive in an .htaccess file. 2) Clear all types of caches on your site. 3) Navigate to WPML>>Support page, and click on the Troubleshooting link. 4) On the Troubleshooting page, execute the following actions under the 'Clean up' section, waiting for confirmation after each: - Clear the cache in WPML - Remove ghost entries from the translation tables - Fix element_type collation - Set language information - Fix WPML tables collation - Assign translation status to duplicated content - Fix terms count - Fix post type assignment - Cleanup and optimize string tables
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, you can open a new support ticket for further assistance 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 a long-time user of the paid version of WPML and ACF. I am trying to present monthly and annual reports for a client using a repeater field in the classic editor. The reports include a title, date, and PDF file. I have one repeater for annual and one for monthly reports. The issue can be seen on this page: hidden link. I complete the reports in Macedonian, the default language, and then upload the PDF translation files in English and Albanian using media translation. I add translations by clicking the field for that language, ensuring the checkbox 'Keep repeater and flexible sub-fields in the same order as the default language' is checked. I added 2 monthly reports for May and June 2024 in Macedonian.
Symptoms:
The already translated fields are deselected, and the wrong translations are shifted without order. The page shows only 14% translated instead of 100%. The correct portion of the 14% translated content is shown here: hidden link. The rest of the translations are messed up, as illustrated here: hidden link. The latest reports for May and June have translations for March and April, and the rest of the page has shifted translations. Adding or deleting a row causes the translations to get messed up and shifted. I cannot add rows for each language manually because Macedonian is the default language, as shown here: hidden link.
Everytime I am adding some report I am wasting more then hour to manually change the positions of the translations again on English and Albanian to have a correct translated page at the end. Once the client send me a report for uploading this is becoming nightmare for me. I have reported this issue earlier but didn't had an answer as far I remember. This is not happening only on this site but others too, where I have for example repeater field for adding members of the team. Once I delete or add a row everything gets messed up and shifted. I am developer myself so you probably realize that all rows in ACF must have some kind of ID so why this shifting is happening, why the already translated fields have been deselected when they are already translated?
I wanted to try to add a rows for each language manually on their page in English and Albanian, but probably because Macedonian is set to be default language is not allowing me to add fields for date and select the PDF file : hidden link
This is an old issue, probably others have reported it so you might have some solution for this. I would be very happy if you could help me.
Questions:
Why are the already translated fields deselected and the translations shifted?
Why does the page show only 14% translated instead of just the ones I recently added which are not translated?
Why do the latest reports have translations for previous months when I haven't added any translation yet?
Why can't I add rows for each language manually when Macedonian is the default language?
Please try the following troubleshooting steps after a full site backup{mandatory} and make sure the issue exists or not.
1) Increase the *MaxInputVars* of PHP settings to *10000*. Refer to the following article for more details and contact your system admin/hosting provider to upgrade this configuration.
hidden link
2) Clear all types of caches
3) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
4) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables