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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Carlos Rojas 3 months, 4 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
February 6, 2023 at 12:39 pm #12968099

muhammadO-2

Tell us what you are trying to do?
Faceing an error

Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112 Stack trace: #0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}() #1 /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(152): call_user_func_array() #2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}() #3 /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array() #4 /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic() #5 [internal function]: WPML\FP\Obj::WPML\FP\{closure}() #6 /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multil in /home/723273.cloudwaysapps.com/unezdpfqgd/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

February 6, 2023 at 12:50 pm #12968199

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hello,
Thank you for contacting us

1.- I kindly ask you to apply the workaround described in this errata page to solve the issue: https://wpml.org/errata/uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object/

2.- Please provide the debug information of the site in the section that appears below this ticket

In this link, you will find the steps to follow: https://wpml.org/faq/provide-debug-information-faster-support/

Please don't paste the debug information within the ticket

Regards,
Carlos

February 6, 2023 at 1:29 pm #12968545

muhammadO-2

My issue is resolved now. Thank you!

February 6, 2023 at 1:49 pm #12968749

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos