Background of the issue:
I am trying to: [22-Aug-2024 11:07:09 UTC] PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112 Stack trace: #0 [internal function]: WPMLFPObj::WPMLFP{closure}() #1 /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array() #2 [internal function]: WPMLFPObj::WPMLFP{closure}() #3 /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array() #4 /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPMLFPObj::__callStatic() #5 [internal function]: WPMLFPObj::WPMLFP{closure}() #6 /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array() #7 [internal function]: WP in /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112
Symptoms:
PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /var/www/prod.fastfiber.be/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Questions:
What is causing the PHP Fatal error?
How can I resolve the InvalidArgumentException in WPML?