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.

This topic contains 23 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
November 9, 2023 at 2:39 pm #14768431

diegoC-51

Hello,

I have updated some content on two pages, then translated the texts in the ATE and now I see that in the front end, on the translated pages (French and English), there are texts that have reverted to the original language (Spanish) even though they are translated. One of them corresponds to the entirety of the Table of Contents of Rank Math, and the other is a separate H4 that doesn't appear in the ATE to be translated.

The contents are edited on the page in Spanish (the main language) and then translated into French and English using the ATE.
I cleared all the Cache and the problem persists.

I need your assistance, please, to fix this quickly.
These are the concerned pages:
hidden link
hidden link

Thank you.

I don't know if it's related, but every now and then I get this message that I'm attaching, when publishing the page. And other times a message about an unexpected JSON response.

2023-11-09_15h31_37.jpg
2023-11-09_15h10_13.jpg
2023-11-09_15h14_50.jpg
November 12, 2023 at 9:47 am #14783403

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply due to a higher workload. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

November 12, 2023 at 3:01 pm #14784143

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. Please deactivate all of your caching plugins, edit the page in the default language, make a minor edit to the untranslated strings, and update the page.

After that, please update the translation and check if the strings will be translated correctly on the front end.

I've added the following XML code to WPML-> Settings-> Custom XML tab to register the block.

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="rank-math/toc-block" translate="1">
      <key name="title" />
      <key name="content" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

Best regards,
Osama

November 12, 2023 at 3:19 pm #14784199

diegoC-51

Hi,
Thank you for your assistance.
I followed the steps you indicated.
But when I saved the original page, a message appeared: Saving failed (attached image). Why ?
Now the texts have appeared in the ATE (OK) but they are not translated in the front end.

Thank you for helping me!
Regards, D.

2023-11-12_16h10_13.jpg
November 12, 2023 at 3:22 pm #14784263

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Following these steps, please check if the issue persists in a minimal environment.

1- Deactivate all the plugins except WPML CMS, String Translation, Rankmath, and WPML SEO.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

If you face the saving issue again, please deactivate WPML and try to save the post again.

Best regards,
Osama

November 13, 2023 at 5:16 pm #14791319

diegoC-51

Hi,
After doing what you ask me to do? will the site look like it does now? I feel that I run the risk that the site will be upside down for some time. Every time WPML stops working I will have to do all this ????
I am not an expert and you are asking me to disassemble the site, which took me a lot of time to build, and I haven't finished yet, and put it back together again. So I ask, will everything go back to the way it was before?
If not, how do I restore the current configuration? Isn't there another way to fix this thing that is not working? you put the burden of the solution on me, while it is WPML that stopped working properly.
I contact technical support to help me solve the malfunction and I am asked to disassemble everything and reassemble it again? don't you have diagnostic tools to avoid the user from having to do what you ask me to do?
Thanks for your help. Cordially yours. D

November 13, 2023 at 5:36 pm #14791505

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

This test is needed to isolate the issue. If you are not comfortable doing this test on your site, please let me know if you have a staging site.

If not, please let me know to create a test site where you can migrate your site, so we can debug it safely.

Best regards,
Osama

November 13, 2023 at 5:42 pm #14791659

diegoC-51

Hi Osama,
thank you for your answer. I don't have a staging site. Can you please tell me more about the test site and how to proceed?

KInd regards. D

November 14, 2023 at 6:56 am #14793671

diegoC-51

Hello,
ok I will do as you say.
I have the following question:
Once all the plugins have been deactivated, if the problem disappears, does this mean that the frontend will show the translated texts.
So if I start activating the plugins, how will I see which one is causing an interaction issue, since the texts will already be translated?
Thanks for your assistance.
Best regards. D

November 14, 2023 at 7:45 am #14794165

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Diego,

If the translation worked correctly after deactivating the plugin and theme, we will need to activate them one by one. After each activation, we will update the page in the default language and its translation to check which activation caused the issue.

Best regards,
Osama

November 14, 2023 at 10:12 am #14796101

diegoC-51

Hi,
I'm trying to run the migration as you told me but this message appears.
"We are unable to contact the source site. Due to this the migration cannot be completed."
What could be blocking access?
Regards

2023-11-14_11h10_19.jpg
November 14, 2023 at 10:22 am #14796299

diegoC-51

Hi again,
I have removed the security rules from the server and now the message I get when I start the migration is like this:
"Site hidden link is redirecting to ."

2023-11-14_11h21_48.jpg
November 14, 2023 at 10:42 am #14796551

diegoC-51

Sorry,
I removed all the security rules and I could make the migration. It is done and the site online. Thank you!
Is it you or me who does the tests?
Best regars. D

November 14, 2023 at 11:49 am #14797279

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for migrating your site. I made some tests and found that the block is translated correctly on a new test post. (hidden link)

On the exciting post, the translation worked correctly when deleting the table of contents block and adding a new one. (hidden link)

Also, I tried to replicate the issue on the sandbox, but it's not replicable. (hidden link)
Sandbox login URL if you want to check it. (hidden link)

Best regards,
Osama

November 14, 2023 at 1:23 pm #14798103

diegoC-51

Hi Osama,
thank you.
But the problem is still there. 🙁
I the main site, I deleted the block in the ES version. I saved it and this message appeared: Updating failed. The response is not a valid JSON response. What does that mean?
In the front end the block dissapeared in all languajes.
I translated the block in the ATE in EN. It appeared already translated.
In the ATE for the FR version the text of the block doesn't appear.
And in the page in all languajes the block still shows in spanish. Non translated.
hidden link
hidden link

I need to please make this work. I have been unable to move forward for over a week now because of this issue.

Best regards, D.

2023-11-14_14h17_47.jpg
2023-11-14_14h18_45.jpg
2023-11-14_13h37_13.jpg