Skip to content Skip to sidebar

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

Problem:
If you're experiencing the issue where translations are not working and encountering the error message 'Unable to retrieve job details' when trying to translate a numeric value in the Advanced Translation Editor (ATE), it's because WPML by default excludes numeric values in the job data sent to ATE.
Solution:
We recommend adding the following custom code to the file

functions.php

in your theme or child theme folder. This code allows the translation of numeric values. After adding the code, re-send the string to translation:


function wpml_allow_translating_numbers( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
    if ( is_numeric( $data ) ) {
        return true;
    }
    return $is_translatable;
}
add_filter( 'wpml_tm_job_field_is_translatable', 'wpml_allow_translating_numbers', 10, 2 );

Please ensure to backup your database and website before proceeding. For more details, you can refer to our forum discussion on translating numbers.

If this solution does not apply to your case, or if it seems 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 you still need assistance, 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.

Tagged: 

This topic contains 10 replies, has 0 voices.

Last updated by Long Nguyen 3 months ago.

Assisted by: Long Nguyen.

Author Posts
January 7, 2026 at 11:42 am

frantisekB-4

translations are completly not working

January 8, 2026 at 4:30 am #17711297

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Frantise,

I’m Long from the WPML Development team, I’m happy to help you with this issue.

The error message "Unable to retrieve job details" occurs when you translate a numeric value in the Advanced Translation Editor (ATE) because there is no translation data in the job.
By default, WPML will exclude the numeric value in the job data that is sent to ATE for translation. If you want to translate the numeric value, you can add the custom code below to the file functions.php in the theme or child theme folder. Then re-send the string to translation.

function wpml_allow_translating_numbers( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
    if ( is_numeric( $data ) ) {
        return true;
    }
    return $is_translatable;
}
add_filter( 'wpml_tm_job_field_is_translatable', 'wpml_allow_translating_numbers', 10, 2 );

❌ IMPORTANT: Please backup your database and website before proceeding ❌

Here is a reference https://wpml.org/forums/topic/translating-numbers-2/

Looking forward to your reply.
Thanks

January 8, 2026 at 11:03 pm #17714513

frantisekB-4

I pasted it as you said, sent the string to translate manually myself, doesnt work.
Even before that, when I go to translation Jobs tab, I get error Jobs could not be loaded.... same error after pasting the code and resending string for translation...

Currently I can not translate anything from translations queue because there is nothing - error Jobs could not be loaded.

This is absolute major problem, my site is in production!

January 9, 2026 at 2:01 am #17714619

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It could be another issue with the translation queue and jobs. I would like to request temporary access (wp-admin and FTP) to your site so I can take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/

Looking forward to your reply.
Thanks

January 12, 2026 at 8:45 am #17720393

frantisekB-4

Hello, any updates? I have provided you with the access already.

January 13, 2026 at 1:53 am #17723450

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I've tried to restore your site on my staging site and didn't see the issue when visiting the WPML > Translations page or Translation Jobs page.
On your site, I see the error message "500 internal server error" in the Console tab of the browser. There could be some different settings between hosting and cause the error in the background.

Could you please enable WP debug log, visit the Translations page again, check the log for a fatal error message and share it with me?

Please follow the WordPress documentation to enable WP debug https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/

Also, please share the FTP account so I can check the issue further. Your next reply is set to private to share the info.

Thanks.

Translations ‹ RohovaLavica.sk — WordPress 2026-01-13 08-45-32.png
Translations ‹ RohovaLavica.sk — WordPress 2026-01-13 08-44-52.png
January 14, 2026 at 12:17 am #17727554

frantisekB-4

.

January 14, 2026 at 12:19 am #17727555

frantisekB-4

I have already shared my FTP with you, feel free to check.
I tried to enable debug log, but I dont see on the frontend any fatal error, only deprecated warnings, which are not a problem.
The error is shown after loading, so it wont be shown right away.
I checked also debug.log file in wp-content, only fatal error I found was:

