Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client encountered a fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array.
Solution:
We have identified this issue and our second-tier support has provided a workaround. We recommend following the steps outlined in our errata page:
Advanced Custom Fields Fatal Error: Uncaught TypeError count() Argument

If this solution does not apply to your situation, or if it's outdated, please check our known issues page and confirm that you have the latest versions of themes and plugins installed. If the problem persists, we highly recommend opening a new support ticket with us for further assistance.

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 1 reply, has 2 voices.

Last updated by Shekhar Bhandari 6 months, 4 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
May 6, 2024 at 7:51 am #15595664

daanV-5

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array

May 7, 2024 at 4:21 am #15599645

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our 2nd tier debugged the issue and suggested the following workarround, so can you please follow the steps as mentioned here and see if it helps.

https://wpml.org/errata/advanced-custom-fields-fatal-error-uncaught-typeerror-count-argument-1-value-must-be-of-type-countablearray-wp_post-given/

Look forward to your reply.

Thanks

May 7, 2024 at 5:49 am #15599805

daanV-5

Option 1 indeed fixed our problem. Thank you for your help.