• Resolved hanfox

    (@hanfox)


    Warning: count(): Parameter must be an array or an object that implements Countable in [wp-path]/wp-content/plugins/image-sizes/admin/image-sizes-settings.php on line 102

    In PHP 7.x (can’t recall the exact version) if you want to count() a variable it has to actually be Countable.

    Easy fix in this instance just make sure the array you’re trying to count is actually an array…

    image-sizes/admin/image-sizes-settings.php — Line 102 should be:
    if( is_array( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) ) :

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when used in PHP 7’ is closed to new replies.