Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+01:00)

This topic contains 34 replies, has 3 voices.

Last updated by Ahmed Mohammed 4 years, 4 months ago.

Assisted by: Yvette.

Author Posts
June 5, 2020 at 1:59 am #6299685

andyZ-4

I am trying to:
Update contents of Avia Layout Builder and the belonging translation via Translation Editor.
Mostly we do not know how often somebody changes the original content or also the translator is updating the translations more often for fixing contents in that language.

  • 1) Update the Text-Block in the Translation (!!) first by adding a letter or something to the Text-Block (originally a Avia Layout Build Text-Block)
    • This is a common use case for us
    • Save translation with 100% done
  • 2) Update the Text-Block in the original page afterwards
    • save
  • 3) Open the translation in Translation Editor mode again (as it is in status "Needs Update" now)
    • The Text-Block will now show content from the original language in the translation field and the translation content is completely gone.

    Link to a page where the issue can be seen:
    This occurs in the backend in the Translation Editor.
    No frontend issue until we would save it that way. But we always re-translate everything manually by getting cached versions and replacing it one-by-one.
    I attached a image with the issue.

    I expected to see:
    The translated content, that was perfectly saved before and also visible in the frontend.

    Instead, I got:
    A new content from the original Text-Block. The translation content is gone.

    This issue occured while trying to reproduce this one (But it was written that it is closed/solved, but it is not):
    https://wpml.org/forums/topic/translated-content-gets-overwritten-with-original-language/

    We have updated all plugins to the newest version and additionally created a fresh installation of WordPress+WPML+Enfold Theme and the issue occurs everywhere.

    We could give you full access to our Dev.- or Staging-Site.

wpml-error-translation.JPG
June 7, 2020 at 11:10 am #6314427

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

The workflow you´ve written is not a recommended one. So, I want to be sure that I have understood what is going on.

I understand that you are generally modifying the source/original language version of the page BEFORE the translations are completed.

Is this correct?

The expected workflow is:
Create page -> Translate -> Complete Translation -> Modify oriignal -> Update translation

If you are editing the original page at any time that there is an ongoing translation job open, this will cause unexpected issues to happen.

Can you please confirm that I have understood your workflow correctly?
Is there any way that you can cease this kind of interrupted translation jobs?

Thanks

June 7, 2020 at 3:11 pm #6315217

andyZ-4

Hi,

sorry that our workflow was not explained correctly.
We do not touch original pages/contents when any of their Translations are in active translation process (when there is a open Translation Job).

I will show it like you did:
(1)
Create page > Translate > Complete Translation.

(This is now a stable situation. Original content is good and translation is good.)

Now, we have often the situation that the Translation is not totally correct, maybe some sentences should be corrected or there are typos or anything. We need to re-edit the Translation without doing any change to the original, because everything is fine there.

So then (after the first workflow) we have very often this workflow:
(2)
Edit Translation (via Translation Editor) > Complete Translation.

Now, still everything is fine in the frontend, but we think something must be going on in the backend. As our pages have a long lifetime, after some weeks/months/.. there will be a change in the original page content.
We then begin with the workflow that is described by you:
(3)
Modify Original > Update Translation

And exactly here, in the "Update Translation" process we loose all translated contents of these blocks that have been changed in (2).

As we often do corrections to contents in translations this issue occurs too often and without any notice.

We can give you full access to a installation of ours to reproduce this error.

Thank you for your help.

June 8, 2020 at 8:49 am #6319055

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Thank you for the clarification.

It sounds like you have a clear understanding of your workflows - and this helps a lot.

Are you using the Advanced Translation Editor (with machine translation) or the Classic Transaltion Editor?

THanks for advising on this point.
PS. With the ATE, I was able to replicate the behaviour you are talking about and I am enquiring internally about the workflow that should be used to avoid this.

June 8, 2020 at 9:04 am #6319129

andyZ-4

Hi,
we use the Classic Translation Editor.

Our site is available in 4 languages. One Translation language is mostly translated via the Classic Translation Editor by ourselves. The two others are managed via Xliff export/import to a translation agency and small corrections afterwards in the CTE if necessary.

Thank you for your help.

June 8, 2020 at 9:25 am #6319301

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

I have some clarification on the correct workflow to be using. It should be as follows:

