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
| Author | Posts |
|---|---|
| April 9, 2025 at 2:01 pm #16914222 | |
|
mobintegL |
Background of the issue: Symptoms: Questions: |
| April 10, 2025 at 7:28 am #16916888 | |
|
Bigul |
Hello, Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned. It looks like this may be related to the following known issue: So please run the following query after a full site backup using a tool like PHPMyAdmin. Delete the duplicate entries from the query results. SELECT * FROM wp_icl_translations WHERE trid = 27929 AND language_code = 'pt-pt' Refer to this similar ticket for more details: https://wpml.org/forums/topic/duplicate-entry-2028-en-for-key-trid_lang/page/2/#post-8232421 Please note that the same issue may occur with a different trid. In that case, change the query and run it again until the issue is resolved. -- Bigul |
| April 10, 2025 at 11:13 am #16918023 | |
|
mobintegL |
Hi, Thank you for your response. We followed your suggestion and ran the query, but we weren’t able to find any duplicate entries in the results. Could you please assist us further with this issue? Thank you! |
| April 14, 2025 at 4:29 pm #16930517 | |
|
Otto |
Hello, I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now. There are two issues here, right? 1. Translations revert to the original content After Bigul's suggestion, does issue 2 persist? Regarding the first issue. Please make sure that after duplicating the original content into the translation and modifying the content, you click on "Translate independently". If you don't, the content will revert each time you edit the original page: Best Regards, |
| April 15, 2025 at 8:37 am #16932440 | |
|
mobintegL |
Hello Otto, Thank you for your reply. The database error hasn't occurred since April 4th, so it may have been resolved in the meantime. However, we're currently facing two issues related to translations: 1. Translations are reverting to the original content; All translations have been set to "Translate independently." In this case, the affected pages (both original and translated versions) have existed for over two years, and this issue has only recently started occurring. Given that the "Translate independently" setting was selected when the translations were created, I'm thinking this shouldn't be the source of the problem. I’ve tested this behavior and found that it does not occur with newly created pages — it seems limited to pre-existing translations. Could you please advise on how we should proceed? Best regards. |
| April 15, 2025 at 2:24 pm #16934623 | |
|
Otto |
Hello, Thanks. I suspect that the translations were edited with different editors at some point. But it's just a guess 🙂 Can you provide me with an example page where I can see the problem? I would like to request temporary access (wp-admin and FTP) to your site so that I can examine the issue more thoroughly. The information you will enter is private, which means only you and I can see and have access to it. **IMPORTANT** Best Regards, |
| April 21, 2025 at 1:23 pm #16951896 | |
|
Otto |
Hello, Thanks. I noted that you are using the WP editor (Divi) to translate those pages. Possible causes of the problem
Recommended steps to solve the problem
✅ Final recommendation About the old content, I don't think you'll be able to restore it unless you have access to old post revisions. Best Regards, |
| April 21, 2025 at 2:31 pm #16952012 | |
|
mobintegL |
Hi Otto, thanks for your message. I believe there may have been some confusion in your response — we’re using Divi, not Avada. To clarify a few points: - We always use the Divi Backend Builder, never the Live Builder. - We do not switch between builders during editing sessions. - Cache has been fully cleared. - The issue occurs even when editing in a single session and tab, and it affects multiple users. - All affected pages were set to “Translate independently” from the start, and this has been in place for years. The issue we’re experiencing is that translations are reverting to the original language and no longer accept updates — and this only happens on older translated pages. For example, if you visit this page: hidden link Even if you then try to make changes to the now Portuguese content in the same page, those changes do not save either. In some cases, I was able to restore the correct content using post revisions, but even after restoring, the same issue continues. Could you please help investigate this further? Thanks again for your help. |
| April 21, 2025 at 4:53 pm #16952464 | |
|
Otto |
Hello, Please apoligize for the confusion. And thanks for the detailed clarification. I made a copy of your site and deployed it locally. Then I disabled all plugins except WPML-related and temporarily. After that, I was able to edit the translation and the changes were saved. Is it possible for you to try this on your end and confirm? **IMPORTANT:** Please try this in a staging environment or at least with a backup of your site files and database before continuing. If the issue resolved with these settings, reactivate one by one to see which conflicts. Best Regards, |
| April 28, 2025 at 8:12 am #16973568 | |
|
mobintegL |
Hi Otto, Okay, we will try to test this on a staging environment, I just wonder what could have happened since we've been using this method of translations since the beginning and this issue has never happened before. I'll let you know what we find. Thank you! |
| April 28, 2025 at 12:42 pm #16974859 | |
|
Otto |
Hello, Thanks. Not sure what may have caused the problem. WP core, themes, and plugins evolve, and an incompatibility may arise. To dig deeper, before trying the test I suggested, you can do the following: Best Regards, |
| April 30, 2025 at 1:10 pm #16984075 | |
|
mobintegL |
Hi, Here is our debug.log hidden link Let me know if you find anything. Thank you! |
| April 30, 2025 at 2:14 pm #16984424 | |
|
Otto |
Hello, I requested access to the debug.log file. Please let me know here when it's provided. Also, please let me know if you manage to do the test I suggested here: Best Regards, |
| April 30, 2025 at 2:19 pm #16984474 | |
|
mobintegL |
Hi Otto, I've granted you access to debug.log. We are still working on the staging environment, I'll let you know what we find. Thank you! |
| April 30, 2025 at 2:28 pm #16984500 | |
|
Otto |
Hello, Thanks. There are no Fatal Errors in the debug file. There is one recurring notice related to the code-snippets plugin. I would start trying to deactivate that one first. Let me know how the testing goes. Best Regards, |
