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
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.
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.