コンテンツへスキップ サイドバーへスキップ

Resolved

Reported for: Advanced Custom Fields Multilingual 2.1.3

Resolved in: Advanced Custom Fields Multilingual 2.1.4

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:
    1
    } elseif ( is_int( $value ) ) {
  • With:
    1
    } elseif ( is_int( $value ) || is_float( $value ) ) {

7件の返信 に対して “Advanced Custom Fields - PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array”

    • Sure, we will let you know once we have a new version with a fix. Probably it will be for ACFML 2.1.4.

      • When do you plan to release the update? We have this problem on many pages. Unfortunately, the workaround is not feasible.
        Thanks

        • This fix is intended to be released in Advanced Custom Fields Multilingual 2.1.4, however we don’t have an ETA for it.
          We will keep this page updated.

    • Hello there,
      This fix is intended to be released in Advanced Custom Fields Multilingual 2.1.4.
      We will keep this page updated once it is released.

  1. Hello everyone,
    We just released Advanced Custom Fields Multilingual 2.1.4 which should solve this issue.