Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client was unable to load translation jobs in the WPML translation editor, encountering an error message stating 'jobs could not be loaded' and a critical site error. Despite increasing memory and resynchronizing the site key, the issue persisted, indicated by a DivisionByZeroError in the WPML plugin's REST API.
Solution:
1. We advised checking the WPML->Support->ATE error logs for the top three errors to identify potential causes.
2. We recommended increasing the WP_MEMORY_LIMIT to at least 256M, following the guide at https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-to-increase-your-sites-memory-limit.
3. We suggested enabling the WordPress debug log to capture any specific errors related to WPML, providing steps to configure WP_DEBUG settings.
4. The issue of the key mismatch was addressed by instructing the client to delete the existing site key, unregister WPML from their site, and register again with a new key.
5. We identified this as a known issue similar to other cases discussed in WPML forums. We recommended trying the workaround suggested in those threads after ensuring a full site backup.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your specific case, 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. Should the problem persist, please open a new support ticket at WPML support forum for further assistance.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 9 réponses, a 0 voix.

Dernière mise à jour par Ilyes Il y a 6 jours et 6 heures.

Assisté par: Ilyes.

Auteur Articles
mai 21, 2025 à 2:45 pm #17058135

albaneC

Contexte de la question:
I am trying to go to the translation editor to translate elements I've sent for translation. The issue can be seen on this page: lien caché.

Symptômes:
I expected to see a list of items to be translated, but instead, I got an error message saying 'jobs could not be loaded'. The page is empty.

Questions:
Why are the jobs not loading in the translation editor?
How can I resolve the error message and see the list of items to be translated?

mai 21, 2025 à 8:23 pm #17059000

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for contacting WPML support team,

Please go to WPML->Support-> ATE error logs and share with me the top 3 errors you see logged.

This will help us understand what might be causing this behavior.

I also recommend increasing your WP_MEMORY_LIMIT value to at least 256M (You currently have 40M)
Please follow this documentation to learn how to increase it :
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-to-increase-your-sites-memory-limit

Finally, if this did not help, please check if you are getting any errors or warnings related to WPML in the WordPress Debug log or Server Error Log while having this issue. May you need your hosting team's support to access the server error log file.

To enable WP debug log, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file

define('WP_DEBUG_LOG', true);

// Disable display of errors and warnings which is recommended on a live site.

define('WP_DEBUG_DISPLAY', false);

@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory

If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

mai 22, 2025 à 11:58 am #17061395

albaneC

We increased the memory as advised, but this didn't solve the problem.
Attached is the error log

Capture d’écran 2025-05-22 à 13.57.23.png
mai 23, 2025 à 2:17 am #17063947

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

The ATE error logs shows that the Key is mismatching, apparently the key wasn't added correctly,

Please go to your account page (https://wpml.org/account/sites/)
- Delete the key for the site
- Go to plugins-> Add new-> Commercial tab
- Click on "Unregister WPML from this site"
- Click on "Register WPML"
- Click on "Get a key for this site"
- Register the site and enter the new key

Let me know how it goes,

Best,

mai 23, 2025 à 12:50 pm #17066373

albaneC

I've solved the key problem, it's synchronized, but the problem persists, still “no data”, it's becoming urgent... I haven't been able to translate for several days now. The console shows the following error:

{
"code": "internal_server_error",
"message": "<p>Il y a eu une erreur critique sur ce site.<\/p><p>

Capture d’écran 2025-05-23 à 14.50.00.png
mai 23, 2025 à 12:51 pm #17066388

albaneC

{
"code": "internal_server_error",
"message": "<p>Il y a eu une erreur critique sur ce site.<\/p><p>

mai 23, 2025 à 8:56 pm #17067900

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

In that case we need to check the wp debug log, you could share an access to your site if you'd like me to take care of it for you,

Else, you can enable the error log as mentioned here : https://wpml.org/fr/forums/topic/editeur-de-traduction-2/#post-17059000

mai 26, 2025 à 12:45 pm #17073342

albaneC

Hello,
Thank you for your reply.
I can't share the back office access with you. We still have “no data” loading on the WPML backoffice, in terms of managing translation tasks, when we send an article or a page for translation, the manager is empty. Here's what we've done so far:
- Increase memory: ok
- Re-synchronized the site key: ok
- The log doesn't show any new errors since the last error which said “Api error missing resource: No sitekey found for this website”.
- We've looked at the error in the console when we load the page, and here's the error that comes up, can you tell me what you think?

{
"code": "internal_server_error",
"message": "<p>Il y a eu une erreur critique sur ce site.<\/p><p>

Capture d’écran 2025-05-26 à 14.44.31.png
mai 26, 2025 à 12:45 pm #17073357

albaneC

I can't copy the entire error code, so I've put it in a screen.

mai 26, 2025 à 7:14 pm #17074896

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

So this is a known issue, That may be related to the following tickets.

https://wpml.org/forums/topic/if-i-click-on-the-job-page-within-wordpress-it-says-that-jobs-cannot-be-loaded/

https://wpml.org/fr/forums/topic/split-impossible-de-charger-les-travaux/

Please try the workaround suggested in the resolved summary of the above tickets after a full site backup {mandatory}. Then make sure you can access the Translation Jobs, and also the following fatal error is showing in the Debug.log or not.

Here is the exact error for reference

PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /***/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php:41