Skip Navigation

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

Problem:

If you're experiencing issues where your translation jobs tab is not loading and encountering a 'Division by Zero' PHP fatal error in the WPML plugin at

wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php:41

, this might be similar to your situation.

Solution:
First, ensure you perform a full site backup. This is mandatory before proceeding with any changes. After backing up, check if you can access the Translation Jobs without encountering the fatal error.

If the issue persists, you may need to access your database using tools like PHPMyAdmin or Adminer to run necessary SQL commands suggested in the following similar tickets. Ensure the database table prefix matches your database settings (commonly 'wp_').

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 note that this solution might be outdated or not applicable 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 the issue persists, please open a new support ticket with us for further assistance 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 3 replies, has 0 voices.

Last updated by ronghuanl 3 weeks, 5 days ago.

Assisted by: Bigul.

Author Posts
March 5, 2025 at 8:58 am #16777179

ronghuanl

Hi,

My translation job is still not loading. The debug.log is showing the following warning.

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

Thanks!

March 5, 2025 at 1:50 pm #16779188

Bigul
Supporter

Languages: English (English )

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

Hello,

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

This 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.

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

--
Thanks!

Bigul

March 7, 2025 at 1:12 am #16785826

ronghuanl

Hello,

Yes, I provided my error code in the last ticket, and I have this line of error code in my error log:
DivisionByZeroError: Division by zero in /home/customer/www/kingcason.com/public_html/wp-content/ you said. plugins/sitepress-multilingual -cms/classes/API/REST/jobs/class-wpml-tm-rest-job-progress.php:41

But I still don't know how to do it and my translations still don't work. Also, I don't know where I should add the SQL command.

Hopefully this will be resolved soon!

Thank you!

March 7, 2025 at 7:16 am #16786266

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. You can login or access the Database using the tools like PHPMyAdmin or Adminer. It will also allow you to run the SQL command. Maybe the Database table prefix will be different in your database (by default it will be *wp_*). Please try it after a full site backup and let us know your feedback.

If you are still having the issues or are not able to log in to the database, please allow me to make a duplicate copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site.

--
Thanks!

Bigul

March 10, 2025 at 8:09 am #16794687

ronghuanl

Thanks for your reply and help, it's working fine now!