Title: Small PHP 7.2 Compatibility Bug
Last modified: April 26, 2018

---

# Small PHP 7.2 Compatibility Bug

 *  [techsurgeons](https://wordpress.org/support/users/techsurgeons/)
 * (@techsurgeons)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/)
 * Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an
   object that implements Countable in /<purged>/wp-content/plugins/w3-total-cache/
   Cdn_Plugin.php on line 1203\n’,

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

 *  [Fist Full of Crisco](https://wordpress.org/support/users/fistfullofcrisco/)
 * (@fistfullofcrisco)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/#post-10223391)
 * Technically that is not a bug but only a PHP deprecation warning. It still functions
   as it did since 7.1 (and earlier) just that PHP is warning that in future releases
   it could be a problem.
 * If you are comfy with coding i can give you a fix to make it hush up.
 *  Thread Starter [techsurgeons](https://wordpress.org/support/users/techsurgeons/)
 * (@techsurgeons)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/#post-10223594)
 * That would be great, thanks.
 * -TS
 *  [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/#post-10252082)
 * Could you please share the fix? (Coding is not an issue)
 *  [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/#post-10252099)
 * Replacing a line in “function get_replaced_urls()” seems to work:
 * Replace the line
    `if ( count( $this->_replaced_urls ) ) {` with `if ( $this-
   >_replaced_urls && count($this->_replaced_urls) ) {` and test.
 * at least my errors seems to have been gone.

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

The topic ‘Small PHP 7.2 Compatibility Bug’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [PHP 7.2 compatibility](https://wordpress.org/support/topic-tag/php-7-2-compatibility/)

 * 4 replies
 * 3 participants
 * Last reply from: [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/small-php-7-2-compatibility-bug/#post-10252099)
 * Status: not resolved