Skip to content Skip to sidebar

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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 10 replies, has 0 voices.

Last updated by Long Nguyen 13 hours, 44 minutes ago.

Assisted by: Long Nguyen.

Author Posts
January 9, 2026 at 2:13 am #17714620

yekdalK

Hi there,

Regarding "Automatic Translation":
The automatic translation process seems to get stuck after some time. Please check this issue.
ScreenShot: hidden link
Clarification Needed: Do I need to keep the Translation Dashboard open all the time for the automatic translation to continue working, or should it run in the background on its own?

Regarding "Fatal error using WPML plugin":
I am using a custom script to import products into WooCommerce using MidOcean API. While checking the script logs, I found a fatal error that is blocking the import process. This issue is creating an obstacle for the script execution and needs to be reviewed.
Please check this issue and suggest a fix so the import process can run smoothly without WPML-related interruptions.
Path to my script: /public_html/midocean-api/import_products.php
-> Error:
PHP Fatal error: Uncaught Error: Call to undefined function wpml_tm_add_translation_job() in /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php:1349
Stack trace:
#0 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/Actions.php(278): TranslationManagement->send_jobs()
#1 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/Actions.php(240): WPMLTMAutomaticTranslationActionsActions->createJob()
#2 [internal function]: WPMLTMAutomaticTranslationActionsActions->WPMLTMAutomaticTranslationActions{closure}()
#3 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(151): array_map()
#4 [internal function]: WPMLFPFns::WPMLFP{closure}()
#5 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#6 [internal function]: WPMLFPFns::WPMLFP{closure}()
#7 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#8 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/Actions.php(244): WPMLFPFns::__callStatic()
#9 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/Actions.php(102): WPMLTMAutomaticTranslationActionsActions->createTranslationJobs()
#10 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPMLTMAutomaticTranslationActionsActions->WPMLTMAutomaticTranslationActions{closure}()
#11 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPMLFPRight->map()
#12 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPMLFPRight->chain()
#13 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPMLFPPromise->resolve()
#14 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-includes/class-wp-hook.php(341): WPMLLIBWPHooks::WPMLLIBWP{closure}()
#15 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#16 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()
#17 /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-includes/load.php(1308): do_action()
#18 [internal function]: shutdown_action_hook()
#19 {main}
thrown in /home/1541719.cloudwaysapps.com/eqtsvqqdqp/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php on line 1349

January 9, 2026 at 2:40 am #17714626

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

The fatal error looks like the one reported in the ticket https://wpml.org/forums/topic/bug-wpml-uncanny-automator-error-500-interrupts-automator-triggers/

Can you please apply the workaround below and let me know if it works?

- Edit the file wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php

- Before line 1349 add:

if ( ! function_exists( 'wpml_tm_add_translation_job' ) ) {
    require_once WPML_TM_PATH . '/inc/wpml-private-actions-tm.php';
}

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

Looking forward to your reply.
Thanks

Edit Plugins ‹ Sandbox — WordPress 2026-01-09 09-39-11.png
January 12, 2026 at 7:38 am #17720142

yekdalK

Hi there

I will check the workaround you mentioned and update you accordingly. Since the script takes time to run, it may take a while to see the results. Kindly do not mark this ticket as resolved or close it in the meantime.

Thank You

January 12, 2026 at 8:55 am #17720438

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

Yes, of course. The ticket won't be closed until I get your confirmation.

Thanks.

January 12, 2026 at 10:30 am #17720877

yekdalK

Also, Regarding "Automatic Translation":
As you mentioned earlier, the translation dashboard needs to remain open for the automatic translation to continue. However, this is becoming difficult to manage because of the large amount of content, which is causing the process to take a long time.

Could you please suggest an alternative solution so that the automatic translation can continue running in the background without keeping the translation dashboard open all the time?

January 13, 2026 at 3:07 am #17723485

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

I understand your situation when having many content that needs to be translated automatically. However, I'm afraid that there isn't an alternate solution so that the automatic translation can continue running in the background without keeping the translation dashboard open all the time.
You need to keep the Translation Dashboard open to send the content to automatic translation and get the translation content until this process is completed.

In the next update of WPML (4.9 version), we will add a notice message in the dashboard about this process.

Thanks for your understanding and patience.

January 15, 2026 at 5:15 am #17731698

yekdalK

Hi there,

I have kept the translation dashboard open for the past several days, but the translation is still not completing and remains stuck loading. I also tried refreshing the page, but the situation remains the same. Previously, the translation did not take this long and it has now been several days.

Could you please check this issue.
Thank you.

January 15, 2026 at 6:45 am #17731757

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

As I can see, the automatic translation process is completed and all published content (post, page, product ...) are translated completely. Can you please recheck this?

Looking forward to your reply.
Thanks

Translation Dashboard ‹ Nesheli.com — WordPress 2026-01-15 13-42-40.png
January 15, 2026 at 11:37 am #17732937

yekdalK

Hi there

This is what I see, the translation is still in progress.
Screenshot: hidden link

January 16, 2026 at 3:06 am #17735584

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

On my end, the number of translation content is different. I'm not sure if you've added or imported more content to your site or made any changes. However, the automatic translation process is working well, see the attached screenshots.

I will keep the Translation Dashboard page for a while and update you here when the process is completed.

Thanks.

Translation Dashboard ‹ Nesheli.com — WordPress 2026-01-16 10-00-51.png
Translation Dashboard ‹ Nesheli.com — WordPress 2026-01-16 09-58-50.png
January 16, 2026 at 6:32 am #17735721

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

The automatic translation process is now completed. Can you please re-check it on your end?

Thanks.

Translation Dashboard ‹ Nesheli.com — WordPress 2026-01-16 13-30-31.png