Parameter must be an array or an object that implements Countable

We receive this warning when we select a page in the admin for the content section:

Warning: count(): Parameter must be an array or an object that implements Countable in /u/exclusivephotoexperiences.com/htdocs/wp-includes/media.php on line 1206

We use apache 2.4.29 and php7.2.2 on a FreeBSD 11.1 server

Hello @nsasrl,

Thanks for asking. :slight_smile:

You are seeing a PHP warning message. It may have came from an uninitialize variable in one of the grid items. You can get rid of this message by turning off the debug mode. You can do this by opening wp-config.php and adding/changing:

define('WP_DEBUG', false);

When you revisit the page, you should no longer be seeing the message.

Please let us know how it goes.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.