Skip Navigation

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

Problem:

The client is experiencing issues with the WPML translation queue not loading, displaying the error 'Aufträge konnten nicht geladen werden'. This issue began after adding new languages and persists despite various troubleshooting steps, including disabling plugins and adding different language pairs to the translator profile. A 'Division by Zero' error was identified in the debug log, indicating a potential cause.

Solution:

We resolved the issue by running SQL queries to update the status of translation jobs in the 'icl_translation_status' table. First, we changed the status of jobs that were 'In Progress' (status 2) to 'Needs Update' (status 1) with the following query:

UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 1 WHERE `status` = 2

Then, we set all remaining ongoing jobs to 'Finished' (status 10) using these queries:

UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 10 WHERE `status` = 1;
UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 10 WHERE `status` = 9;

After applying these fixes, we advised the client to go to WPML > Translation Management and resend any pages they wish to translate.

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. If problems persist, please open a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 13 replies, has 1 voice.

Last updated by Bigul 4 days, 15 hours ago.

Assisted by: Bigul.

Author Posts
June 28, 2025 at 12:06 pm #17179306

Johannes Rohr

Background of the issue:
I am trying to access the translations queue in WPML. When I go to the translations queue, WPML attempts to load the tasks but fails. The issue can be seen at this link: hidden link.

Symptoms:
WPML tries for a while and then gives up, displaying the error message "Aufträge konnten nicht geladen werden". This error started about 30 minutes ago and persists even after deleting the cache.

Questions:
Why can't the translation queue be loaded?
How can I resolve the error 'Aufträge konnten nicht geladen werden'?

June 28, 2025 at 12:09 pm #17179327

Johannes Rohr

The help misdetect the installed mariadb version. The installed version is 10.6.22, not 5.something.
Also the WPML SEO plugin is at the latest avaiable version. An update which I am suggested to install is NOT available.

June 28, 2025 at 12:46 pm #17179357

Johannes Rohr

An additional note: This seems to have started occurring since I enabled two more languages (Dutch & Spanish), however, disabling them again didn't resolve it.

June 28, 2025 at 4:55 pm #17179567

Johannes Rohr

Problem persists after deactivating a bunch of plugins, including wordfence, wp-super-cache and redis object cache.

June 28, 2025 at 5:30 pm #17179594

Johannes Rohr

when I assign another language pair to myself, the problem goes away, but this is an ugly kludge, because I don't speak those other languages. Also now I face the error that when I click "review" for a particular translation and then "edit", the editor opens but never displays anything, instead it says "unable to retrieve job details". WPML seems really buggy.

June 28, 2025 at 7:16 pm #17179633

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you resolve the issue.

Please go to WPML >> Translation Management >> Translation Jobs and make sure the posts or pages you sent for translation show your name as the translator, or that they are marked as “first available” for translation.

Please try the steps below and check if it works as expected:

- Create a simple post for testing in the default language.
- Go to WPML >> Translation Management Dashboard.
- Select the test post and assign yourself as the translator (instead of selecting "Translate automatically" – see this screenshot: hidden link).
- Send the post for translation.
- Then go to WPML >> Translations and check if everything works as expected.

--
Thanks!

Bigul

June 28, 2025 at 7:27 pm #17179637

Johannes Rohr

My goal is to /review/ existing and automatic translations, not to accept translation jobs as you seem to imply. Again, the strange behaviour is, that when I add a second language pair to my own translator profile, the error goes away, yet since I don't actually speak the other language, this is an ugly kludge. Can you explain this rather odd behaviour? Have you seen it before?

June 29, 2025 at 9:55 am #17180087

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I requested the above steps to check if the issue also occurs with new posts.

Please go to WPML >> Translation Management >> Translators tab, remove the existing translators (after taking a full site backup), and then add them again. After that, check if the issue still exists.

If the problem remains, please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following links for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable WordPress Debug log, open your wp-config.php file of the site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
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 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link, it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion.)

--
Thanks!

Bigul

June 30, 2025 at 1:18 pm #17184646

Johannes Rohr

I did as you advised and it partly helped. In the sense that now the problem occurs not all the time, but in specific situations. I reproducibly get this error when clicking "next" on the first page in the translation queue or "back" on the last page. So the page between them is just never displayed. I'll produce the debug output you requested.

June 30, 2025 at 6:39 pm #17185755

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I hope you have enabled WordPress Debug Mode as described in my previous reply.

If yes, please check the "wp-content/debug.log" file to see if it contains any warnings or errors related to WPML while the issue occurs. This will help us identify the root cause.

Also, please check the browser console for any JavaScript errors when you are on the WPML >> Translations queue page.

--
Thanks!

Bigul

July 1, 2025 at 11:08 am #17188082

Johannes Rohr

This is what I see in the debug log:

[01-Jul-2025 11:07:15 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php:41
Stack trace:
#0 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-jobs-view-model.php(117): WPML_TM_Rest_Job_Progress->get()
#1 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-jobs-view-model.php(66): WPML_TM_Rest_Jobs_View_Model->map_job()
#2 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-tm-rest-jobs.php(215): WPML_TM_Rest_Jobs_View_Model->build()
#3 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/rest-api/class-wp-rest-server.php(1292): WPML_TM_REST_Jobs->get_jobs()
#4 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
#5 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()
#6 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/rest-api.php(459): WP_REST_Server->serve_request()
#7 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/class-wp-hook.php(324): rest_api_loaded()
#8 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#9 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/plugin.php(565): WP_Hook->do_action()
#10 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/class-wp.php(418): do_action_ref_array()
#11 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/class-wp.php(818): WP->parse_request()
#12 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-includes/functions.php(1342): WP->main()
#13 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-blog-header.php(16): wp()
#14 /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/index.php(17): require('...')
#15 {main}
thrown in /var/www/chrooted/eciweb/htdocs/psychedelicare.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php on line 41

July 1, 2025 at 12:25 pm #17188492

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. This may be related to the following ticket.

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

So please try the workaround suggested in the resolved summary there after a full site backup (mandatory) and make sure the bug exists or not.

--
Thanks!

Bigul

July 1, 2025 at 2:51 pm #17189199
Johannes Rohr

Thanks. This workaround seemed to help. Unfortunately, then the very first item I tried to review after that again hung with the message "unable to retrieve job details" (or similar), but this is probably a separate issue.

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/unable-to-retrieve-job-details-8/

July 1, 2025 at 3:59 pm #17189446

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I have created a new ticket for this issue to make it easier to follow up and to avoid mixing multiple topics in one ticket.

I will get back to you soon in the latest one. Please wait.

--
Thanks!

Bigul