Title: PHP 7.2 PHP Warning
Last modified: June 8, 2018

---

# PHP 7.2 PHP Warning

 *  [nonmask](https://wordpress.org/support/users/xencpu/)
 * (@xencpu)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/)
 * PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in /home/website/public_html/wp-content/plugins/w3-total-cache/Cdn_Plugin.
   php on line 1203
    1000+ error_log warning. please fix it.

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

 *  Plugin Contributor [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * (@gidomanders)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10378802)
 * We are aware of the warning and we’re working on a fix for the next release.
 *  Thread Starter [nonmask](https://wordpress.org/support/users/xencpu/)
 * (@xencpu)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10378824)
 * Thank you.
    How long will the update take?
 *  [hkrutzer](https://wordpress.org/support/users/hkrutzer/)
 * (@hkrutzer)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10579245)
 * Would love to see this fixed as well.
 *  [bgdstr](https://wordpress.org/support/users/bogdanstratulat/)
 * (@bogdanstratulat)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10580812)
 * That will be fixed in the next release. Our developers are still working on this
   and it will be released as soon as possible.
 *  [mysteryislands](https://wordpress.org/support/users/mysteryislands/)
 * (@mysteryislands)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10718131)
 * Almost 4 months gone already. How slow are your developers? Just saying.. My 
   log file is almost 100mb now with this error repeatedly included. C’mon now.
 *  [hkrutzer](https://wordpress.org/support/users/hkrutzer/)
 * (@hkrutzer)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-10728721)
 * Here’s a patch that fixes the issue:
 *     ```
       Index: Cdn_Plugin.php
       ===================================================================
       --- Cdn_Plugin.php	(revision 1946871)
       +++ Cdn_Plugin.php	(working copy)
       @@ -777,7 +777,7 @@
        	private $_regexps = array();
        	private $_placeholders = array();
        	private $_config;
       -	private $_replaced_urls;
       +	private $_replaced_urls = array();
        	/**
        	 * If background uploading already scheduled
        	 *
       ```
   
 *  [hwsiew](https://wordpress.org/support/users/hwsiew/)
 * (@hwsiew)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-11083179)
 * I am still seeing this warning. Is it fixed?
 *  Plugin Contributor [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * (@gidomanders)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-11083444)
 * [@hwsiew](https://wordpress.org/support/users/hwsiew/) It’ll be fixed in the 
   upcoming, so you’ll have to wait just a little bit longer.
 *  [hkrutzer](https://wordpress.org/support/users/hkrutzer/)
 * (@hkrutzer)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-11226178)
 * Looks to be fixed in 0.9.7.1 but not included in patchnotes ([https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2018481%40w3-total-cache%2Ftrunk%2FCdn_Plugin.php&old=1864400%40w3-total-cache%2Ftrunk%2FCdn_Plugin.php](https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2018481%40w3-total-cache%2Ftrunk%2FCdn_Plugin.php&old=1864400%40w3-total-cache%2Ftrunk%2FCdn_Plugin.php))

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

The topic ‘PHP 7.2 PHP Warning’ 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/)

 * 9 replies
 * 6 participants
 * Last reply from: [hkrutzer](https://wordpress.org/support/users/hkrutzer/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warning/#post-11226178)
 * Status: not resolved