warning when ACF type is image
-
Hi Florian,
I’ve just install your plugin, thanks for your job.
When the ACF field type is image there is a warning from acf_admin_columns.php at line 359.
Warning: count(): Parameter must be an array or an object that implements Countable in \wp-content\plugins\admin-columns-for-acf-fields\acf_admin_columns.php on line 359.
It is because you chain image and gallery type.
To fix it, I’ve just add a test before :
if (is_array($field_value)) $items_more = count($field_value) – 1;
Maybe it can be add in the next version.Best regards
The page I need help with: [log in to see the link]
- The topic ‘warning when ACF type is image’ is closed to new replies.