Skip to content Skip to sidebar

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 16 replies, has 3 voices.

Last updated by Mohamed Sayed 1 year, 4 months ago.

Assisted by: Mohamed Sayed.

Author Posts
March 11, 2024 at 1:43 pm #15395693

francescoM-51

Hi, pls have a look hidden link

I have enough credits to have this automatically translated but after 24 hours nothing happenend... I am doing something wrong?
Than you

March 11, 2024 at 5:52 pm #15396914

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello There,

Thank you for explaining the issue.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Typically, the translation process gets stuck in the "in-progress" state if there's any interruption happens during translation. Most of the time the issue gets resolved after following the instructions mentioned in the guide below:

- https://wpml.org/faq/translation-status-stuck-or-displaying-the-error-wpml-didnt-manage-to-translate-this-page/

Please try the instructions and I hope it will help in your case too.

If it doesn't work, please try to cancel the translation job and re-send these strings to see if this gets the issue fixed:

1. Navigate to WPML -> Translation Management -> Jobs.
2. Search for 'Strings translation'.
3. Select the jobs you wish to cancel.
4. In the Bulk actions dropdown, choose 'Cancel jobs'.

Then send it for translation again.

Please let us know if the issue persists and we'll reassess.

Thank you.

March 11, 2024 at 9:59 pm #15397409

francescoM-51

Hello Mateus thank you for your message, I followed your instructions, I have deleted jobs that where stuck and tried again to translate one only language but got the same issue again
look hidden link
thank you

March 12, 2024 at 9:10 am #15398143

francescoM-51

this morning I see also this message hidden link in Translation management

March 12, 2024 at 9:27 am #15398206

francescoM-51

could this be the cause of this problem? hidden link

March 12, 2024 at 9:29 am #15398211

francescoM-51

also have these 2 errors hidden link

March 12, 2024 at 5:45 pm #15400970

Mohamed Sayed

Hi Francesco,
I'm taking over this ticket and will be glad to help you.

When I check if the WordPress REST API is enabled by visiting this URL hidden link, I get the following error message:

{
status: "error",
error: "Restricted",
error_description: "Sorry, you are not allowed to access REST API.",
error_reason: "With the free plan, only WordPress default endpoints can be authenticated. You can upgrade to the suitable premium plan to securely access the custom built or 3rd-party plugin endpoint."
}

This means that the REST API endpoints used by WPML are blocked which is causing the automatic translation issue. If the WordPress REST API is disabled, WPML will not be able to perform some of the communication with the Advanced Translation Editor.

Kindly check the following docs for more info:

- https://wpml.org/home/minimum-requirements/
- https://wpml.org/documentation/support/rest-api-dependencies/

Please check if you're using any security plugins that could be blocking the REST API requests. If not, kindly contact your hosting provider and ask them to enable the REST API

Kind regards,
Mohamed

March 12, 2024 at 11:53 pm #15401743

francescoM-51

Hello Mohamed, thank you for your help...
I am on a VPS so no need to conta my providere as I can do whatever I want on my webserver,
do you have specific info on how to enable the rest API as I have found many different ways on the internet and don't know what is the right one, I don't think any plugin is preventing WPML to do his work but I can try to exlude them one by one and see but it will be a tedious work.
Do you have any better ideas?
Thank you

March 13, 2024 at 8:42 am #15402496

francescoM-51

now the rest API is enabled and all server requirements are met look:

hidden link

hidden link

I have cancelled the job that was stuck and tried again but the issue is still there...
no one string gets translated.

Thank you for you help.

March 13, 2024 at 9:07 am #15402590

Mohamed Sayed

Hi,

I would need to request temporary access (WP-Admin and FTP) to investigate the issue further.
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 first❌

✙ 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 if needed.

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

March 13, 2024 at 11:38 am #15403406

Mohamed Sayed

I checked the site and found that you're using the "Translate what you choose" mode for translation.

When you use this mode, the strings sent for translation will be translated automatically only after you open the translation job in the advanced translation editor.

Please go to WPML > Translations and click Translate next to the translation job with the strings then it will be translated once the translation editor opens.

Please check this guide: https://wpml.org/documentation/automatic-translation/automatically-translate-strings-with-wpml/#translating-strings-automatically-by-yourself

I tested translating one of the translation jobs and it works, please see here: hidden link

Kind regards,
Mohamed

March 14, 2024 at 6:56 am #15407567

francescoM-51

Hello Mohamed, thank you for your reply,
I think we are close to the solution but still one strange thing happening,
pls have a look hidden link
why are these strings showing in Italian with an English flag?
They should be in English as English is the default language
thank you

March 14, 2024 at 10:24 am #15408882

Mohamed Sayed

It seems that the original strings were added in Italian, you can change their source language with the following steps:

- Select the strings
- Click on the "Change language of selected strings" button
- Select Italian
- Add the English translation

Please check this guide for more info: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

March 15, 2024 at 9:18 am #15413485

francescoM-51

Hello Mohamed thank you againg for your feed back
I have one more question...
why is the Rest API displayed as Disabled? hidden link

While the API is working properly? Look hidden link
thank you

March 17, 2024 at 10:57 pm #15418932

Mohamed Sayed

Sorry for the late reply due to the weekend.

This could be a false positive since you see it enabled by accessing /wp-json/, so you can ignore it.