Skip Navigation

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

Problem:

The client was experiencing issues with automatic translations getting stuck in the queue after moving their webshop to a new host. Despite trying several troubleshooting steps such as deregistering and registering the site with a new key, and enabling auto translation, the problem persisted.

Solution:

We discovered that the issue was due to a conflict between the IDs of translation jobs and the site ID on our ATE server. Our developers resolved this conflict, ensuring that the automatic translation functioned correctly.

If you're experiencing similar issues, we recommend checking for potential ID conflicts or reaching out for support.

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

This topic contains 35 replies, has 0 voices.

Last updated by edwinF-6 1 day, 18 hours ago.

Assisted by: Bigul.

Author Posts
March 21, 2025 at 11:34 am #16844062

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. Please visit the WPML>>Translation Management>>Jobs tab and share a screenshot of it.

Also, share the URL of the page you have sent for translation and check if you are getting any recent errors in WPML>>Support>>Advanced Translation Editor>>Error Logs.

--
Thanks!

Bigul

March 21, 2025 at 1:28 pm #16844731

edwinF-6

Sorry, I didn't see your message on the next page. Attached are the screenshots.

The last errors are from 17 march 2025. Since then it doesn't show any error.

2025-03-21_14h28_02.jpg
2025-03-21_14h27_21.jpg
jobs.jpg
March 21, 2025 at 1:42 pm #16844817

edwinF-6

This is the last product I tried to translate: hidden link

March 23, 2025 at 11:50 am #16848537

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. As per our records, the following post has multiple translation job entries, the last entry shows the translation as completed but not delivered yet. The second last entry shows the translation as completed and delivered.

hidden link

So please open the hidden link post for editing and share a screenshot of it (especially the WPML language widget on the right side of the screen) and the screenshot of WPML>>Translation Management Dashboard too.

Also, please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following pages for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

March 24, 2025 at 8:06 am #16849964

edwinF-6

Hi,

Attached are the screenshots and here's the pastebin

https://pastebin.com/w2p8f2u7 password XLBGjFu3j1

translation-management.jpg
2025-03-24_08h50_23.jpg
March 24, 2025 at 2:05 pm #16852527

edwinF-6

Are you sure it has nothing to do with the fact that there's no website listed under pay as you go?

2025-03-24_15h04_27.jpg
March 24, 2025 at 5:12 pm #16853546

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the details and Debug log. The Debug log does not show any warnings or errors related to WPML.

This requires further checking. So please try the following troubleshooting steps after a full site backup{mandatory} and make sure the issue exists or not.

1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)

2) On the Troubleshooting page, please click on the following options in the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
- Synchronize local job IDs with ATE jobs
- Synchronize translators and translation managers with ATE

--
Thanks!

Bigul

March 24, 2025 at 5:53 pm #16853616

edwinF-6

Hi Bigul,

I'm trying to create a backup just now and then perform the above actions.

Just to keep this going faster, can you please check why there's no website link displayed in the pay as you go under my WPML account settings?

March 24, 2025 at 9:47 pm #16854184
edwinF-6

Hi Bigul,

I just checked the debug.log and found this error:

[24-Mar-2025 10:49:49 UTC] PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:
#0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'ate_job_id', '42ec530e6dec42b...')
#1 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'ate_job_id', '42ec530e6dec42b...')
#3 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#4 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic('propOr', Array)
#5 [internal function]: WPML\FP\Obj::WPML\FP\{closure}('ate_job_id', '42ec530e6dec42b...', 'cw_request_id')
#6 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#7 [internal function]: WPML\FP\{closure}('42ec530e6dec42b...', 'cw_request_id')
#8 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array)
#9 [internal function]: WPML\FP\{closure}('42ec530e6dec42b...', 'cw_request_id')
#10 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Arr.php(147): call_user_func(Object(Closure), '42ec530e6dec42b...', 'cw_request_id')
#11 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(386): WPML\Collect\Support\Arr::first(Array, Object(Closure), NULL)
#12 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/API/ATE.php(37): WPML\Collect\Support\Collection->first(Object(Closure))
#13 [internal function]: WPML\TM\API\ATE->checkJobStatus('7398')
#14 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Array, Array)
#15 [internal function]: WPML\FP\{closure}('7398')
#16 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array)
#17 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(135): WPML\FP\{closure}(Object(stdClass))
#18 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), 2)
#19 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(151): array_map(Object(Closure), Array, Array)
#20 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#21 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#22 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#23 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#24 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(137): WPML\FP\Fns::__callStatic('map', Array)
#25 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(144): WPML\FP\Fns::WPML\FP\{closure}(Object(stdClass))
#26 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/REST/PublicReceive.php(93): WPML\FP\Just->chain(Object(Closure))
#27 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1292): WPML\TM\ATE\REST\PublicReceive->receive_ate_job(Object(WP_REST_Request))
#28 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wpml/tm/v1/ate...', Array, NULL)
#29 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#30 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/rest-api.php(449): WP_REST_Server->serve_request('/wpml/tm/v1/ate...')
#31 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#32 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#33 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#34 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#35 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/class-wp.php(813): WP->parse_request('')
#36 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/functions.php(1336): WP->main('')
#37 /var/www/vhosts/hondenshop.nl/httpdocs/wp-blog-header.php(16): wp()
#38 /var/www/vhosts/hondenshop.nl/httpdocs/index.php(17): require('/var/www/vhosts...')
#39 {main}
thrown in /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

March 24, 2025 at 10:08 pm #16854228
edwinF-6

Also I deactivated all plugin (troubleshooting mode) and only activated woocommerce and all WPML plugin, cancelled all jobs, deleted cache and tried auto translating the Happy Ball product and got this error in the debug.log:

[24-Mar-2025 22:04:35 UTC] PHP Deprecated: base64_encode(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/jobs/wpml-post-translation-job.class.php on line 282
[24-Mar-2025 22:04:35 UTC] PHP Deprecated: base64_encode(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/jobs/wpml-post-translation-job.class.php on line 282

March 25, 2025 at 9:49 am #16855819
edwinF-6

I created a backup on test.hondenshop.nl (finally) and got the message from WPML if it is a copy etc. So I said yes, got the migration code from the live site, copied it and entered it in the backup. Then it gave me the message in (the screenshot), saying "Great. Now this site and its copy on hidden link are sharing the credits for automatic translation."

But hidden link is not the copy obviously. Is this correct?

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/now-this-site-and-its-copy-on/

2025-03-25_10h45_20.jpg
March 25, 2025 at 9:55 am #16855942

edwinF-6

Now in the test.hondesnhop.nl I've sent the Happy Ball product for auto translation and it worked. So I really think the auto translation is somehow not connected to the live website. Would reinstalling WPML work?

March 25, 2025 at 11:30 am #16857052

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the feedback. I have created separate tickets for each issue you have reported today. It will help us to avoid discussing multiple things in a single ticket. I will get back to you soon in the latest tickets. Thank you for your kind understanding.

I have one request. Please create a new post (a simple post for testing) on the live site - hidden link and try to translate automatically from WPML>>Translation Management Dashboard. As described in the following documentation.

https://wpml.org/documentation/translating-your-contents/

https://wpml.org/documentation/translating-your-contents/#choose-how-to-translate

Then make sure the post is translated as expected or not.

--
Thanks!

Bigul

March 25, 2025 at 1:08 pm #16857838

edwinF-6

Hi,

I deleted all running automatic jobs and created a new post and it keeps loading/stays stuck in the queue.

- Why does it work on the test site and not on the live site?

- After copying the migration code and entering it in my test site, why does it say that my live site is a copy?

- Why is the live site not showing up in the pay as you go, under my WPML account settings?

- Should I reinstall WPML on the live site?

Could you please answer these questions? This is going on for way too long and I'm about to lose a big client over this issue.

Thanks,
Nathan

March 25, 2025 at 2:18 pm #16858394

edwinF-6

Please can you help me a bit faster? I can't wait hours or days everytime I reply.