Title: About errors in php 7.2 environment
Last modified: February 27, 2018

---

# About errors in php 7.2 environment

 *  [torasan](https://wordpress.org/support/users/torasan/)
 * (@torasan)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/about-errors-in-php-7-2-environment/)
 * Dear Plug-in author
 * I am Japanese. I am writing this sentence using google translation.
    I am sorry
   if there are places that are difficult to understand.
 * When “WordPress Ping Optimizer” is used in the PHP 7.2 environment,
    “Warning:
   count (): Parameter must be an array or an object that implements Countable in/
   home/gerrysey/domains/wncselfdefense.com/wp-content/plugins/wordpress-ping-optimizer/
   cbnet-ping-optimizer.php on line 533 ” An error will be displayed. The corresponding
   part is in line 594 of “cbnet-ping-optimizer.php”
 * $ pingCount = count ($ this-> cbnetpo_future_pings);
 * It is described as.
 * Since var_dump outputted the value of $ pingCount, “int (1)” was displayed
    When
   I changed $ pingCount = count ($ this-> cbnetpo_future_pings); to $ pingCount
   = 1 ;, the error ceased to appear. But this did not really tell if plugging worked
   properly. Am I correct what I made? If you have a better way please let me know.

The topic ‘About errors in php 7.2 environment’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-ping-optimizer_ebeef0.svg)
 * [WordPress Ping Optimizer](https://wordpress.org/plugins/wordpress-ping-optimizer/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-ping-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-ping-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-ping-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-ping-optimizer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [torasan](https://wordpress.org/support/users/torasan/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/about-errors-in-php-7-2-environment/)
 * Status: not resolved