Skip Navigation

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

Problem:
If you're experiencing an error message 'jobs cannot be loaded' when trying to access page 2 of the Translation Queue or when increasing the number of items per page, it might be due to a specific item on that page causing a failure.
Solution:
We recommend accessing your database and running the following SQL query:

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

Make sure to replace {wpdbPrefix} with your table prefix. It's crucial to back up your database and website before proceeding. If you're unsure how to run the SQL query, please contact your hosting support for assistance.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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 the problem persists, please open a new support ticket.

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

Last updated by Long Nguyen 3 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
September 9, 2024 at 11:55 pm #16159015

rayaA

Background of the issue:
I am in Translation Queue page (hidden link). When I try to go to page number 2 (specifically page number 2) I see an error message 'jobs cannot be loaded'. The same happens when I try to increase the number of items in each page. I suspect that there is a particular item in page two that breaks the code, because there is no problem accessing other pages (pages 3-7 are accessible).

In the background this is the error that is logged in my log file when I try to access page 2:

[09-Sep-2024 23:46:41 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/u236960822/domains/fifthpress.org/public_html/style/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php:41 Stack trace: #0 /home/u236960822/domains/fifthpress.org/public_html/style/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-jobs-view-model.php(116): WPML_TM_Rest_Job_Progress->get() #1 /home/u236960822/domains/fifthpress.org/public_html/style/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 /home/u236960822/domains/fifthpress.org/public_html/style/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-tm-rest-jobs.php(215): WPML_TM_Rest_Jobs_View_Model->build() #3 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/rest-api/class-wp-rest-server.php(1193): WPML_TM_REST_Jobs->get_jobs() #4 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request() #5 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch() #6 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/rest-api.php(424): WP_REST_Server->serve_request() #7 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/class-wp-hook.php(324): rest_api_loaded() #8 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/plugin.php(565): WP_Hook->do_action() #10 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/class-wp.php(418): do_action_ref_array() #11 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/class-wp.php(813): WP->parse_request() #12 /home/u236960822/domains/fifthpress.org/public_html/style/wp-includes/functions.php(1336): WP->main() #13 /home/u236960822/domains/fifthpress.org/public_html/style/wp-blog-header.php(16): wp() #14 /home/u236960822/domains/fifthpress.org/public_html/style/index.php(17): require('/home/u23696082...') #15 {main} thrown in /home/u236960822/domains/fifthpress.org/public_html/style/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php on line 41

Symptoms:
Error message 'jobs cannot be loaded' when accessing page 2 of the Translation Queue or increasing the number of items per page.

Questions:
How can I access page 2. I would like to translate one of the "Footer" Template Part (there are two of them for some reason) to Spanish, but can't find it in the list although I sent to the queue from Translation Management. It might be in page 2.

September 10, 2024 at 5:27 am #16159230

Long Nguyen
Supporter

Languages: English (English )

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

Hi Raya,

Thank you for contacting WPML support, I’m happy to help you with this issue.

It looks like this issue https://wpml.org/forums/topic/if-i-click-on-the-job-page-within-wordpress-it-says-that-jobs-cannot-be-loaded/
please follow the workaround in the ticket to run SQL queries in the database and let me know if it helps.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

September 11, 2024 at 9:42 pm #16168229

rayaA

Thank you very much, it does seem to be the same issue. However, the link that you provided links to another issue that in it's turn link to another issue so I am not sure what exactly is meant by "follow the workaround in the ticket". each ticket there has a slightly different process mentioned.

Can you please write here a step by step explanation of what exactly to do and how. " running SQL queries" is not clear enough for me, I will need the steps please.

September 12, 2024 at 1:28 am #16168542

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Please try to access your database, and run this SQL query

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

and recheck the issue. Remember to change the {wpdbPrefix} with the table prefix.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

If you don't know how to run the SQL query, you can contact your hosting support and ask them to help you run the query.

Looking forward to your reply.
Thanks

September 12, 2024 at 8:17 pm #16173413

rayaA

Thank you for your response.

I am attaching a photo the of phpMyAdmin. The website is on WordPress. Should {wpdbPrefix} be wp ?

Should the query in my case be :
UPDATE `wp_icl_translation_status` SET `status` = 1 WHERE `status` = 2;
?

1.jpg
September 13, 2024 at 2:12 am #16173802

Long Nguyen
Supporter

Languages: English (English )

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

Yes, correct. Remember to create a full backup of your site and database before proceeding.

Let me know how it goes.

September 13, 2024 at 4:16 am #16173852

rayaA

Thank you, it is resolved.