Home›Support›English Support›[Resolved] Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in
[Resolved] Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in
This thread is resolved. Here is a description of the problem and solution.
Problem: The client encountered a fatal error when saving a page:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/html/wp-content/plugins/acfml/classes/Helper/HashCalculator.php:65
Additionally, we suggested disabling the 'Keep repeater and flexible sub-fields in the same order as the default language' option and then updating the post.
We also informed the client that a new version of ACFML (2.1.2) has been released, which includes a fix for this bug. We advised upgrading to the latest version after a full site backup: ACFML Changelog.
If the solution provided here is not relevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.
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.
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/html/wp-content/plugins/acfml/classes/Helper/HashCalculator.php:65
Please write back to us when the staging site is ready for testing after upgrading to the latest version of the WordPress, plugins, and theme. Take a full site backup{mandatory} before upgrading.
Also a couple of requests for tracking this bug.
1) Please let us know the exact steps to reproduce the issue on your site.
2) Please allow me to make a Duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on our local server in case of further debugging.
Hi there, I have now updated all plugins on the dev environment – please can you check this out? The issue happens when you try and re-publish or update the home page. Thanks
We have released an errata for this bug. Please try the workaround suggested in the following article after a full site backup{mandatory} and make sure the issue exists or not.
Thank you for the updates. I have modified the code in the staging site. Refer to the attached image for more details. Please try it now and make sure the issue exists or not.
This works when I uncheck the box, however in the scenario where this checkbox for the synchronisation translations needs to be checked, what would be the workaround for this?
We have released a new version of ACFML(2.1.2). It has included the fix for this bug. Please upgrade to the latest version after a full site backup and make sure the issue exists or not.
Thanks Bigul, updating to v2.1.2 has resolved this issue!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.