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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
February 3, 2023 at 11:12 am

julieK-5

There's following PHP Fatal Error when trying to activate WPML:

Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112 Stack trace: #0 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'setup_complete', false) #1 wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(152): call_user_func_array(Object(Closure), Array) #2 [internal function]: WPMLFPObj::WPMLFP{closure}(NULL, 'setup_complete', false) #3 wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #4wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPMLFPObj::__callStatic('propOr', Array) #5 [internal function]: WPMLFPObj::WPMLFP{closure}('setup_complete', false) #6 wp-content/plugins/sitepr in /nas/content/live/devrimage/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

This is WordPress Multisite.

February 3, 2023 at 12:46 pm
February 6, 2023 at 2:08 am #12964669

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please follow some steps below to reinstall WPML and let me know if it helps.

1) Deactivate & delete all WPML Plugins from the Plugins list
2) Visit https://wpml.org/account/downloads/ and download the latest version of WPML plugins
3) Upload the latest version of the WPML Multilingual CMS plugin to the plugins directory
4) Activate the WPML Multilingual CMS plugin
5) Then upload & activate WPML add-ons like String Translation, Media Translation, etc.. one by one
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Also, according to the log chat, please update all plugins to the latest version to prevent any issue that is resolved in the new version.

There is a similar issue in some tickets which you can refer to here
https://wpml.org/forums/topic/uncaught-invalidargumentexception-sitepress-multilingual-cms-vendor-wpml-fp-co/
https://wpml.org/forums/topic/cant-activate-wpml-fatal-error-3/

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

Look forward to your reply.
Thanks

The topic ‘[Closed] Fatal error when trying to activate WPML’ is closed to new replies.