Title: Count() warning in edd.php
Last modified: October 22, 2018

---

# Count() warning in edd.php

 *  Resolved [John Parker](https://wordpress.org/support/users/jpwebcast/)
 * (@jpwebcast)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/)
 * Broadcast version: 43
 * Hi Edward,
 * We are getting a count() warning generated in our production logs from /threewp-
   broadcast/src/sdk/wordpress/updater/edd.php:313
 * Currently is:
    if ( $workaround && count( $this->edd_get_ssl_workaround_urls()
   > 0 ) )
 * Changed to:
    if ( $workaround && count( $this->edd_get_ssl_workaround_urls() )
   > 0 )
 * The warning message was filling up our logs as we have a health check program
   that hits the root of our site every minute. Once we made the above change on
   our production servers, the warning went away. However, every time we deploy 
   we have to make the change again. Can you put this in the next plugin update?
 * Thanks,
    John

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

 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10804606)
 * In 43.10, the line should be
 * if ( $workaround && ( count( $this->edd_get_ssl_workaround_urls() ) > 0 ) )
 * What version of 43, more exactly? 43.0?
 *  Thread Starter [John Parker](https://wordpress.org/support/users/jpwebcast/)
 * (@jpwebcast)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10804876)
 * yes, version 43.0
 * Thanks
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10804879)
 * Go ahead and upgrade and you won’t see those warning anymore. Marking as resolved.
 * Out of curiousity, is there any reason y’all haven’t updated to the latest version
   available?
 *  Thread Starter [John Parker](https://wordpress.org/support/users/jpwebcast/)
 * (@jpwebcast)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10805144)
 * Thanks Edward,
 * That should resolve the problem.
 * The reason we hadn’t updated to the latest version is because we only tend to
   update a plugin if there is a specific feature or bugfix that we need. Plus we
   go through time-intensive testing of plugin updates to make sure it won’t break
   anything… we usually update one plugin a month.
 * This will be the second update to the Broadcast plugin this year.
 * Cheers,
    John
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10805152)
 * A logical approach. I send out updates as cautiously as you guys update. Almost.
   🙂

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

The topic ‘Count() warning in edd.php’ is closed to new replies.

 * ![](https://ps.w.org/threewp-broadcast/assets/icon.svg?rev=1013783)
 * [Broadcast](https://wordpress.org/plugins/threewp-broadcast/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/threewp-broadcast/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/threewp-broadcast/)
 * [Active Topics](https://wordpress.org/support/plugin/threewp-broadcast/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/threewp-broadcast/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/threewp-broadcast/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/count-warning-in-edd-php/#post-10805152)
 * Status: resolved