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.

Tagged: ,

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 7 months ago.

Assisted by: Prosenjit Barman.

Author Posts
October 25, 2023 at 6:46 am #14656985

dimitrisS-7

I found a bug in ACFML v2.0.5.. when tried to move a field group from to another one I get the following critical error: "There has been a critical error on this website."

[25-Oct-2023 06:35:55 UTC] PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:
#0 [internal function]: WPMLFPObj::WPMLFP{closure}()
#1 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#2 [internal function]: WPMLFPObj::WPMLFP{closure}()
#3 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#4 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPMLFPObj::__callStatic()
#5 [internal function]: WPMLFPObj::WPMLFP{closure}()
#6 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#7 [internal function]: WPMLFP{closure}()
#8 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(603): array_map()
#9 /home/cms4/public_html/web/app/plugins/acfml/classes/FieldGroup/AttachedPosts.php(31): WPMLCollectSupportCollection->map()
#10 /home/cms4/public_html/web/app/plugins/acfml/classes/FieldGroup/UIHooks.php(52): ACFMLFieldGroupAttachedPosts::getCount()
#11 /home/cms4/public_html/web/app/plugins/acfml/classes/FieldGroup/UIHooks.php(40): ACFMLFieldGroupUIHooks::getData()
#12 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): ACFMLFieldGroupUIHooks::enqueueAssets()
#13 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPMLFPRight->map()
#14 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPMLFPRight->chain()
#15 /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPMLFPPromise->resolve()
#16 /home/cms4/public_html/web/wp/wp-includes/class-wp-hook.php(310): WPMLLIBWPHooks::WPMLLIBWP{closure}()
#17 /home/cms4/public_html/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#18 /home/cms4/public_html/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#19 /home/cms4/public_html/web/wp/wp-admin/admin-header.php(118): do_action()
#20 /home/cms4/public_html/web/wp/wp-admin/edit-form-advanced.php(425): require_once('...')
#21 /home/cms4/public_html/web/wp/wp-admin/post.php(206): require('...')
#22 {main}
thrown in /home/cms4/public_html/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

October 25, 2023 at 2:44 pm #14662427

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I checked the entire conversation you had and understand the issue.

Please be informed that our dev team has reproduced an issue with Advanced Custom Fields Multilingual 2.0.5 which is very similar to the error you've reported. Please check the Errata below for more information and try the workaround mentioned there.

- https://wpml.org/errata/fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-when-visiting-wpml-settings/

Please let me know if it helps to get the expected result or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

October 30, 2023 at 1:26 pm #14692015

dimitrisS-7

I deleted row with `option_name = acfml_field_name_patterns` but still get canonical with 404 link: hidden link on page: hidden link

Screenshot 2023-10-30 152439.png
October 31, 2023 at 4:24 am #14696401

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well.

Kindly be informed that we are allowed to discuss one issue to maintain clarity on each ticket. Since the issue with the canonical URL is different than the issue initially mentioned on the chat, I kindly request you to create a new ticket for that. Me or one of our supporters will take the ticket and assist you accordingly.

Please let me know if removing the key resolves the fatal error or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit