ghledisC
Background of the issue:
I am trying to get posts translated using WPML. The translation is done manually and saved, but the post doesn't get published. When I try to do it automatically, the job never finishes processing. Here is the link to the page where the issue can be seen: hidden link
A recently gotten error report (not entirely sure if it is related):
Used Bottling Lines Unsubscribe
12:14 PM (1 hour ago)
to me
Error: [1] Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:
#0 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'ate_job_id', 'dca7a4499f62443...')
#1 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#2 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'ate_job_id', 'dca7a4499f62443...')
#3 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#4 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPMLFPObj::__callStatic('propOr', Array)
#5 [internal function]: WPMLFPObj::WPMLFP{closure}('ate_job_id', 'dca7a4499f62443...', 'cw_request_id')
#6 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#7 [internal function]: WPMLFP{closure}('dca7a4499f62443...', 'cw_request_id')
#8 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array)
#9 [internal function]: WPMLFP{closure}('dca7a4499f62443...', 'cw_request_id')
#10 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Arr.php(147): call_user_func(Object(Closure), 'dca7a4499f62443...', 'cw_request_id')
#11 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(386): WPMLCollectSupportArr::first(Array, Object(Closure), NULL)
#12 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/API/ATE.php(40): WPMLCollectSupportCollection->first(Object(Closure))
#13 [internal function]: WPMLTMAPIATE->checkJobStatus('15902')
#14 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Array, Array)
#15 [internal function]: WPMLFP{closure}('15902')
#16 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array)
#17 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(135): WPMLFP{closure}(Object(stdClass))
#18 [internal function]: WPMLFPFns::WPMLFP{closure}(Object(Closure), 2)
#19 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(151): array_map(Object(Closure), Array, Array)
#20 [internal function]: WPMLFPFns::WPMLFP{closure}(Object(Closure), Array)
#21 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#22 [internal function]: WPMLFPFns::WPMLFP{closure}(Object(Closure), Array)
#23 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#24 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(137): WPMLFPFns::__callStatic('map', Array)
#25 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(144): WPMLFPFns::WPMLFP{closure}(Object(stdClass))
#26 /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/REST/PublicReceive.php(93): WPMLFPJust->chain(Object(Closure))
#27 /www/usedbottlinglinescom_759/public/wp-includes/rest-api/class-wp-rest-server.php(1292): WPMLTMATERESTPublicReceive->receive_ate_job(Object(WP_REST_Request))
#28 /www/usedbottlinglinescom_759/public/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 /www/usedbottlinglinescom_759/public/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#30 /www/usedbottlinglinescom_759/public/wp-includes/rest-api.php(459): WP_REST_Server->serve_request('/wpml/tm/v1/ate...')
#31 /www/usedbottlinglinescom_759/public/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#32 /www/usedbottlinglinescom_759/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#33 /www/usedbottlinglinescom_759/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#34 /www/usedbottlinglinescom_759/public/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#35 /www/usedbottlinglinescom_759/public/wp-includes/class-wp.php(818): WP->parse_request('')
#36 /www/usedbottlinglinescom_759/public/wp-includes/functions.php(1342): WP->main('')
#37 /www/usedbottlinglinescom_759/public/wp-blog-header.php(16): wp()
#38 /www/usedbottlinglinescom_759/public/index.php(17): require('/www/usedbottli...')
#39 {main}
thrown
File: /www/usedbottlinglinescom_759/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php
Line: 112
Post ID: 0
URL: hidden link
Timestamp: 2025-06-26 12:14:34
Symptoms:
Translation jobs don't move from 'gear' status to 'pencil' status. Translated posts don't get published. No completed, loading forever.
Questions:
Why don't translation jobs move from 'gear' status to 'pencil' status?
Why don't translated posts get published after manual translation?
Why does the automatic translation job never finish processing?
Waqas Bin Hasan
WPML Supporter since 05/2014
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
Hi,
Reference to our recent chat, I've moved to this ticket for further investigation.
I've enabled your next reply as private to provide the access to the staging site, as discussed.
Please take your time and try to reproduce the same issue in the staging. It'd be great if you can freshly replicate the staging based on the live site. So we've higher chances of reproducing the problem.
Regards.
ghledisC
Couple of days before the issue was noticed I have "cleaned up" the options table. A lot of options have been deleted or disabled. Although I haven't traced it back to the exact options, I did a site restore with minor losses, and translations work now again.