(1) Create page > Translate > Complete Translation. (like before)
(2) *trigger change to original page (change title, save, then reverse change)*, Edit Translation (correcting translation) > Complete Translation.
(3) Modify Original > Update Translation

The key is to NEVER make changes to the translated content without opening a new translation job going through the original page.

Could you please try this workflow and see if it works for you?

June 8, 2020 at 10:02 am #6319613

andyZ-4

Hi,

maybe I misunderstand you.

Can you confirm this: After creating a page and completing the Translation I should never ever click on the "Pen" icon that says "Edit Translation" ?

Why is WPML not hiding/removing this icon then, if it should never be used?

I thought after clicking on the "Pen" icon it will definitely create a Translation Job until it is completed again with 100%.

If I modify a Translation (which was completed before) and define one field as "not complete" and save the Translation it has created the Translation Job. So doing this triggers the same issue as when completing it directly.

Thank you very much for your help.

June 8, 2020 at 10:32 am #6319809

andyZ-4

Hi,

I ran your workflow several times. The same issue still exists.

I use a Special-Heading Element via Avia Layout Builder.
(1) Change the page title in Original (remove 1 letter) > Update > Reverse the change > Update
(2) Update the Translation (which is in "Needs update" state) by changing the headline-translation in CTE and complete
(3) Change the headline-content in Original (Translation is again in "needs update" state)
(4) Update Translation >> The translation content is gone

June 8, 2020 at 11:05 am #6320123

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Thanks for testing the advised workflow.

You wrote: "...Why is WPML not hiding/removing this icon then, if it should never be used?.."
Confession: I thought the exact same thing when advised to modify the workflow as I wrote it.

You wrote: "..I thought after clicking on the "Pen" icon it will definitely create a Translation Job until it is completed again with 100%..."
My response: Technically, the job is triggered only from the source language.

Update:
So, I have been researching this incidednt and it seems that it happens when the site language is set to something other than English and with the ATE.

When I use the CTE, even with a non-English site, I cannot get the behaviour to reproduce as I was able to before on my test server.

Can I try the workflow on your site? Could you please prepare a very simple sample page that consistently shows the error and that won´t interfere with anything you are doing on the site? I am opening the private area for credentials in the case that this is possible.

Thanks

June 8, 2020 at 12:54 pm #6321241

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

Thanks for the test site. HEre are my observations:

1. I do not get the behaviour with pages that are not using av pagebuilder elements.
e.g. hidden link

2. I consistently can reproduce the behaviour with your child-theme

3. I am not able to consistently reproduce the behaviour with the parent theme.
I am using the test page : hidden link

I´ve left the parent theme active.
Can you please confirm if you are able to reproduce the problem?

June 8, 2020 at 1:26 pm #6321725

andyZ-4

Hi,

I also switched between the main Enfold theme and the Enfold child theme and in both cases I can reproduce the error.

As our main page uses heavily the AV pagebuilder it is kind of urgent that it has to work with it.

ninja-child-main-theme-wpml-bug-test.png
June 8, 2020 at 2:24 pm #6322407

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

I understand this.

Could you please upload your parent theme here:
hidden link

Then see if you are able to reproduce the issue.
Please - onlly upload your parent theme and nothing else.

June 8, 2020 at 3:18 pm #6322879

andyZ-4

Hi,

I did following steps to reproduce the error:
1) Upload and activate the Enfold theme from my local file
2) Created a new page with the Advanced Layout Builder (in the beginning this was very unhandy. When trying to type the title it always jumped to the debug-block)
3) Translated with Translation Editor.

The first test was successful. No translation got lost.

4) Activated the "WP Classic Editor" in Enfold Theme Options, as this is the editor situation in hour installation and not the blocks-editor.

Test was replacing the translation contents as in the screenshot.

Maybe the Classic Editor is in conflict with any WPML functionality.

ninja-external-wp-enfold-test.JPG
June 8, 2020 at 4:47 pm #6323661

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Yes - it very well may be.

We need to do more tests and this is the purpose of the sandbox site - to be able to isolate the issue.

Once we have determined the exact conflict, I can escalate to our compatiility team.
Can you do your translations without this editor enabled?

June 8, 2020 at 5:58 pm #6324041

andyZ-4

Hi,

I have to correct me, we do use the Block-Editor as Enfold Theme Option.

Aren't Translations being made in a) Classic-Translation-Editor or b) Advanced-Translation-Editor? Or is there another method? (Except the old method via page-editing)