Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with WPML Translation Management where 'Jobs could not be loaded' due to wp-json being disabled for security reasons. Additionally, they encounter a message stating 'You can only edit translations assigned to you' and are considering downgrading WPML due to these issues.
Solution:
We recommend setting the Classic Translation Editor (CTE) as the default method for creating translations, which does not require the REST API and thus bypasses the issue with wp-json being disabled. Here are the steps:
1. Set CTE as the default translation method: https://wpml.org/documentation/translating-your-contents/translation-editor-options/
2. Alternatively, use the WordPress Editor for creating translations and avoid using WPML > Translation Management and WPML > Translations for these contents.
3. To hide WPML's menu options 'Translation Management' and 'Translations', use the Admin Menu Editor plugin: https://wordpress.org/plugins/admin-menu-editor/
4. If using the WordPress Editor, ensure that translators have the admin user role to create translations.
If these solutions do not resolve your issue or seem outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.

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 22 replies, has 2 voices.

Last updated by Andreas W. 1 year, 6 months ago.

Assisted by: Andreas W..

Author Posts
May 31, 2024 at 4:27 pm #15693488

franciscoR-11

Thank Andreas, WPML > Translation Management > Jobs is empty and at the right side, there is a message "Jobs could not be loaded" . I uploaded a screenshoot.

Regards.

May 31, 2024 at 4:27 pm #15693490

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

June 3, 2024 at 11:16 am #15697599

franciscoR-11

Andreas, thank you. We can not give you access to the production or test enviroment. What we can do is create a enviroment for you as copy of code and database for you. It will take 2 days. Is it ok for you to access to cloned enviroment ?

June 3, 2024 at 12:41 pm #15697906

franciscoR-11

Andreas, I kown why we can not see WPML > Translation Management > Jobs. It is because we have wp-json disabled. We have wp-json disabled for security reasons, and we don't want to enabled it. We tried to WPML > Translation Management > Jobs because for some of the existing translations the button is disabled and we get the message "You can only edit translations assigned to you." So. due to we are not going to use WPML translations jobs, can we delete all from database, to remove the message "You can only edit translations assigned to you." ?

June 4, 2024 at 9:09 am #15700562

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

My apologies for the delay in answering, as Sundays and Mondays are my non-working days.

The Translation Management is a core feature of WPML and it is no longer able to be disabled (in earlier years it was an additional plugin).

This means, that there is no way to completely remove the module from WPML, as it tracks the translations on your site and is necessary for the communication between your site, and the Advanced Translation Editor, which runs on an external server.

If jobs can not be loaded, then the site will not be able to use the Advanced Translation Editor (ATE) and you need the REST API for this communication:
https://wpml.org/documentation/support/rest-api-dependencies/

Alternative workaround:

Set the Classic Translation Editor as the default method for creating your translations:
https://wpml.org/documentation/translating-your-contents/translation-editor-options/

The Classic Translation Editor (CTE):
https://wpml.org/documentation/translating-your-contents/using-the-translation-editor/

This editor does not support translation memory, glossary, or automatic translation. If you switch from ATE to CTE you will still be able to use your translations, but if you later on switch back to Advanced Translation Editor, the translation will need to be redone completely.

Or use the WordPress Editor for creating translations:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Further, you should be able to hide the WPML's menu options "Translation Management" and "Translations" by using this plugin:
https://wordpress.org/plugins/admin-menu-editor/

Let me know if you have any further questions.

Best regards
Andreas

June 5, 2024 at 10:58 am #15706277

franciscoR-11

Thanks Andreas. We are a bit disapointed with WPML. It should always maintain functionalities when upgrade, because if not, you can create a lot of troubles. We are thinking to downgrade to our old version and search for alternatives to WPML, if there is no solution, because we can no work like this. Any sugestion ?

June 5, 2024 at 2:25 pm #15707446

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

How are you translating your content?

1) Advanced Translation Editor

2) Classic Translation Editor

3) WordPress Editor

June 10, 2024 at 9:31 am #15721028

franciscoR-11

Thank you Andreas, we have 2) Classic Translation Editor.
We don't have the option to set 3) WordPress Editor. Attach a screenshot.

sceenshoot.png
June 11, 2024 at 1:52 pm #15727223

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

If you use the Classic Translation Editor, and you are not using any professional translation services, then you might not really need the REST API.

Could you please provide me access to the site's copy so that I can have a closer look at the issue?

The private reply form is enabled again.

June 19, 2024 at 8:00 am #15753712

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

The jobs likely can not be loaded, as the REST API is not enabled and our plugin WPML String Translation is not active on the site. The website also seems not to be registered on wpml.org with its proper site key.

IMPORTANT:

If you use the WordPress Editor for creating the translation I need to recommend not using WPML > Translation Management and WPML > Translations for those contents.

WPML Translation Management is designed for the usage of the WPML Translation Editor and I can even currently experience an unexpected behavior:

1) Open a Post on the WordPress Editor
2) In the right sidebar change the translation method to "WordPress Editor"
3) Now, go to WPML > Translation Management and create a job for this post
4) Access the translation on WPML > Translations

Result: The WPML Translation Editor will open. I get the same results if the post was already translated or not.

Issue: If a translator completes the translation on the WPML Translation Editor, any translations that priorly were made on the WordPress Editor will be overwritten.

I have escalated this issue internally now for further discussion.

Best regards
Andreas

June 19, 2024 at 9:55 am #15754641

franciscoR-11

Andreas, website it is registered to wpml.org. We are going to enable json api only for logged in user. Thanks for escalating this issue internally.

Regards.

June 19, 2024 at 10:36 am #15754881

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

About the registration:

WPML must be re-registered after each website migration or after changing the domain or domain provider. This means, that if you create a staging or dev site, then each site needs its own site key.

1) Go to https://wpml.org/account/websites/

2) If the site URL is already registered, delete it from the list, then add it again. If you are using a completely new site URL, add it to the list.

3) Adding the site URL (again) created a new site key.

4) Click on "Show key" and copy it.

5) Enter the key under Plugins > Install > Commercial (tab) to re-register WPML. If WPML is still registered here, de-register it first.

June 19, 2024 at 10:56 am #15755076

franciscoR-11

Andreas, wpml is ok in dev-eldigital.elazos.com. We don't need to do anythink. Why you ask me to register ?

Untitled2.png
Untitled.png
June 19, 2024 at 11:40 am #15755392

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

I am asking because if I go to WPML > Support > Installer Support and click "Check now" it says that the site key is not correct.

Now, this could be an old message, but usually, once we click "Check now" again it should say that the site is registered correctly.

Anyhow, this is not really that important in this case, as you are not using the Advanced Translation Editor and the only issue you might experience is that you will not be able to download our plugins by going to Plugins > Add new > Commercial.

Important is, that if you use the WordPress Editor for the translations, you should not use WPML > Translation Management and WPML > Translations after all.

Those translations will be created by using the WPML translation status icon on the pages or post lists or directly by using the Language setting inside the the right sidebar of the WordPress Editor.

The role "Translator" might further not be suitable for this purpose. Your translators might need the admin user role to be able to create translations using the WordPress Editor.

Please make sure to inform any involved translators about this workflow and let me know if you run into issues with the translations.

June 20, 2024 at 8:50 am #15762170

franciscoR-11

Andreas, when you say "Those translations will be created by using the WPML translation status icon on the pages or post lists or directly by using the Language setting inside the the right sidebar of the WordPress Editor."

When you say "Those translations", do you mean "manually created translations" ? So, creating translations through status icon in pages or post lists, or directly by using the Language setting is what we normally do.

About the role "Translator" we will not use it.

Regards.