PHP Fatal error: Uncaught Error: Failed opening required 'https://cdn.wpml.org/data/a/d/ad2ca022-2abf-4990-a23b-a04139e1edfd/site.xx/web/.maintenance' (include_path='.:/usr/share/php') in /data/a/d/ad2ca022-2abf-4990-a23b-a04139e1edfd/site.xx/web/wp-includes/load.php:444
Stack trace:
#0 /data/a/d/ad2ca022-2abf-4990-a23b-a04139e1edfd/site.xx/web/wp-includes/class-wp-fatal-error-handler.php(37): wp_is_maintenance_mode()
#1 [internal function]: WP_Fatal_Error_Handler->handle()
#2 {main}
thrown in /data/a/d/ad2ca022-2abf-4990-a23b-a04139e1edfd/site.xx/web/wp-includes/load.php on line 444

January 14, 2026 at 3:07 am #17727715

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I get this fatal error from the debug log

[14-Jan-2026 02:43:33 UTC] 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
Stack trace:
#0 /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(Object(WPML_TM_Post_Job_Entity))
#1 /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(Object(WPML_TM_Post_Job_Entity), Object(WPML_TM_Jobs_Search_Params))
#2 /wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-tm-rest-jobs.php(214): WPML_TM_Rest_Jobs_View_Model->build(Object(WPML_TM_Jobs_Collection), 97, Object(WPML_TM_Jobs_Search_Params))
#3 /wp-includes/rest-api/class-wp-rest-server.php(1292): WPML_TM_REST_Jobs->get_jobs(Object(WP_REST_Request))
#4 /wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wpml/tm/v1/job...', Array, NULL)
#5 /wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#6 /wp-includes/rest-api.php(467): WP_REST_Server->serve_request('/wpml/tm/v1/job...')
#7 /wp-includes/class-wp-hook.php(341): rest_api_loaded(Object(WP))
#8 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#9 /wp-includes/plugin.php(570): WP_Hook->do_action(Array)
#10 /wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#11 /wp-includes/class-wp.php(821): WP->parse_request('')
#12 /wp-includes/functions.php(1343): WP->main('')
#13 /wp-blog-header.php(16): wp()
#14 /index.php(17): require('/data/a/d/ad2ca...')
#15 {main}
  thrown in /wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php on line 41

It looks similar to the issue in the ticket below and we have a workaround to fix it by running SQL queries in the database
https://wpml.org/forums/topic/error-loading-translation-queue-uncaught-divisionbyzeroerror/#post-15652643

UPDATE `wp_icl_translation_status` SET `status` = 10 WHERE `status` = 1;
UPDATE `wp_icl_translation_status` SET `status` = 10 WHERE `status` = 2;
UPDATE `wp_icl_translation_status` SET `status` = 10 WHERE `status` = 9;

Can you please try running the SQL queries and let me know if it helps?
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

January 14, 2026 at 8:24 am #17728012

frantisekB-4

ok this helped, thanks

January 15, 2026 at 12:00 am #17731469
frantisekB-4

Hi again, I found out there might be a different problem now, related with translating numbers which you suggested earlier.

Is it possible that WPML is now translating array values and shows them on frontend for some plugins?

I dont know how but it may picked up some array values for some dropdown fields and now they are shown in some places on the site. I tried to remove all untranslated strings but it stays there. Weird thing is that only German language works fine-without these array numbers shown, other languages show them.

These numbers are metadata for product configuration - yith-woocommerce-product-add-ons plugin, so on product page its not visible, but once I add it with some configuration to shopping cart, its visible from now on all the way to order detail page, order email, invoice, everywhere....

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

https://wpml.org/forums/topic/is-it-possible-that-wpml-is-now-translating-array-values-and-shows-them-on-frontend/

Screenshot 2026-01-15 at 00.58.43.png
January 15, 2026 at 2:27 am #17731615

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It could be another issue with the YITH WooCommerce Product Add-Ons plugin so I split this ticket into a new one for better handling. Here is the new ticket URL
https://wpml.org/forums/topic/is-it-possible-that-wpml-is-now-translating-array-values-and-shows-them-on-frontend/

If you see that the issue with the translation of the numeric value in the Advanced Translation Editor has been resolved, please mark this one as Resolved.

Thank you.