Title: PHP 7.2.x &#8211; PHP warning for count()
Last modified: April 25, 2018

---

# PHP 7.2.x – PHP warning for count()

 *  Resolved [Toru Miki](https://wordpress.org/support/users/toru/)
 * (@toru)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-x-php-warning-for-count/)
 * Hi,
 * Thank you for developing this plugin. During migrating our site to a new server,
   I came across following PHP warning.
 * PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in /pasth/to/the/site/wp-content/plugins/tweet-old-post/inc/core.php
   on line 65
 * The old server is on PHP 5.4.x, but the new one is on PHP 7.2.4. I understand
   that this is related to the following change from PHP 7.2.
 * [https://wiki.php.net/rfc/counting_non_countables](https://wiki.php.net/rfc/counting_non_countables)

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

 *  Plugin Contributor [Uriahs Victor](https://wordpress.org/support/users/uriahs-victor/)
 * (@uriahs-victor)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-x-php-warning-for-count/#post-10221878)
 * Hi there, please try updating to the latest version of ROP to see if this issue
   still exists
 *  Thread Starter [Toru Miki](https://wordpress.org/support/users/toru/)
 * (@toru)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-x-php-warning-for-count/#post-10234609)
 * Hi Uriahs,
 * Thank you for a quick response! I checked on my local environment and production
   environment, and seems to get no error. Yes, look fixed.
 * I now realized I was using a slightly old version of the plugin, because it was
   an old UI. Though I kept all plugins up-to-date, and I never saw any notifications
   for this plugin… anyways it is solved.
 * Regards,
    Toru
    -  This reply was modified 8 years, 1 month ago by [Toru Miki](https://wordpress.org/support/users/toru/).
 *  Plugin Support [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-x-php-warning-for-count/#post-10234869)
 * Glad to hear you got it working.

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

The topic ‘PHP 7.2.x – PHP warning for count()’ is closed to new replies.

 * ![](https://ps.w.org/tweet-old-post/assets/icon-256x256.gif?rev=3127181)
 * [Revive Social – Social Media Auto Post and Scheduling Automation Plugin](https://wordpress.org/plugins/tweet-old-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tweet-old-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tweet-old-post/)
 * [Active Topics](https://wordpress.org/support/plugin/tweet-old-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweet-old-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweet-old-post/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-7-2-x-php-warning-for-count/#post-10234869)
 * Status: resolved