Title: [PHP 7.2 compatibility issue] count() trigger a warning
Last modified: June 16, 2019

---

# [PHP 7.2 compatibility issue] count() trigger a warning

 *  Resolved [RazeSoldier](https://wordpress.org/support/users/razesoldier12/)
 * (@razesoldier12)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-issue-count-trigger-a-warning/)
 * Hello, I see my error log display:
 * `PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in wp-admin/includes/class-wp-list-table.php on line 513`
 * My environment is: PHP7.3+wordpress 5.2.1. I checked 5.1 branch and it seems 
   that this problem has not been fixed.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 12 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-issue-count-trigger-a-warning/#post-11643403)
 * This is where the error is found, but not where it was really caused.
 * This may be a plugin or theme conflict. Please attempt to disable all plugins,
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.
 * If you can install plugins, install “Health Check”: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
   On the troubleshooting tab, you can click the button to disable all plugins and
   change the theme for you, while you’re still logged in, **without affecting normal
   visitors to your site**. You can then use its admin bar menu to turn on/off plugins
   and themes one at a time.
 *  Thread Starter [RazeSoldier](https://wordpress.org/support/users/razesoldier12/)
 * (@razesoldier12)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-issue-count-trigger-a-warning/#post-11644712)
 * Thank you for your reply. I used a custom error handler to find the location 
   of the real error.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[PHP 7.2 compatibility issue] count() trigger a warning’ is closed to
new replies.

## Tags

 * [php7.2](https://wordpress.org/support/topic-tag/php7-2/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [RazeSoldier](https://wordpress.org/support/users/razesoldier12/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-issue-count-trigger-a-warning/#post-11644712)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
