Support

Account

Home Forums Backend Issues (wp-admin) how to solve problem

Solving

how to solve problem

  • when i used wordpress version 5.1.1 these type of errors can occurs how to solve it. still i am using acf pro Version 5.5.3. repeater field is not working in my wordpress dashbboard.

    Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\hosting\wp-content\plugins\advanced-custom-fields-pro-master\pro\fields\clone.php on line 144

  • Update ACF to the latest version and see if that corrects the problem.

  • This suggests that the $fields parameter is not an array as expected.

    Can you please test this out by editing the file ‘pro/fields/class-acf-field-clone.php’ on line 119 and change the start of the acf_get_fields function to:

    function acf_get_fields( $fields, $parent ) {

    // bail early if empty
    if( empty($fields) ) return $fields;

    I have fixed this issue earlier when I was using shared hosting but after moving to WordPress managed hosting, I have never got any error like this because their platform is easy to use and compatible with WordPress versions.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘how to solve problem’ is closed to new replies.