Title: PHP Fatal error: Uncaught TypeError: count()
Last modified: February 29, 2024

---

# PHP Fatal error: Uncaught TypeError: count()

 *  [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-3/)
 * Hi,
 * Using the plugin, with a custom post type, we get no results but those errors:
 * [29-Feb-2024 19:21:24 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument#
   1 ($value) must be of type Countable|array, null given in /home/public_html/wp-
   content/plugins/remove-duplicate-posts/inc/class-rdp-main-screen.php:286
 * along with several other Warnings for Undefined array key
 * [29-Feb-2024 19:21:24 UTC] PHP Warning: Undefined array key “duplicate_ids” in/
   home/public_html/wp-content/plugins/remove-duplicate-posts/inc/class-rdp-main-
   screen.php on line 278
 * WP latest and PHP 8.0.x

The topic ‘PHP Fatal error: Uncaught TypeError: count()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/remove-duplicate-posts_f7f6f7.svg)
 * [Remove Duplicate Posts](https://wordpress.org/plugins/remove-duplicate-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/remove-duplicate-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/remove-duplicate-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remove-duplicate-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remove-duplicate-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dimal](https://wordpress.org/support/users/dimalifragis/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-3/)
 * Status: not resolved