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.
Tagged: Exception
This topic contains 14 replies, has 3 voices.
Last updated by Waqas Bin Hasan 1 year, 3 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
August 22, 2023 at 1:09 am #14267289 | |
federicoB-41 |
I am trying to: I am deleting information from the original English page (clearing fields of data) but that information still remains on translated pages even after I update translated page using WPML editor. For example: Link to a page where the issue can be seen: If you scroll to the "Total course costs" section in English, you will see that fees start from 6 months. However, in Italian, it starts from 3 months. I expected to see: Fees in Italian start from 6 months. Instead, I got: Old 3 months fees that were removed from the English page are still on the Italian page. I hope it explains the situation. Please let me know if you need additional information. Thank you! |
August 22, 2023 at 11:18 am #14270517 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. Can you please explain where are these fields coming from? I mean from a relevant plugin or custom added fields. Also can you share these custom fields' translation settings? See https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ for details. Further, can you try updating WPML plugins to the latest and check again also? Remember to take full backup of site and database before proceeding!! Regards. |
August 23, 2023 at 9:50 am #14276973 | |
federicoB-41 |
Hello Waqas! Thank you very much for your response. We added those fields using JetEngine. More specifically, JetEngine -> Metaboxes. Please see attached screenshots for clarity. Also, you can see custom field translation settings on one of the screenshots. We have WPML 4.6.4 installed, and I see that 4.6.5 is the latest one. I will try to update the WPML later, but I believe it is only a minor update that won't have an effect on this issue. Still, I hope to be wrong! Thank you very much once again for your help! Looking forward to hearing from you. |
August 23, 2023 at 10:31 am #14277389 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. Yes please check with latest WPML versions, those are not minor updates but also contain fixes and improvements with several reported fixes. On the other hand, can you try with a new page or post while changing these fields translation settings to copy and copy once? See "2. How to Translate Meta Boxes & Meta Fields" hidden link in the JetEngine guide. Usually, translate works like where you need these fields always, while other options (i.e. Copy once) has a disconnected tendency and gives you the liberty of handling fields individually on translations (after first translation). Please let me know if any of these help or I'll try my best to help you further on the matter. |
August 24, 2023 at 2:30 am #14281079 | |
federicoB-41 |
Hello again Waqas! I updated the WPML version to the latest one and changed the "Courses" custom field to "Copy Once", and then added a new school with a translation. Unfortunately, both ways did not help - 3 months fee still remains intact on a translated page. Is there anything else I can try? Please let me know. And thank you very much for your help! |
August 24, 2023 at 7:55 am #14282423 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hi there, Waqas is off today, so I am taking care of this ticket, hope that is OK. 🙂 Can you please try using COPY for those exact fields, since copy-once will sync only on creating, and translate will not sync it all? Once you set it to COPY; please also try it on a new page, since it could be translation settings for that page were somehow not changed. Let us know how it goes. Regards, |
August 24, 2023 at 9:42 am #14283243 | |
federicoB-41 |
Hello Drazen! We had a "Copy" set before, and I changed it to "Copy once" only after Waqas recommended me to do so. I created a new page right after updating the plugin while "Copy" was in place, and did not see any difference - the issue is still there. |
August 25, 2023 at 7:32 am #14289417 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. My apologies for being absent due to health issue. I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend. IMPORTANT: Please take a complete backup of the site to avoid data loss. |
August 30, 2023 at 6:05 am #14310075 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the details. I am working on it and 'll get back to you accordingly. P.S.: I've set your recent message to private because it contains sensitive (access) information. Please do not share such information in public messages and ask to enable private message. |
August 30, 2023 at 12:54 pm #14313785 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I am trying to check the issue with minimal setup possible. And I noticed that when I deactivate "Simple Custom CSS and JS PRO" plugin, that section displaying the cost options isn't displayed. I am not sure which custom code you're using to display that. Can you please point me to the relevant code? Additionally, if you can keep only the most necessary plugins active (minimal setup) while deactivate all others, this 'll help me investigating little faster. Please let me know. |
September 6, 2023 at 11:35 pm #14355295 | |
federicoB-41 |
Hi Waqas! Sorry for getting back to you so late on this matter. We found out that this code is responsible for showing the list of fees: hidden link Please check and let me know if you found the issue. Thanks! |
September 7, 2023 at 7:52 am #14356607 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the details. I'll check soon and 'll get back to you accordingly. |
September 7, 2023 at 1:01 pm #14359717 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've tested it thoroughly and have discussed with the team. Unfortunately that's not possible with numbers. If the field is empty it won't appear in the translation editor. So to deal with this, you 'll have to manually edit the translation: - Edit the post in default language. In all other cases, where you change other text based content, use CTE to update the translations. |
September 12, 2023 at 11:58 am #14383349 | |
federicoB-41 |
Hello Waqas! Thanks for your reply. Yes, we did that - removed old fees from other translations using WordPress editor by switching to another language from the top admin bar. It works, but when we use CTE later again and save changes, old fees will be back again on the translated page. You can reproduce this behavior too: Thanks for your help! |
September 12, 2023 at 1:17 pm #14384133 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the update and I understand the problem. Unfortunately there's no easy solution for that. However, since you're already doing custom coding to list these out, you can put some kind of identifier in the field (instead of emptying it, i.e. -1), then translate it the same. And in your code add a check to display/hide it accordingly. Would that make sense? Here's WPML's coding API, in case if you want to dig deeper: https://wpml.org/documentation/support/wpml-coding-api/. |