Title: count() error
Last modified: April 2, 2019

---

# count() error

 *  Resolved [Lamanus](https://wordpress.org/support/users/lamanus/)
 * (@lamanus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-error/)
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /path/post-template.php amp
 * When I deactivate AMP plugin and activate Schema & Structured Data for WP & AMP
   plugin, and load any written post, the above php warning comes. I found this 
   by activating one by one after deactivating all. The logs are so annoying.
 * FYI,
    Running PHP version: 7.2.13 Wordpress 5.1.1 Wordpress by Bitnami with nginx
   and ssl

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

 *  Plugin Support [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/)
 * (@sanjeevsetu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-error/#post-11383393)
 * Hi there,
 * This issue might be from wordpress core. We have raised a ticket and lets see
   what they say about this. Until than you can turn off debug.
 * [https://core.trac.wordpress.org/ticket/46445#comment:2](https://core.trac.wordpress.org/ticket/46445#comment:2)
    -  This reply was modified 7 years, 1 month ago by [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/).
 *  Thread Starter [Lamanus](https://wordpress.org/support/users/lamanus/)
 * (@lamanus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-error/#post-11384901)
 * Oh, thank you so much. At least they already knew and I hope it will be fixed
   soon.

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

The topic ‘count() error’ is closed to new replies.

 * ![](https://ps.w.org/schema-and-structured-data-for-wp/assets/icon-256x256.png?
   rev=1922284)
 * [Schema & Structured Data for WP & AMP](https://wordpress.org/plugins/schema-and-structured-data-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/schema-and-structured-data-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lamanus](https://wordpress.org/support/users/lamanus/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/count-error/#post-11384901)
 * Status: resolved