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.

This topic contains 1 reply, has 0 voices.

Last updated by Bigul 1 week, 5 days ago.

Assisted by: Bigul.

Author Posts
March 25, 2025 at 11:23 am #16856962

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]: WPMLFPObj::WPMLFP{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]: WPMLFPObj::WPMLFP{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): WPMLFPObj::__callStatic('propOr', Array)
#5 [internal function]: WPMLFPObj::WPMLFP{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]: WPMLFP{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]: WPMLFP{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): WPMLCollectSupportArr::first(Array, Object(Closure), NULL)
#12 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/API/ATE.php(37): WPMLCollectSupportCollection->first(Object(Closure))
#13 [internal function]: WPMLTMAPIATE->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]: WPMLFP{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): WPMLFP{closure}(Object(stdClass))
#18 [internal function]: WPMLFPFns::WPMLFP{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]: WPMLFPFns::WPMLFP{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]: WPMLFPFns::WPMLFP{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): WPMLFPFns::__callStatic('map', Array)
#25 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(144): WPMLFPFns::WPMLFP{closure}(Object(stdClass))
#26 /var/www/vhosts/hondenshop.nl/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/REST/PublicReceive.php(93): WPMLFPJust->chain(Object(Closure))
#27 /var/www/vhosts/hondenshop.nl/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1292): WPMLTMATERESTPublicReceive->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 25, 2025 at 12:09 pm #16857416

Bigul
Supporter

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This may be related to the following ticket. Please try the workaround suggested there after a full site backup and make sure the bug exits or not.

https://wpml.org/forums/topic/i-am-getting-an-error-when-editing-adding-translation/#post-16538253

--
Thanks!

Bigul