Hello @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.
Thanks @misulicus
We will make a new release with the fix for it.
Hi @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',
Thanks @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.
Hello @contemplate and @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.
@sudar updated but it caused a fatal error, already reported on Github here: https://github.com/sudar/email-log/issues/216
@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.