Title: Problem when Upgrading to PHP 7.2
Last modified: February 28, 2019

---

# Problem when Upgrading to PHP 7.2

 *  [iseecom](https://wordpress.org/support/users/iseecom/)
 * (@iseecom)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-when-upgrading-to-php-7-2/)
 * I recently upgraded my PHP from 5.6 to 7.2 and hit a problem with the coding 
   on widget.php in lines 243 and 245. I get an error that says
    Warning: count():
   Parameter must be an array or an object that implements Countable in….. If I 
   roll back to PHP 7.1 the problem goes away. Just a heads up.
 * Regards
    Ian

The topic ‘Problem when Upgrading to PHP 7.2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/elvantools_f3c766.svg)
 * [EvantoTools](https://wordpress.org/plugins/elvantools/)
 * [Support Threads](https://wordpress.org/support/plugin/elvantools/)
 * [Active Topics](https://wordpress.org/support/plugin/elvantools/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elvantools/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elvantools/reviews/)

## Tags

 * [php issue](https://wordpress.org/support/topic-tag/php-issue/)

 * 0 replies
 * 1 participant
 * Last reply from: [iseecom](https://wordpress.org/support/users/iseecom/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/problem-when-upgrading-to-php-7-2/)
 * Status: not resolved