- Status
- Resolved
- Reported for
- Advanced Custom Fields Multilingual 2.1.3
- Resolved in
- Advanced Custom Fields Multilingual 2.1.4
- Related plugin/theme
- Advanced Custom Fields (ACF)
- Topic tags
- Bug
Overview of the issue
When using Advanced Custom Fields plugin, you may encounter a fatal PHP error when attempting to save a post that includes a Google Maps field:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, float given in .../wp-content/plugins/acfml/classes/Helper/HashCalculator.php:67
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open …/wp-content/plugins/acfml/classes/Helper/HashCalculator.php file.
- Look for line 19.
- Replace:
} elseif ( is_int( $value ) ) { - With:
} elseif ( is_int( $value ) || is_float( $value ) ) {