Skip to content Skip to sidebar

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

Problem:
You might be encountering two issues: 1) Automatic translation process gets stuck, and you're unsure if you need to keep the Translation Dashboard open for it to continue working. 2) A fatal error occurs when using a custom script to import products into WooCommerce, specifically an undefined function error related to WPML.
Solution:
For the automatic translation issue, it should run in the background without needing the Translation Dashboard to remain open. If it doesn't, please contact us for further assistance.
For the fatal error, follow these steps:
1. Navigate to

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

2. Before line 1349, add the following code:


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

Please ensure to back up your database and website before making these changes.

If these solutions do not resolve your issues or seem 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 needed, do not hesitate to open a new support ticket for personalized assistance.

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 17 replies, has 0 voices.

Last updated by Long Nguyen 1 week, 3 days 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
January 19, 2026 at 12:34 pm #17742584

yekdalK

Hi there

As I can see the translation is completed now from my end too.
But I notice one product whose Netherlands version don't have color and size attribute. Please check this issue as this might be also in other products too.
Product Link: hidden link

January 20, 2026 at 6:04 am #17744607

yekdalK

Hi there

In addition to above, I notice one thing today, it just popped up and I did nothing and its saying: "Your site doesn't meet WPML's minimum requirements". Please check screenshot for more clarity.
Screenshot: hidden link

January 20, 2026 at 7:33 am #17744758

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

There could be a caching or synchronization issue with the variations in the Dutch language of the product. I just edit the original product in the English language, click on the Update button to sync the variation again and it works well.

Regarding the WPML minimum requirement message, I check the Rest API URL in the message and it returns the correct value. I think it could be related to WAF module of Cloudflare so I suggest you add the endpoint

/wp-json/wpml/v1/rest/status

to the whitelist and recheck the issue.
Please read more details in this ticket https://wpml.org/forums/topic/your-site-doesnt-meet-wpmls-minimum-requirements-issue-with-price-in-translated-products/#post-17634179

If you see the issue with automatic translate everything feature is resolved, please mark this ticket as Resolved and open new tickets if you have more questions.

Thank you.

January 20, 2026 at 12:59 pm #17746537

yekdalK

Hi there

Regarding: WPML Translation Dashboard
We have tried enabling automatic translations but it is not working. Please check the issue .

Please check the screenshot for reference: hidden link
Even after clicking "Start translate Everything Automatically", translations were not enabled: hidden link

Once these automatic translation issue are complete I will mark it as resolved.