Title: PHP compatibility
Last modified: December 21, 2018

---

# PHP compatibility

 *  Resolved [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-compatibility-11/)
 * [21-Dec-2018 13:44:01 UTC] PHP Warning: count(): Parameter must be an array or
   an object that implements Countable in D:\MAMP\htdocs\rcp-dev\wp-content\plugins\
   email-log\include\Core\EmailLogger.php on line 52

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

 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11016711)
 * Hello [@misulicus](https://wordpress.org/support/users/misulicus/),
 * Thanks for letting us know about the compatiblity issue.
 * Please let us know in which version of PHP you are getting the above error.
 *  Thread Starter [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11016738)
 * Thats on PHP 7.2.1
 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11017088)
 * Thanks [@misulicus](https://wordpress.org/support/users/misulicus/)
 * We will make a new release with the fix for it.
 *  [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11372565)
 * Hi [@sudar](https://wordpress.org/support/users/sudar/) here is the fix. It was
   causing a fatal error with the WPAffiliate plugin when trying to approve affiliates:
 * file:
    plugins/email-log/include/Core/EmailLogger.php
 * line 52 change this:
 *     ```
       'attachments' => ( count( $mail_info['attachments'] ) > 0 ) ? 'true' : 'false',
       ```
   
 * to this:
 *     ```
       'attachments' => ( isset( $mail_info['attachments'] ) ) ? 'true' : 'false',
       ```
   
 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11373176)
 * Thanks [@contemplate](https://wordpress.org/support/users/contemplate/) for the
   code.
 * We have already fixed it in the development branch and will release the fix as
   part of the next release in a couple of days.
 * I will post an update here once it is released.
 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11416582)
 * Hello [@contemplate](https://wordpress.org/support/users/contemplate/) and [@misulicus](https://wordpress.org/support/users/misulicus/)
 * We just released v2.3.0 with the fix for this.
 * Please update to the latest version, try it out and let us know if you are still
   facing this issue.
 *  Thread Starter [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11416592)
 * [@sudar](https://wordpress.org/support/users/sudar/) updated but it caused a 
   fatal error, already reported on Github here: [https://github.com/sudar/email-log/issues/216](https://github.com/sudar/email-log/issues/216)
 *  [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * (@sudar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11416716)
 * [@misulicus](https://wordpress.org/support/users/misulicus/) Thanks for reporting
   the fatal error.
 * As I mentioned in Github, we patched v2.3.0 and also released v2.3.1 to fix the
   fatal error.

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

The topic ‘PHP compatibility’ is closed to new replies.

 * ![](https://ps.w.org/email-log/assets/icon-256x256.png?rev=1710920)
 * [Email Log](https://wordpress.org/plugins/email-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-log/)
 * [Active Topics](https://wordpress.org/support/plugin/email-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-log/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Sudar Muthu](https://wordpress.org/support/users/sudar/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/php-compatibility-11/#post-11416716)
 * Status: resolved