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.
Tagged: Exception
This topic contains 3 replies, has 2 voices.
Last updated by Andrey 1 year, 7 months ago.
Assisted by: Andrey.
Author | Posts |
---|---|
October 19, 2023 at 2:47 pm #14616469 | |
albertos-33 |
Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /srv/vhost/tecsidel.com/home/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}(NULL, 'code', false) #1 /srv/vhost/tecsidel.com/home/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\{closure}(NULL, 'code', false) #3 /srv/vhost/tecsidel.com/home/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 /srv/vhost/tecsidel.com/home/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 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #7 [internal function]: WPML\FP\Obj::WPML\FP\{closure}('code', false) #8 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #9 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/classes/translation-roles/UI/Initializer.php(84): WPML\FP\Obj::__callStatic('prop', Array) #10 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-method/TranslationMethodSettings.php(56): WPML\TranslationRoles\UI\Initializer::getLanguagesData() #11 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Menu\TranslationMethod\TranslationMethodSettings::localize(Array) #12 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Array) #13 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Array) #14 /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #15 /srv/vhost/tecsidel.com/home/html/wp-includes/class-wp-hook.php(310): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}('wpml_page_tm/me...') #16 /srv/vhost/tecsidel.com/home/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #17 /srv/vhost/tecsidel.com/home/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /srv/vhost/tecsidel.com/home/html/wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'wpml_page_tm/me...') #19 /srv/vhost/tecsidel.com/home/html/wp-admin/admin.php(239): require_once('/srv/vhost/tecs...') #20 {main} thrown in /srv/vhost/tecsidel.com/home/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112 |
October 19, 2023 at 9:42 pm #14619351 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+03:00) |
Could you please update your WPML plugin to the latest version 4.6.7 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available. You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/ Please remember to backup your database first before you proceed. You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/) Let me know if the issue persists after an update has been done. |
October 20, 2023 at 7:44 am #14621135 | |
albertos-33 |
Hi there, just updated to 4.6.7 and still getting same message. thanks |
October 20, 2023 at 8:05 am #14621331 | |
Andrey WPML Supporter since 06/2013 Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+03:00) |
Could you please explain under what conditions you are getting this error? Do you still see the error if you temporarily disable all the plugins except WPML? Also, check with any default theme. I suggest increasing the PHP Memory Limit on your server. Let me know about the results. |