Skip to content Skip to sidebar

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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 1 year, 4 months ago.

Assisted by: Noman.

Author Posts
March 14, 2024 at 12:25 pm #15409746

vitaliK-3

Hello
after adding a new language and trying to translate the main page - an error popped up

WordPress version 6.4.3
Current theme: Impreza (version 8.16)
Problem plugin: WPML Multilingual CMS (version 4.6.9)
PHP version 7.4.33
_____
Error details
===================================
An error of type E_ERROR occurred on line 112 of file /home/c/cy07484/wordpress_cn3rf/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php. Error message: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/c/cy07484/wordpress_cn3rf/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\FP\{closure}(NULL, 'code', false)
#1 /home/c/cy07484/wordpress_cn3rf/public_html/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\FP\{closure}(NULL, 'code', false)
#3 /home/c/cy07484/wordpress_cn3rf/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#4 /home/c/cy07484/wordpress_cn3rf/public_html/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}('code', false)
#6 /home/c/cy07484/wor

March 14, 2024 at 12:34 pm #15409867

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. It seems you are facing the same error that is reported here and the workaround is also given. Can you please take a complete backup of your site and try the workaround from this errata: https://wpml.org/errata/fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-when-visiting-wpml-settings/ and see if this resolves your issue.

Thank you

The topic ‘[Closed] An error of type E_ERROR occurred on line 112 of file’ is closed to new replies.