Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 0 reply, has 0 voices.

Last updated by Kor 2 months, 1 week ago.

Assisted by: Kor.

Author Posts
April 15, 2025 at 9:18 am #16932628

paulT-50

Background of the issue:
I am trying to review running jobs on my WordPress site using the WPML plugin. I encountered an issue when accessing the page at hidden link. The debug log shows a PHP Fatal error: Uncaught DivisionByZeroError in D:www.albioneco.co.ukdev_htmlwp-contentpluginssitepress-multilingual-cmsclassesAPIRESTjobsclass-wpml-tm-rest-job-progress.php on line 41.

Symptoms:
I expected to see a list of running jobs, but instead, I got a red dialog saying 'Jobs could not be loaded'. The debug log shows a PHP Fatal error: Uncaught DivisionByZeroError.

Questions:
Why am I seeing the error 'Jobs could not be loaded'?
How can I resolve the DivisionByZeroError in the WPML plugin?

April 17, 2025 at 1:25 am #16941529

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

April 17, 2025 at 10:27 am #16943404

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Please double-check your credentials as I'm getting "Error: The password you entered for the username wpml is incorrect."

April 17, 2025 at 12:05 pm #16943780

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see some server errors as shown in the attached screenshot. Could you share FTP access here so that I can check the error logs?

Or you can enable the debugging as explained here https://wpml.org/documentation/support/debugging-wpml/ and share the debug logs with me.

Screenshot_53.jpg
April 17, 2025 at 12:09 pm #16943814

paulT-50

Hi, We use the File Manager plugin to look at the files, the debug log was included earlier in this thread - you appear to have turned off this plugin!
the Host does not allow us to FTPO to the site.

April 17, 2025 at 12:30 pm #16943906

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I got this error from the debug log, and this may be related to the following ticket. Could you perform a full backup and try the solution explained in that ticket?

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

[17-Apr-2025 12:03:40 UTC] PHP Fatal error:  Uncaught DivisionByZeroError: Division by zero in D:\www.albioneco.co.uk\dev_html\wp-content\plugins\sitepress-multilingual-cms\classes\API\REST\jobs\class-wpml-tm-rest-job-progress.php:41
Stack trace:
#0 D:\www.albioneco.co.uk\dev_html\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 D:\www.albioneco.co.uk\dev_html\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 D:\www.albioneco.co.uk\dev_html\wp-content\plugins\sitepress-multilingual-cms\classes\API\REST\class-wpml-tm-rest-jobs.php(214): WPML_TM_Rest_Jobs_View_Model->build()
#3 D:\www.albioneco.co.uk\dev_html\wp-includes\rest-api\class-wp-rest-server.php(1292): WPML_TM_REST_Jobs->get_jobs()
#4 D:\www.albioneco.co.uk\dev_html\wp-includes\rest-api\class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
#5 D:\www.albioneco.co.uk\dev_html\wp-includes\rest-api\class-wp-rest-server.php(439): WP_REST_Server->dispatch()
#6 D:\www.albioneco.co.uk\dev_html\wp-includes\rest-api.php(459): WP_REST_Server->serve_request()
#7 D:\www.albioneco.co.uk\dev_html\wp-includes\class-wp-hook.php(324): rest_api_loaded()
#8 D:\www.albioneco.co.uk\dev_html\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters()
#9 D:\www.albioneco.co.uk\dev_html\wp-includes\plugin.php(565): WP_Hook->do_action()
#10 D:\www.albioneco.co.uk\dev_html\wp-includes\class-wp.php(418): do_action_ref_array()
#11 D:\www.albioneco.co.uk\dev_html\wp-includes\class-wp.php(818): WP->parse_request()
#12 D:\www.albioneco.co.uk\dev_html\wp-includes\functions.php(1342): WP->main()
#13 D:\www.albioneco.co.uk\dev_html\wp-blog-header.php(16): wp()
#14 D:\www.albioneco.co.uk\dev_html\index.php(17): require('...')
#15 {main}
  thrown in D:\www.albioneco.co.uk\dev_html\wp-content\plugins\sitepress-multilingual-cms\classes\API\REST\jobs\class-wpml-tm-rest-job-progress.php on line 41
April 17, 2025 at 2:09 pm #16944417

paulT-50

I am somewhat confused, you have left the site with 90% of the plugins not activated!
The ticket mentioned has multiple issues " disconnected license" and "Advanced Editor jobs synchronization had failed" The jobs page not loading seems to be a side issue on that ticket.
As you want me to use SQL I will have to negotiate with the host to allow this....

April 17, 2025 at 3:17 pm #16944920

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your reply, and apologies for not detailing the steps I had taken earlier. I’ve deactivated all third-party plugins to rule out any conflicts with the WPML plugin that might be causing the job loading issue.

After reviewing your initial ticket message, I didn’t see a mention of multiple issues. That said, let’s first resolve the job loading issue, and then we’ll move on to address the “disconnected license” problem.

To proceed, I will need to use the SQL solution provided in the article I shared: https://wpml.org/forums/topic/if-i-click-on-the-job-page-within-wordpress-it-says-that-jobs-cannot-be-loaded/. Please make sure to create a full backup before we apply any changes.

April 17, 2025 at 4:06 pm #16945134

paulT-50

On the link you gave me the SQL solution is a series of commands, i only know of phpMyAdmin running on the server that will allow this, the hosting company don't want to let me use this due to his primary customer. Is there a way to enable a plugin to run the commands, so it stays wholly within WordPress? the server is an IIS one.
I created a full backup before you changed anything.

April 17, 2025 at 4:08 pm #16945137

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You can try using the PHPmyadmin plugin .This one https://wordpress.org/plugins/wp-phpmyadmin-extension/ . Please make sure to have a backup before you do anything.

The topic ‘[Closed] Issues that jobs could not be loaded’ is closed to new replies.