Skip Navigation


Resolved in: WPML String Translation 2.5.4

Overview of the issue

In some cases, when a string coming from a page builder is updated, the old version of the string is still showing in the Translation Editor.


This issue will be fixed in next version of WPML String Translation. In the meantime, you can use the following patch.

In the ../wpml-string-translation/classes/page-builders/class-wpml-pb-string-translation.php file, on line 103, replace:

if ( ! $this->is_job_in_progress( $job_id ) ) {


if ( ! $job_id || ! $this->is_job_in_progress( $job_id ) ) {

For existing translation jobs with duplicated fields, please follow the steps bellow (after adding the patch):
1. Go to the editing screen of the page that features the strings in question.
2. Make sure no translation jobs are currently “in progress”.
3. If a job is in progress, complete it first.
4. Go back to the page editing screen and click on Update.
5. Open the translation editor again and the duplicated fields should be removed.

17 Responses to “Duplicated fields in translation editor for page builders (DIVI, Visual Composer, ...)”

  1. where i find this ?? “In the classes/page-builders/class-wpml-pb-string-translation.php file”

    • Hello @rahelH-2,

      The file path was incomplete, we just updated it in the description. You will find it in “sitepress-multilingual-cms/classes/page-builders/class-wpml-pb-string-translation.php”.


        • My apologies @ronL-4, it is in WPML String Translation plugin. Please edit the file “wpml-string-translation/classes/page-builders/class-wpml-pb-string-translation.php” (Corrected in the description).


  2. I’ve changed the code in the php file as suggested and am still seeing the old strings in the translation screen. I’m using the Divi Theme. I’ve tried updating the English (primary) page and then going back to the translation screen and that did not fix the problem.

    • Hello Mark,

      In order to refresh the fields in the translation editor, the translation job needs to be “completed”.

      Can you make sure you don’t have any jobs “in progress” before to update the original page (in English in your case)? If you are still facing the same issue, please open a ticket on the support forum and paste the link here.


      • Thank you. Yes, the problems were with translations that were in progress. After I completed one of them, I saw that the duplicates are now gone.

      • One more important thing though. It looks like brand new translations, one that were not in progress before this fix, still have all of the duplicate fields. I don’t want to have to go through every new page that I haven’t translated yet (this is a brand new site), and mark them all as completed so that the duplicates go away. Any way around this?


        • Mark,

          When you translate a page for the first time, (click on the “+” icon), a new translation job is created. At this point, with the patch of course, you should not have any duplicated field.

          The only problems are:
          – When a “completed” translation exists with duplicated fields, you need first to click on “Update” on the original page.
          – When a job is “in progress”, you need to complete it before anything else, otherwise, the fields are not refreshed.

          If you have several jobs “in progress”, you can also go to WPML -> Translations where you will see all the pending jobs (make sure you have the required language pairs as a translator).


    • Hello Richard,

      The patch has been added to the latest version of WPML String Translation 2.5.4. Please update WPML and add-ons to fix your issue. If you still have problems after the update, could you please open a ticket on the support forum?

      Note that if you have some jobs with already duplicated fields, you need to follow the steps mentioned in the description.